How is unmanaged code run in .NET?
How 开发者_C百科does unmanaged code run in .net?
Most commonly, using P/Invoke, COM, or C++/CLI.
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.
精彩评论