Difference Between Managed and Unmanaged Code in C#.NET

Difference Between Managed and Unmanaged Code in C#.NET

Today, We want to share with you Difference Between Managed and Unmanaged Code in C#.NET.In this post we will show you Managed code and unmanaged code in .NET , hear for Difference between managed and unmanaged code we will give you demo and example for implement.In this post, we will learn about The Difference Between Managed and Unmanaged Code in .Net with an example.

Managed and Unmanaged Code in .Net

In this post,I will explain about Managed and Unmanaged Code in .Net

Now in this post, I will explain about Managed and Unmanaged Code in .Net

Managed Code

In simple words the code which is executed by CLR (Common Language Runtime) is called Managed Code, any application which is developed in .Net framework is going to work under CLR, the CLR internally uses the Garbage Collector to clear the unused memory and also used the other functionalities like CTS, CAS etc.

Unmanaged Code

The unmanaged code is cnceptually developed using some other languages (other than .Net Framework), so it uses its own language runtime to execute the applications. The application runtime will take care of its memory management, security and other thing

Even if we do not install .Net framework the unmanaged code will work properly as it is not depending on the CLR.

It is possible to run unmanaged code using managed code by using appropriate commands, but even if we run the unmanaged application using .Net code the CLR is not having control to run that application, the application uses its own runtime to execute.

Read :


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Difference between managed and unmanaged code
.I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Related FAQ

Here are some more FAQ related to this Article:

  1.   WordPress Plugin Redirect After Activation
  2.   Star Rating System using jQuery
  3.   Transpose of a matrix in Java Program
  4.   How to integrate CardConnect payment Gateway with Node JS
  5.   Vue Toggle Switch Component ON-OFF
  6.   How to Force Download Files Using Laravel 5.7
  7.   MySQL SELECT all records from today using Laravel 6
  8.   Multiple Controllers on Page using Angular Example
  9.   PHP Get country city location details
  10.   Simple LocalStorage SessionStorage using JavaScript

Leave a Reply

Your email address will not be published. Required fields are marked *