Can someone please explain what this bit of code is It is quite a bit different from the basic stuff I do!
public class MyClass
{
public MyThing this[int Id]
{
//... some code that returns either a MyThing or null
}
}
I've snipped it a bit, but hopefully there's enough there.
The bit that I dont understand is;
public MyThing this[int Id]
the 'this[int Id]' part.
Is this a constructor If so, I thought the syntax was 'public MyThing' followed by some parameters in ().
thanks
george d