Is this what you mean? This define an index, default property to a class:
Code:
public class Class1 {
public int this[int index]
{
get
{
return index;
}
set
{
}
}
}
To use it you can then do this:
Code:
Class1 c = new Class1();
Console.WriteLine(c[i]);
If this isn't what you meant then please explain, perhaps giving an example of the
VB code you want to reproduce.
/- Sam Judson : Wrox Technical Editor -/