开发者

Managed and unmanaged code in .NET

开发者 https://www.devze.com 2022-12-24 13:35 出处:网络
What is difference between managed code and unmanaged code 开发者_如何学Pythonin terms of the .NET framework?

What is difference between managed code and unmanaged code 开发者_如何学Pythonin terms of the .NET framework?


Managed code is a differentiation created by Microsoft to identify code that requires and will only execute under the "management" of a CLR virtual machine, resulting in Bytecode.

Benefits of using managed code include programmer convenience (by increasing the level of abstraction, creating smaller models) and enhanced security guarantees, depending on the platform (including the VM implementation).

From: Wikipedia: Managed Code


Generally it will refer to memory management.

the unsafe keyword will get you there (unmanaged): http://msdn.microsoft.com/en-us/library/aa288474%28VS.71%29.aspx

As will calling some external functions (extern keyword).


Easily answered by Google and Microsoft: http://blogs.msdn.com/brada/archive/2004/01/09/48925.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消