PRESENTATION ON MICROSOFT .NET
FRAMEWORK
Jogi Nidhi M.Joshi Bhumi S.
Index: .NET Architecture What is .NET? .NET What is it? .NET runtime(CLR) MSIL(Microsoft Intermediate language) Managed code & Unmanaged code NET Languages Available Assembly BCL(Base Class Library) CTS(Common Type Specification) Metadata JIT Compiler Resources
2
What Is .NET
• .Net is a new framework for developing web-based and windows-based applications within the Microsoft environment.
• The framework offers a fundamental shift in Microsoft strategy: it moves application development from client-centric to server-centric.
3
Base Class Library
Common Language Specification
Common Language Runtime
Data and XML
VB C++ C#
Visu
al Stu
dio
.NE
T
WebServices
JScript …
UserInterface
4
5
.NET – What Is It?
Operating System + Hardware
.NET Framework
.NET Application
CLR(Common language Runtime)
• CLR is the heart of .NET framework.
• It’s a VM (Java-like) on which any (supported) language
can run.
• It is also refer as a manage environment that provide garbage collection security.
• JIT compilation in the VM
6
MSIL
• Languages compile to MSIL (Microsoft Intermediate Language)
• MSIl is the cpu independent instruction set into which .NET framework program compile.
• MSIL contains instruction for loading , storing , inislize and calling method of different objects.
• It is also known as CIL(Common Intermediate Language) or IL(Intermidiate Language).
7
Managedcode & Unmanagedcode
• Manage Code: It runs on CLR.
First load and varify in the assembly.
• Unmanaged Code: It is directly compile to machine code that run on
machine.
It directly run on operating System.
8
.NET Languages Available
• Visual Basic• C#• Jscript• C++• Perl• Python• COBOL• Haskell• ML• Ada
• Pascal• C• SmallTalk• Oberon• Scheme• Mercury• APL• Eiffel• Oz• Objective Caml
9
Assembly• In general, a static assembly can
consist of four elements:
• The assembly manifest, which contains assembly metadata.
• Type metadata.
• Microsoft intermediate language (MSIL) code that implements the types.
• A set of resources.
10
BCL
• In c and c++ we include header files like stdio.h,conio.h for use library functions.
• In .NET BCL is the collection of the classes and namespaces which are used in application.
• The .NET framework BCL provides collection of classes which are hierarchical organized via namespaces.
11
CTS
• Microsoft has provide common type system which means we don’t worry about when we are developing multiple languages.
• In .NET all data types are object which derived from System.Object.
• All data types derived from common base class
12
Metadata
• The data above data is called metadata.
• It is a feature that the CLR knows the details about particular component or object.
• This data is stored in assenbly.
• It contains a declaration for every type including names,members like methods , field , properties and events.
13
JIT Compiler
• JIT stands for JUST-IN TIME Compiler.
• When any .NET application is compiled it is not converted into machine code but it is converted into MSIL.
• This code is machine independent so CLR provide just in time compilation technique to convert MSIL into platform/device specific code.
14
Continue…..• There are three types of compiler:
1.Pre-JIT:Normally it is use at instalation time.
2.Econo-JIT:This compiler is used on devices with limited recourses.
3.Normal JIT:It is default resulting native code in cache.
15
Resources
• http://www.w3.org/TR/SOAP/ - W3C standards for SOAP implementation
• http://www.microsoft.com/net - Microsoft .NET home
• http://msdn.microsoft.com/net - Microsoft .NET developers home
16
17
18