I'm a C++ developer who is currently writing a library in C# which has to be exposed to C++. As of now I'm using Tuples in C# to get a list of Pair of strings, which is described in the following structure.
public struct ProductInfo
{
string ProductID;
List<Tuple<String,String>> attributes;
};
I would like to expose this structure to C++. I'm expecting C++ developers to use std::pair to fill in. But I'm not sure how to Marshal the same from C++ to C#. My googling didn't give me much help. Can somebody throw some light on this?