Lei Jiang wrote:
I have a C# class :
public class MyClass
{
public object this[int index]
{
}
}
In my C++ code, how to access this index method?
MyClass ^ myClass = gcnew MyClass();
myClass->????
The name of the indexed property is Item. C# uses that name by default, but
a few classes have a different name. In the new C++ syntax, you will be able
to access C# indexers with the same syntax (i.e. directly on the class
instance). Of course, C++ will still have named indexed properties if you
find them useful.
--
Brandon Bray, Visual C++ Compiler
http://blogs.msdn.com/branbray/
This posting is provided AS IS with no warranties, and confers no rights.