I have a C ++ / CLI class:
public ref class Foobar { public:
How do I access Foobar from C # given what I tried:
Foobar foo = new Foobar(); int i = foo[1];
and I get CS0021: Cannot apply indexing with [] to an expression of type 'Foobar'
source share