Tuesday, August 9, 2011

Managed and UnManaged Code in .Net

Managed Code -

  • Managed code is getting from .Net technologies.
  • Managed code must supply the metadata necessary for the runtime to provide service such as
  1. Memory management
  2. Cross-language integration
  3. Code access security
  4. Automatic lifetime control of objects

  • All code based on Microsoft intermediate language (MSIL) executes as managed code.
  • Safe code – Functions
  • Unsafe code -- Pointers

Un-Managed Code - Language which contains dll’s we can access that language features in the .net framework. CLR doesn’t communicate with unmanaged code.

No comments:

Post a Comment