K
Kenneth Porter
How do I pass a container from C# to C++?
My client is writing an app in C# that needs to pass a collection of 3-
space vectors to my native C++ library. It will also need to read back the
collection.
In pure native C++, I'd just pass a "std::vector<MyType>&" where MyType is
an x/y/z vector (which might contain a std::vector<double>).
What's the portable C++/CLI equivalent that C# can easily deal with?
The passed container might hold from 10,000 to 100,000 objects.
My client is writing an app in C# that needs to pass a collection of 3-
space vectors to my native C++ library. It will also need to read back the
collection.
In pure native C++, I'd just pass a "std::vector<MyType>&" where MyType is
an x/y/z vector (which might contain a std::vector<double>).
What's the portable C++/CLI equivalent that C# can easily deal with?
The passed container might hold from 10,000 to 100,000 objects.