What Is Managed and Unmanaged Code in C#?
Managed Code Is the One That Is Executed by the Clr of The. Net Framework While Unmanaged or Unsafe Code Is Executed by the Operating System. the Managed Code...
Managed code is the one that is executed by the CLR of the . NET framework while unmanaged or unsafe code is executed by the operating system. The managed code provides security to the code while undamaged code creates security threats. ... Unmanaged code provides low-level access while managed code does not provide that.
What is a managed and unmanaged code?
Managed code is the code which is managed by the CLR(Common Language Runtime) in .NET Framework. Whereas the Unmanaged code is the code which is directly executed by the operating system.
What is unmanaged code with example?
Applications that do not run under the control of the CLR are said to be unmanaged, and certain languages such as C++ can be used to write such applications, which, for example, access low - level functions of the operating system. Background compatibility with code of VB, ASP and COM are examples of unmanaged code.