Am adding C# dll as reference in managed C++, and calling C# function in c++ which returns list of strings
C# code :
namespace ManagedCSharp
{
public static class ManagedClass
{
public static List<string> ShowValue(void)
{
List<string> x = new List<string>();
x.Add("1");
return x;
}
}
}
C++ Code:
public ref class DoWork
{
public:void GetListOfStrings(void)
{
//here i need to collect list of strings returned from C#
(??) = ManagedCSharp::ManagedClass::ShowValue();
}
};
Thanks in advance