© { JSL }
105
Text Box: get and set
get and set
·indexers can only contain accessors
wget { accessor } for read context
wset { accessor } for write context
class DoubleArray
{
    ...
    public double this [int index]
    {  
        get { return ...; }
        set { ... = value; }
    }
    ...
}
marks[2] = 34.29;
if (marks[0] > 50.0) ...