Q:

How to convert C# code to C++

I have a Data Structure class written in C#. How to convert that to C++ (managed)?

A:

Don't convert it.  One of the very nice features of .NET is that the types from one managed language can be used in another.  Right-click your C++/CLI project, Properties, Common Properties, Framework and References.  Click Add New Reference.  Use the Projects tab if your C# project is in the same solution (recommended).  Otherwise click the Browse tab and navigate to your C# assembly.

