How to pass objects from C# library to C++.
I can call a function which returns void
or int
without any issue.
Now consider the following function in C#,
List<CSharpClass> CSharpFunction(string Input)
where my C# class contains,
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; }
}
}
Now, I want use this List in my C++. So I have created,
typedef std::vector<class CSharpClass> MyDetailList;
Is it the right way ?? If not what I need to use in C++?