Differnce between Managed code and unmanaged code ?
Managed Code: Managed code will supply the metadata to CLR which at runtime provide services such as memory management, cross-language integration, code access security, and automatic lifetime control of objects. All code based on Microsoft intermediate language (MSIL) executes as managed code. Un-Managed Code: Code that doesnt provide metadata information to CLR. Unmanaged code executes in the CLR environment with minimal services (for example, no garbage collection, limited debugging, and so on). About NAMESPACE Its used to – declare a scope, organize your code, create globally unique types. Within a namespace you can declare the following types a)class b)interface c)struct d)enum e)delegate f) another namespace Namespace implicitly have public access by default.
Related Questions
- Describe the advantages of writing a managed code application instead of unmanaged one. What’s involved in certain piece of code being managed?
- Describe the advantages of writing a managed code application instead of unmanaged one. Whats involved in certain piece of code being managed?
- Does Microsoft Sync Framework use managed or unmanaged code?