The professional me!

Icon

technical thinking

What is .Net? How it works?

I meet many people who tell that they are working in .Net and they know .Net. But to my surprise they couldn’t answer most basic questions. I don’t believe in reading big theory books all the time. Unless you work on the specific technology you are anyways not going to get idea what it is all about and how it works. Also, at the time of working on any technology you should at least try to understand the way something works.

Here, I am listing some basic concepts of .Net and the way it works. The topic is really vast so, I would like to split this post in some parts. So, in this post I will write about .Net framework architecture. Hopefully you will get many answers of Why and How 🙂

What is .Net framework?

Intro:

Framework means a bunch of components integrated together so that one can develop applications using that. It contains reusable, extensible code libraries and a virtual machine where all supported languages can run.

Single platform and multiple languages: The amazing thing provided by .Net, you can actually work on many languages at the same time. There are two main advantages , you can use code written in C#.Net to your VB.Net application as well.  Second, you can develop C#.Net/ASP.net/ VB.Net/ J#.Net all applications on same platform, you don’t need anything else.

Isn’t it great thing? Now, the obvious question will be, how is it possible, right? So here are explanations..

How it is possible to use many languages using one framework:  The structure of .Net framework is the key. We have got the following architecture:

The image is taken from here

As you can see in the above diagram, we have all the code compiled and sent to Common Language Infrastructure for further processing. Common Language Infrastructure consists of CIL ( Common Intermediate Language ) and CLR (Common Language Runtime).

CIL: It convert all the code in this common language called Common Intermediate Language. What that means? For example, we have a double data type in C#.net and Decimal in VB.Net. Likewise , we have all the bunch of data types, functions and procedures in all the different languages supported by .net framework. There has to be something common where we can actually know what that means, the definition of all the data types, functions and procedures. The function of defining all these different languages in some standard language is performed by CIL.

CLR: Common Language Runtime converts CLI to machine readable language.

Every code is ultimately binary. So, creating these binary code is done by CLR.

So, these are basic things which come under .net framework.

**It is a framework not the language: There are many people who think it is a language, but it is not.

In the next post, I will be writing about what namespaces/ assembliies /dlls are? project file structure. How we can actually use code written in multiple languages.

Advertisements

Filed under: .Net, , ,

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,087 other followers

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,087 other followers

Top Rated

Me on Twitter..

Error: Twitter did not respond. Please wait a few minutes and refresh this page.