Search code examples
c#.netc++managed-c++

What's the difference between managed C++ and C#?


The major advantage I see for using C++ instead of C# is compiling to native code, so we get better performance. C# is easier, but compiles to managed code.

Why would anyone use managed C++ for? What advantages it gives us?


Solution

  • Managed C++ and C++/CLI allow you to easily write managed code that interacts with native C++.

    This is especially useful when migrating an existing system to .Net and when working in scientific contexts with calculations that must be run in C++.