Tech News

Basics of .Net Framework

.Net Framework

  • The .Net framework is a software development platform developed by Microsoft.
  • The .Net framework was meant to create application, which would run on the windows platform.
  • The first version of the .net framework was released in the year 2002.

C# Version History  
 C#  Framework   Visual studio      Features                                                                               
 1.0  1.0/1.1                2002    
  1. First Release of C#
 2.0  2.0  2005
  1. Generics
  2. Partial Types
  3. Anonymous method
  4. Null-able types
  5. Iterators
  6. Covariance & Contra-variance 
 3.0  3.0/3.5  2008
  1.  Auto Implemented properties
  2. Anonymous types
  3. Query Expression
  4. Expressions tree
  5. Lambda expression
  6. Extension method  
 4.0  4.0  2010
  1. Dynamic binding
  2. Named/Optional Argument
  3. Generic Covariant & Contra-variant
  4. Embedded Inter-op types 
 5.0  4.5  2012/1013
  1. Asynchronous 
  2. Caller info attributes 
 6.0  4.6  2013/2015
  1. Static imports 
  2. Exceptions filters
  3. Property initializes
  4. Expression bodied members
  5. Null propagator
  6. String Interpolation
  7. Name of operator
  8. Dictionary initializer 
 7.0  .Net Core  2017
  1. Improved performance & productivity
  2. Azure support
  3. AI Support
  4. Game development
  5. Cross platform 
  6. Mobile app development 
  7. Window app development 

Application Execution

The application execution consist 2 steps:
  • Compilation – Source code to IL.
  • JIT Compilation – IL to native code.
Common language runtime (CLR)
  • The heart of .Net frame work is a runtime environment called the CLR. 
  • The CLR manages the life cycle and executed .net application. 
  • It converts a MSIL code into the native code, 
  • It is the execution engine for .net framework application. 
  • It is a virtual machine components that manages the execution.
  • Programmers write code in any languages VB.Net, C#, J# then they compile their programs into in intermediate language in a portable execution file (PE), that can be managed & then CLR converts it into native/machine code.
Component of .Net CLR
  1. Class Loader- used to load all classes.
  2. JIT 
  3. Garbage collector – It manages the menory, collect all unused object and deallocate them to reduce memory.
  4. Exception Handler– It handels exception at runtime.
  5. Thread support – It supports multi threading at our application
  6. Interoperability – Suppose if you had an application built in an older version, say 2.0 and if you tried to run the same application on a machine which had the higher version of the .net framework, say 4.5, the application would still work. this is because with every release, microsoft ensure that older framework version get with the latest version.
  7. Portability– Application built on .net can be made to work on any windows platform. 
Benefits of .Net CLR
  1. Performance improvments
  2. The ability to use components developed in other languages.
  3. Support for structured exceptions handling.
  4. SUpports for custom attributes.
  5. Garbage collection.
  6. Support for explicit free threading that allows creation of multithreading application.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x