Home »

Describe the advantages of writing a managed code application instead of unmanaged one.What’s involved in certain piece of code being managed?

Question ListCategory: .NETDescribe the advantages of writing a managed code application instead of unmanaged one.What’s involved in certain piece of code being managed?
adamemliy16 author asked 8 years ago
1 Answers
jeanderson295 author answered 8 years ago

Advantage includes automatic garbage collection,memory management,security,typechecking,versioning Managed code is compiled for the .NET run-time environment. It runs in the Common Language Runtime (CLR), which is the heart of the .NET Framework. The CLR provides services such as security,memory management, and cross-language integration.Managed applications written to take advantage of the features of the CLR perform more efficiently and safely, and take better advantage of developers existing expertise in languages that support the .NET Framework.

Unmanaged code includes all code written before the .NET Framework was introduced— this includes code written to use COM, native Win32, and Visual Basic 6. Because it does not run inside the .NET environment, unmanaged code cannot make use of any .NET managed facilities.

Please login or Register to Submit Answer