I don't know if this qualifies as "good", but here's how I would define it:
Managed Code: similar to Java, it is code that is compiled to run in a more restricted but protected run-time environment called the "CLR". It is safer and more portable because the CLR handles low-level details and platform differences for you. You don't have direct control of things like pointers, and other common programming mistakes are easier to spot and correct, sometimes automatically by the language or the CLR.
Unmanaged Code: the old way of making code where it is compiled all the way to native instructions, and runs independently of the CLR. You have full control over things like pointers.
You can use C++ .NET objects with __gc declarations if you create a C++ .NET project. I've seen what it does not look like a veritable C++. For example when I delete some pointer allocated with new, is executed destructor as usualy in C++, but object is not deleted. For example if there are many pointers to this object, you can use them after the delete operation.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.