2. 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
3. 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
4. Base Class Library
Common Language Specification
Common Language Runtime
Data and XML
VB C++ C#
Visual
Studio.NET
Web
Services
JScript …
User
Interface
4
5. 5
.NET – What Is It?
Operating System + Hardware
.NET Framework
.NET Application
6. 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
7. 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
8. 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
9. .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
10. 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
11. 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
12. 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
13. 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
14. 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
15. 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
16. 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