Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Home | Tutorial | Articles | Forum | Interview Question | Code Snippets | News | Fun Zone | Poll | Web Links | Certification

| Search Welcome :Guest Home >> Articles >> .Net Framework >> Sign In Register Win Surprise Gifts!!! Congratulations!!! Post New Resource Subscribe to Articles

What is .NET Framework?


Posted By :Abhisek PandaPosted Date :28/11/2009Points :25Category:.Net FrameworkURL:

What is .NET Framework?


.NETFrameworkisanenvironment/platformbuilding,deployingandrunningwebservicesandother applications. The .NET Framework form the infrastructure for the overall structure of .NET platform. TheCommon Language Run Time(CLR) a n d class libraries(including windows form,ADO.NET and ASP.NET) combined together to provide services and solutions, that can be easily implemented within the .NET framework. .NET Framework consists of three parts, CLR, Framework Classes and ASP.NET. .NETFrameworkisa layer between operating system and programming language. In .NET there are different types of classes and libraries which can be shared.

Top 5 Contributors of the Month Syed Shakeer Hussain Sunil Yadav Ramesh

The.NETframeworkrepresentsanenvironmentwithmulti-language support. .NET supports multi-language due to the following components, 1. CLS (Common Language Specification) 2. CLR (Common Language Runtime) 3. CTS (Common Type Specification) T h e b e l o w p i c t u r e s h o w s t h e s t r u c t u r e o f . N E T

framework.

Cross language Specification(CLS):Itdefines a common standard to which a language must support if they want their applications and components widely usable by other .NET compatable languages. Itallowsthedevelopertoinheritclassesfromotherlanguages. Itprovides a set of rules by Microsoft which is used by the compiler to make the object code .NET compatible and these features makes it most powerful.

Common Language Runtime(CLR):Runtime:

http://www.dotnetspark.com/kb/1134-what-is-net-framework.aspx

Page 1 / 3

A runtime is an environment in which the program is executed,e.g, to run a VB program we need a VB runtime environment(msvbm.dll). Similarly to run VC++ or C# applications we need there respective runtimes. When different languages have different runtime it is a difficult task for the programmer. To avoid this problem .NET introduces a common language runtime for all the .NET supporting languages. Common Language Runtime(CLR) provides a runtime environment that manages the execution of .NET framework applications. The code that targets the CLR is called as managed code. T h e CLR is an execution engine for the .NET framework applications and provides a unified environment. TheCLRisresponsible for managing memory applications, starting up, killing threats, and enforces security policies. Whenwewritethecodein.NETandcompileit,itistranslatedintoasetofmachineindependentinstructionscalled as IL(Intermediate Language). ButthisILisnotunderstoodbythemachine.Thelinker takes the MSIL(Microsoft Intermediate Language) and converts it into exe or dll format which is again taken by another compiler called as JiT(Just in Time) and convert it into the native code. After that it is executed on the CLR.

Components Of CLR:
Base Class Library Support:- It provides different classes which is compatible for all .NET compatible language. Thread Support:- It provides classes and interfaces for multiprogramming. COM Marshaller:- Marshaling to and from COM(Component Object Model). Type Checker:- It avoids uninitialized variables and other typecasting. Exception Engine:- It helps in error reporting. Security Engine:- It provides security to the program and user. Debug Engine:- It helps in debugging and implement towards execution. MSIL to Native:- IL is converted to CPU dependent with the help of JiT. Code Manager:- It manages the code. Garbage Collector:- It is a program which provides lifetime garbage collection for the object. Class Loader:- It loads the implemented class for its execution. Cross Language Interoperability:Itisdefinedasthesharingofcomponentsofonelanguagewithotherlanguages. .NETsupportscrosslanguageinteroperability,butitdoesnotmeanthateveryprogramwritteninonelanguagecanbe used by other language. Forcrosslanguageinteroperabilityalanguagemustenablecrosslanguagespecification. AclasswritteninC#canbeinheritedbyaprogramwritteninVB.NET.ItiscalledasCross Language Inheritance. IfanexceptionraisedinC#itcanbehandledinVB.NET.ItiscalledasCross Language Exception Handling. Cross Language Interoperability is only possible due to CLS(Common Language Specification) and CLR (Common Language Runtime).

CTS(Common Type Specification):Itisacomponentof.NETframework.CTS represents the datatypes of different languages in a specific format specification. Example:- A datatype in VB.NET can be represented as "integer", but in C# it is "int". Int in CTS is represented as "int32". Eachofthesedatatypesmaptoacommonlanguageruntimetype.Thereservedwordsusedtonamethedifferent datatypes are simply aliases for the predefined structure type in System namespace. The'int'datatypeisanaliasofthestructtype'int32'inthesystemnamespace.Thefollowingsaresomedatatypes and their corresponding CTS specifications, Boolean------------System.Boolean Byte---------------System.Byte Char---------------System.Char Date---------------System.DateTime Decimal------------System.Decimal Double-------------System.Double Integer------------System.Int32 Short--------------System.Int16 String-------------System.String

http://www.dotnetspark.com/kb/1134-what-is-net-framework.aspx

Page 2 / 3

Object-------------System..Object UserDefinedTypes- - -System.ValueType

This ends our discussion. I hope this article will help you to understand .NET framework easily.

Featured Articles
Best Best Practice No: 1:- Detecting High Memory consuming How to improve your Detecting .NET application 5 X times ? functions in .NET code .NET Practices No 5: - LINQ query performance bymemory leaks Memory leaks criticized by many early adopters for its performance issues. Well if you are are Many developers just LINQ has beenin .NET application have always being programmer's nightmare. Memory leaksjust biggest drag and drop it comes One of the important factors for performance degradation in .NET code is memory consumption.going toproblems when using to production servers. am sure you will land up in to mess. run with in .NET time. Memory leaks project using DBML and DBML code on execution time to determine performance bottle necksthisa down application. Only measuring execution time concentrategenerator IProductions servers normally need to Try doing leastmake a simple LINQ to SQLgrow slowly and after sometime they bring I am sure you by never like see your clearly give down the serverwill consumingtoissue resides.code generator again. ... Readbiggest task system, make it does not SQL profiler,idea of where the performancehuge chunks of Ok, said and done one of people reboot theis to understand touch DBML memory. Maximum time the More work function, assembly or sorry note to the customer for the downtime. ... Read we will whichtemporarily and send aclass has consumed how much memory. In this tutorial More see how we can find which functions consume how much memory. This article discusses the best practices involved using CLR profiler for studying memory allocation.... Read More

Responses

No response found. Be the first to respond this post

Post Comment
You must Sign InTo post reply

l l l l l

Single click to open your files and folders Increase your Virtual Memory size Tips to minimize windows start-up time

Read also another Resources from the same Author

l l l l l

Parameter Arrays in C#

Related Resource From The Same Category

Simplest way to view hidden files in Windows

Silverlight Plane Projection Creating a High Performance Stack-Based Array Features of Visual Studio 2010 Marshaling Unions in .NET Framework

Using DataSet To Retrieve Data From Database

Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of FameTwitterTerms of ServicePrivacy PolicyContact UsArchivesTell A Friend

http://www.dotnetspark.com/kb/1134-what-is-net-framework.aspx

Page 3 / 3

You might also like