eithan
eithan

Reputation: 11

Syntax for C# Array[] in C++/CLI

I have an interface defined in C# which has a method

Array[] Foo();

I need to implement this interface in a class written in C++/CLI. i tried the following syntax

array<array<Object^>^>^ Foo();

But i get an error stating my return type does not match the one in the interface. Does anyone know how to translate a C# Array[] to C++/CLI?

Upvotes: 1

Views: 889

Answers (1)

user180326
user180326

Reputation:

I'd say the syntax is:

cli::array<Array^>^ Foo(); 

Upvotes: 7

Related Questions