Also note that indexers can have more than one argument. A very simple example follows:
declaration:
class Mlass
{
private int[,] mint = new int[100,100];
public int this[int i, int j]
{
get
{
return mint[i, j];
}
set
{
mint[i, j] = value;
}
}
}
usage:
Mlass m = new Mlass();
m[2, 2] = 3;Console.WriteLine(m[2, 2]);