© { JSL }
106
get or set
·
an indexer with no
set
accessor
w
is a read-only indexer
·
and indexer with no
get
accessor
w
is a write-only indexer
class
Hand
{
...
public
Card
this
[
int
index]
{
get
{
return
... }
}
}
void
Cheat(Hand current)
{
Card ace = MakeAce(Suit.Spades);
...
current[0] = ace;
}
compile time error