如何将对象从 C# 库传递到 C++。
我可以调用一个返回void
或int
没有任何问题的函数。
现在考虑 C# 中的以下函数,
List<CSharpClass> CSharpFunction(string Input)
我的 C# 类包含的位置,
public class CSharpClass
{
string mystring = string.Empty;
byte[] bytearray = null;
public byte[] bytearray
{
get { return bytearray ; }
set { bytearray = value; }
}
public string mystring
{
get { return mystring ; }
set { mystring = value; }
}
}
现在,我想在我的 C++ 中使用这个列表。所以我创造了,
typedef std::vector<class CSharpClass> MyDetailList;
方法对吗??如果不是我需要在 C++ 中使用什么?