could you plz tell me the exact meaning of managed & unmanaged code in .NET
-
Hello friens could you plz send me the exact meaning of managed & unmanaged code in .NET & how to use unmanaged code in .NET:-O Yogesh_T -- modified at 0:47 Thursday 15th June, 2006
Managed Code : When you compile your Visual Studio.NET source code, the compiler gives out MSIL (Microsoft Intermediate Language). MSIL code converts into native code at runtime by a Just In Time (JIT) Compiler. MSIL code should supply all the metadata necessary for the Common Language runtime (CLR) to provide services such as Garbage Collection, Memory Management, Cross-Language Integration, Code Access Security etc. All code that is based on MSIL executes as Managed Code. Unmanaged code is the one that was created without taking the requirements of the CLR into account. This code executes in the runtime environment with minimal services from runtime. For example, the above COM object that we created using VB 6 executes as unmanaged code.