You are on page 1of 19

Introduction to .

NET Framework

What is .NET Framework ?

Components of Framework
Common Language Runtime. (CLR) CLR Execution Model CLR Services.

Common Type System


Common Language Specification Base Class Library Win Forms Web Forms Web Services ADO. Net

http://rgcetmca2.blogspot.com

.NET is a Microsoft Product.

.NET is a Framework.
Microsoft uses Visual Studio applications like
Console application Windows application Web Applications and Web Services.

to Create , Debug

and Deploy all .NET

NET Framework manages all aspects of program like ;


Allocation of memory. Reallocation of memory resources that are not used. Managing execution of the application.

.NET Framework is designed for cross-language compatibility.

http://rgcetmca2.blogspot.com

http://rgcetmca2.blogspot.com

Common Language Runtime


Common Type System Common Language Specification

.NET Base Class Libraries Web Forms Web Services

Windows Forms
ADO.Net

http://rgcetmca2.blogspot.com

CLR is the heart of .NET Framework. Execution environment for code written in .NET Framework. The CLR works with every language available for the .NET Framework. But CLR is not a common compiler for all .NET compatible languages.

http://rgcetmca2.blogspot.com

http://rgcetmca2.blogspot.com

Code developed in a .NET language is compiled by the individual

language

compiler

into

an

intermediate

format

called

Intermediate Language (IL) Also called as Microsoft Intermediate Language (MSIL). At runtime, this IL code generated by the compiler is compiled by the CLR (just-in-time (JIT compiler)) into native code or Managed Code. Unmanaged code does not execute under the Common Language Runtime. Thus, all Windows programs prior to the creation of the .NET Framework use unmanaged code.

http://rgcetmca2.blogspot.com

Memory allocation Conversion of MSIL to native code Garbage collection (which helps avoid memory leaks), Code verification Code access security Thread management, enforcing type-safety, and many other

tasks.

http://rgcetmca2.blogspot.com

CTS defines how data types are going to be declared and

managed in runtime.
In .NET Framework, System.Object is the common base type from where all the other types are derived.

The Common Type System performs the following functions:


Automatic integration of multiple languages, Type safety

High performance code execution.


Provides an object-oriented model. Standardizes the conventions that all the languages must follow.

http://rgcetmca2.blogspot.com

A superset of the data types used by most modern programming languages

http://rgcetmca2.blogspot.com

Language keywords map to common CTS classes

http://rgcetmca2.blogspot.com

CLS is a specification that defines the rules to support

language integration in such a way that programs written in


any language, can interoperate with one another. The CLS is a subset CLR, as well as a set of rules that language

and compiler designers must follow.


CLS provides the ability to inherit classes written in one .NET language in any other .NET language and cross-language debugging. The rules defined by the CLS apply only to publicly exposed features of a class.

http://rgcetmca2.blogspot.com

Also called as Framework Class Library (FCL) FCL is a set of reusable object-oriented classes that provide basic platform functionality, such as ; Data access classes of ADO.NET File system utility classes networking classes (ex: DNS resolution) and

other network-related functionality etc.,


Developers can use the base classes directly or derive from these classes to provide customized functionality.

http://rgcetmca2.blogspot.com

All objects of BCL originate from class System

Some of the BCL are mentioned below;


System Root for all namespaces System.Data Database classes System.Text String manipulation System.IO File I/O System.Windows.Forms Windows Forms System.Web Web Forms System.XML XML elements

http://rgcetmca2.blogspot.com

For developing traditional Windows GUI applications, the .NET

Framework provides Windows Forms.


System.Windows.Forms. Windows Forms provides rich controls that uses object-oriented capabilities of the .NET Framework. Another important advance with Windows Forms is that we now have a single GUI library and forms designer for all of the supported languages.
Whether you program in VB, C++, or one of the newer languages such as C#, you'll be using the same classes, methods, and events, since they all use the same class library: System.Windows.Forms.
http://rgcetmca2.blogspot.com

Developing Web Applications. Provides ASP. Net developer the same drag and drop development Web Forms convenience improve the enjoyed speed of by Visual Basic by developers for years. development encapsulating frequently used features into server controls. Controls are declared using a tag-based syntax similar to HTML and XML. VS2005 provides inbuilt web server WEBDAVE

http://rgcetmca2.blogspot.com

To build a SOA. (Service Oriented Architecture) Web services can make the task of application-toapplication integration easier.

http://rgcetmca2.blogspot.com

ADO. Net (Active X Data Object) is used for data access and manipulate protocol, which enables us to work with data on the internet. ADO.NET is similar to ADO, but better factored. Supports two styles of data access. Disconnected

Forward-only, read-only access


Supports data binding

http://rgcetmca2.blogspot.com

You might also like