Classes with indexes

peter p.adject at mdt.org
Wed Jan 2 15:46:13 PST 2008


Hello guys,

I have the following class...

class myclass
{
    private ubyte[] Array;
}

...and i want to create an instance of this class and access the array as follows:

myclass mc = new myclass();
mc[0] = 100;

I was complety sure i saw this in the newsgroup but i canīt remember where exactly.
How is this "thing" called?
In the .NET framework i see it in almost every library.

I hope you guys get the idea, please help.


More information about the Digitalmars-d-learn mailing list