What is the difference between managed and unmanaged code?

Answer Posted / jonasstuart

Managed Code:
Code that runs under a "contract of cooperation" with the common language runtime. Managed code must supply the metadata necessary for the runtime to provide services such as memory management, cross-language integration, code access security, and
automatic lifetime control of objects.
Un-Managed Code:
Code that is created without regard for the conventions and requirements of the common language runtime. Unmanaged code executes in the common language runtime environment with minimal services.Check this useful article
https://www.mindstick.com/blog/833/difference-between-managed-code-and-unmanaged-code
http://www.agrini-tricks.in/Tutorial/Differentiate-between-managed-code-and-unmanaged-code.aspx
I hope it will help you

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a view be shared across multiple controllers? If yes, how we can do that?

591


Can we have enum in entity framework?

589


Where are the routing rules defined in an asp.net mvc application?

546


Is it possible to cancel filter execution?

559


When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?

705






What are the advantages of mvc over asp.net?

565


What is the benefit of entity framework?

537


what is entity graph in entity framework?

623


How we can add the css in mvc?

592


Name a few different return types of a controller action method?

539


Describe the gac in the .net framework.

577


How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?

518


What is a model in android?

495


Why to use html.partial in mvc?

721


What are Code Blocks in Views?

668