tags:

views:

91

answers:

2

How does unmanaged code run in .net?

+8  A: 

Most commonly, using P/Invoke, COM, or C++/CLI.

Matthew Flaschen
I'd add COM to this list - since that's another common way to interface with native code from .NET.
Reed Copsey
+3  A: 

If you want a good overview of how .Net interoperates with unmanaged code, you could start with An Overview of Managed/Unmanaged Code Interoperability on MSDN.

It discusses security, performance, and what exactly happens at the interop boundary.

There are links for further reading at the bottom.

womp