I'm writing a Native/CLI DLL in C++. I'll eventually call the DLL from C# code (which I'm much more familiar with), but I'm trying to wrap my Native C++ classes with a CLI wrapper.
So my question is, what's the best way for me to convert an std::vector to a List class?
The classes are mostly simple, the most complex looks like this:
class SecurityPrincipal
{
public:
wstring distinguishedName;
SECURITYPRINCIPAL_NODE_TYPE NodeType;
vector<LDAPAttribute> Attributes;
vector<SecurityPrincipal> Nodes;
}
To be honest, I haven't even been able to get a vector<wstring>
into a List<String>
.
Any help would be much appreciated!