Skip to main content

C# - Environment

       

Introduction to .NET Framework 


What is .NetFramework?

.NetFramework is a software framework developed by Microsoft for developing applications(that run on Microsoft platform such as Windows operating system and Windows phone). .Net Framework consists of Framework Class library, Common language Runtime and Assemblies. 




Versions of .Net Framework



Version
number
CLR version
Release
date
Development tool
Windows
1.0
1.0
2002-02-13
VisualStudio .Net
XP
1.0
1.0
2003-04-24
VisualStudio .Net 2003
XP
2.0
2.0
2005-11-07
VisualStudio .Net 2005
XP
3.0
2.0
2006-11-06
Expression Blend
Vista
3.5
2.0
2007-11-19
VisualStudio 2008
Windows 7, 8, 8.1, 10
4.0
4.0
2010-04-12
VisualStudio 2010
NA
4.5
4.0
2012-08-15
VisualStudio 2012
8
4.5.1
4.0
2013-10-17
VisualStudio 2013
8.1
4.6
4.0
2015-07-20
VisualStudio 2015
10







How it works?


Suppose we have written a in .Net environment. Lets take the example of our first written code. 

       



There are steps that defines how a structured code(code that gets compiled in .Net environment) gets converted into an executable.


step1: The code is written using a .NET-compatible language such as C#



step2: That code is compiled into CIL, which is stored in an assembly



step3: When this code is executed (either in its own right if it is an executable or when
it is used from other code), it must first be compiled into native code using a
JIT compiler.



step4: The native code is executed in the context of the managed CLR, along with any
other running applications or processes.





Architecture of .Net Framework


.Net Framework consists of three main parts - CLI or Common Language Infrastructure, 
Assemblies, Class libraries. 

CLI or Common Language Infrastructure

Common Language Infrastructure provides language independent development environment. Apart from that CLI also helps in 




Popular posts from this blog

C# - Decision Making

  <<PreviousPage     NextPage>> Decision Making If Else Statement If Else statement is used for decision making in c# . In the below example we will see how we can use if else statement in C# to great effect.   Nested If Else Statement We can improve upon the above example by adding nest if else statement. Nested if else statement helps to add extra if else block with in an if or else block. Switch Statement In place where we need multiple if else statements to satisfy a criteria we can add switch statement instead of if else statement.  We can create an application which would answer our question and let us know about the Date and Time. This will be a small AI sort of idea which would recognize your command and perform accordingly.  Code -    Console.WriteLine("................Welcome to Mini AI................");            str...

C# - Data Type Conversion

  <<PreviousPage      NextPage>> Data Type Conversion  In our previous tutorial we have seen various types of data and how to use them. In this session we are going to look into how to convert these data type from one to another.  Implicit Conversions In Implicit conversion can be made when the value to be stored can fit into the variable without being truncated or rounded off. We can take example of int and long, float and double. we can declare a variable int and assign it to a long type which is an implicit conversion as the scope of long is bigger than that of int so there is no worry of loosing data.  Explicit Conversions However, if a conversion cannot be made without a risk of losing information, the compiler requires that you perform an explicit conversion, which is called a cast. A cast is a way of explicitly informing the compiler that you intend to make the conversion and that you are aware ...