[英]Syntax for C# Array[] in C++/CLI
I have an interface defined in C# which has a method 我有一个在C#中定义的接口,该接口有一个方法
Array[] Foo();
I need to implement this interface in a class written in C++/CLI. 我需要在用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? 有谁知道如何将C#
Array[]
为C ++ / CLI?
我想说的语法是:
cli::array<Array^>^ Foo();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.