Original Post
I am mixing C++/CLI and C#. The C++/CLI library has a class that generates an instance of a native struct and wants to return a managed version of it, so that the C# assembly can use it. Say the types are: struct VECTOR { float x; float y; float z; }; value struct Vector { float x; float y; float z; }; Is there an easy way to do this: VECTOR v = ...; Vector u = v; How can I construct a Vector from a VECTOR without manually copying each element over? Is there some .NET helper method that will just do a byte copy?