SlideShare a Scribd company logo
1 of 15
Namespaces
The class library organizes its classes into namespaces.
For ex: .Net Framework,Jscript,C#,Win32 etc.
Namespaces helps to create logical groups of related
classes & Interfaces that can be used by any language
target by .Net framework.
Namespaces helps us to organize our classes so that
they can be easily accessed by any other application.
Namespaces are use to avoid conflicts between classes
that have same names. For ex: We can use two classes
with same names but with different namespaces.
 We can access namespace by simply importing the
namespace into application.
Net uses (.) operator as a delimeter between class &
namespace
A namespace definition begins with the
keyword namespace followed by the namespace
name as follows:
namespace namespace_name
{
code declarations
}
using System;
namespace first_space
{
class namespace_cl
{
public void func()
{
Console.WriteLine("Inside first_space");
} } }
namespace second_space
{
class namespace_cl
{
public void func()
{
Console.WriteLine("Inside second_space");
} } }
class TestClass
{
static void Main(string[] args)
{
first_space.namespace_cl fc = new first_space.namespace_cl();
second_space.namespace_cl sc = new second_space.namespace_cl();
fc.func();
sc.func(); Console.ReadKey(); } }
 The using Keyword
The using keyword states that the program is using the
names in the given namespace. For example, we are
using the System namespace in our programs. The class
Console is defined there. We just write:
Console.WriteLine ("Hello there");
Few Namespaces & their description
Namespaces Description
System Include essential classes & base classes
for commonly use datatype, events & so
on
System.Windows.Forms.Form Include classes needed to create
Window form.
System.Windows.Forms.Button Include classes needed for using
button.
System.Data Include classes that make up ADO.NET
System.SqlClient Include classes that support SQL server
.Net provider.
System.XML Include classes that support XML.
System.Web Provides Classes & Interface that
support browser server communication.
System.Net Provides Interface to protocols used on
Internet
Assembly
The namespace are placed within Assemblies.
Assemblies are the building blocks of .Net application,
the common language runtime does not support types
outside of assemblies.
Assembly files are located on somewhere on the disc
that are defined as Portable Executable(PE).
An Assembly is a single deployable unit that contains
the all information about the implementation of classes,
structure & Interface.
An Assembly stores all information about itself.
Dot NET assemblies may or may not be executable, i.e.,
they might exist as the executable (.exe) file or dynamic
link library (DLL) file.
Assembly & metadata provides the CLR with the
information required for executing the application.
For ex. If an application uses a component the assembly
keeps tracks of version no of component used in
application.
The Assembly provides the information to the CLR
while application being executed.
Components of Assembly
Assembly consist of Manifest, Module & Type
Manifest describe the Manifest. It contains..
 Name & version no of assembly
 Its Interaction information with other assemblies.
 Security permission required by the assembly
Module is either a DLL & EXE file. It contains..
 Compiled code or Intermediate language code
 Metadata associated with module.
Type is a class that contains data & logic affecting
the data.
Functions of Assembly
An assembly in .Net framework performs following
functions..
Support Execution
Provide security
Provide unique identification
Track version
Support Deployment
Support side by side execution
Private Assembly and a Shared Assembly
 Private assembly can be used by only one
application.
 Private assembly will be stored in the specific
application's directory or sub-directory.
 There is no other name for private assembly. Private
assembly doesn't have any version constraint.
 Public Assembly:
 Public assembly can be used by multiple applications.
 Public assembly is stored in GAC (Global Assembly
Cache).
 Public assembly is also termed as shared assembly.
 Public assembly should strictly enforce
Compiler:
When you compile a program developed in a
language that targeted the CLR instead of compiling
the source code into machine level code , the
compiler translate the source code into Microsoft
Intermediate Language or IL. This ensures language
interoperability.
The compiler also produces metadata about the
program during the process of compilation.
The process of compiling & executing the
managed code is given below..
 Metadata contains the description of the program such
as the classes & interface, the dependencies & the
version of component used in the program.
Class loader:
When we execute the .EXE & .DLL file the code & all
other information from the base class library is sent to
the class loader.
The class loader loads the code into memory.
 Before the code can be executed ,the .Net framework
needs to convert the IL into native or CPU specific code.
 The just In time compiler translate the code from IL
into manage native code.
 The CLR supplies a JIT compiler for each supported
CPU architecture.
 During the process of compilation the JIT compiler
compiles the code that is required during execution
instead of compiling the complete IL code
 When an uncompiled method is invoke during
execution the JIT compiler converts the IL for that
method into native code
JIT Compiler
 This process saves the time & memory required to
convert the complete IL into native code
 During JIT compilation the code is also checked for type
safely.
 Type safely ensures the objects are always accessed in a
compactable way.
 Type safely also ensures that objects are safely isolated
from each other & are therefore safe from any
corruption.

More Related Content

What's hot (20)

Ado.Net Tutorial
Ado.Net TutorialAdo.Net Tutorial
Ado.Net Tutorial
 
Classes and objects
Classes and objectsClasses and objects
Classes and objects
 
Presentation on-exception-handling
Presentation on-exception-handlingPresentation on-exception-handling
Presentation on-exception-handling
 
Java Data Types
Java Data TypesJava Data Types
Java Data Types
 
C# classes objects
C#  classes objectsC#  classes objects
C# classes objects
 
JVM
JVMJVM
JVM
 
Preprocessor directives in c language
Preprocessor directives in c languagePreprocessor directives in c language
Preprocessor directives in c language
 
C functions
C functionsC functions
C functions
 
Java tutorial PPT
Java tutorial PPTJava tutorial PPT
Java tutorial PPT
 
Java - Generic programming
Java - Generic programmingJava - Generic programming
Java - Generic programming
 
Control structures in java
Control structures in javaControl structures in java
Control structures in java
 
Applets
AppletsApplets
Applets
 
Control statements in java
Control statements in javaControl statements in java
Control statements in java
 
Inheritance in JAVA PPT
Inheritance  in JAVA PPTInheritance  in JAVA PPT
Inheritance in JAVA PPT
 
JDBC – Java Database Connectivity
JDBC – Java Database ConnectivityJDBC – Java Database Connectivity
JDBC – Java Database Connectivity
 
Java Tokens
Java  TokensJava  Tokens
Java Tokens
 
Javascript
JavascriptJavascript
Javascript
 
Collections framework in java
Collections framework in javaCollections framework in java
Collections framework in java
 
Threads And Synchronization in C#
Threads And Synchronization in C#Threads And Synchronization in C#
Threads And Synchronization in C#
 
Packages in java
Packages in javaPackages in java
Packages in java
 

Viewers also liked

dotNET frameworks
dotNET frameworksdotNET frameworks
dotNET frameworksnawal saad
 
Learn C# at ASIT
Learn C# at ASITLearn C# at ASIT
Learn C# at ASITASIT
 
Introduction to dot net framework by vaishali sahare [katkar]
Introduction to dot net framework by vaishali sahare [katkar]Introduction to dot net framework by vaishali sahare [katkar]
Introduction to dot net framework by vaishali sahare [katkar]vaishalisahare123
 

Viewers also liked (6)

Visual basic
Visual basicVisual basic
Visual basic
 
dotNET frameworks
dotNET frameworksdotNET frameworks
dotNET frameworks
 
Learn C# at ASIT
Learn C# at ASITLearn C# at ASIT
Learn C# at ASIT
 
Introduction to dot net framework by vaishali sahare [katkar]
Introduction to dot net framework by vaishali sahare [katkar]Introduction to dot net framework by vaishali sahare [katkar]
Introduction to dot net framework by vaishali sahare [katkar]
 
1 introduccion.net
1 introduccion.net1 introduccion.net
1 introduccion.net
 
Data types
Data typesData types
Data types
 

Similar to Namespaces in C#

Inside .net framework
Inside .net frameworkInside .net framework
Inside .net frameworkFaisal Aziz
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)DrUjwala1
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIESProf Ansari
 
Chapter 1 introduction to .net
Chapter 1 introduction to .netChapter 1 introduction to .net
Chapter 1 introduction to .netRahul Bhoge
 
.Net framework
.Net framework.Net framework
.Net frameworkRaghu nath
 
.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questionsMir Majid
 
Introduction to .NET Programming
Introduction to .NET ProgrammingIntroduction to .NET Programming
Introduction to .NET ProgrammingKarthikeyan Mkr
 
Dotnet interview qa
Dotnet interview qaDotnet interview qa
Dotnet interview qaabcxyzqaz
 
ASP.NET 01 - Introduction
ASP.NET 01 - IntroductionASP.NET 01 - Introduction
ASP.NET 01 - IntroductionRandy Connolly
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iRakesh Joshi
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iRakesh Joshi
 
Unit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdfUnit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdfUjwala Junghare
 

Similar to Namespaces in C# (20)

Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
 
Net framework
Net frameworkNet framework
Net framework
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIES
 
.Net framework
.Net framework.Net framework
.Net framework
 
Chapter 1 introduction to .net
Chapter 1 introduction to .netChapter 1 introduction to .net
Chapter 1 introduction to .net
 
.Net framework
.Net framework.Net framework
.Net framework
 
C# Unit 1 notes
C# Unit 1 notesC# Unit 1 notes
C# Unit 1 notes
 
Intro.net
Intro.netIntro.net
Intro.net
 
.Net slid
.Net slid.Net slid
.Net slid
 
.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questions
 
c#.pptx
c#.pptxc#.pptx
c#.pptx
 
Vb
VbVb
Vb
 
Introduction to .NET Programming
Introduction to .NET ProgrammingIntroduction to .NET Programming
Introduction to .NET Programming
 
Dotnet interview qa
Dotnet interview qaDotnet interview qa
Dotnet interview qa
 
.Net Session Overview
.Net Session Overview.Net Session Overview
.Net Session Overview
 
ASP.NET 01 - Introduction
ASP.NET 01 - IntroductionASP.NET 01 - Introduction
ASP.NET 01 - Introduction
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
 
Unit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdfUnit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdf
 

Recently uploaded

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxElton John Embodo
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsRommel Regala
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 

Recently uploaded (20)

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World Politics
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 

Namespaces in C#

  • 1. Namespaces The class library organizes its classes into namespaces. For ex: .Net Framework,Jscript,C#,Win32 etc. Namespaces helps to create logical groups of related classes & Interfaces that can be used by any language target by .Net framework. Namespaces helps us to organize our classes so that they can be easily accessed by any other application. Namespaces are use to avoid conflicts between classes that have same names. For ex: We can use two classes with same names but with different namespaces.  We can access namespace by simply importing the namespace into application.
  • 2. Net uses (.) operator as a delimeter between class & namespace A namespace definition begins with the keyword namespace followed by the namespace name as follows: namespace namespace_name { code declarations }
  • 3. using System; namespace first_space { class namespace_cl { public void func() { Console.WriteLine("Inside first_space"); } } } namespace second_space { class namespace_cl { public void func() { Console.WriteLine("Inside second_space"); } } } class TestClass { static void Main(string[] args) { first_space.namespace_cl fc = new first_space.namespace_cl(); second_space.namespace_cl sc = new second_space.namespace_cl(); fc.func(); sc.func(); Console.ReadKey(); } }
  • 4.  The using Keyword The using keyword states that the program is using the names in the given namespace. For example, we are using the System namespace in our programs. The class Console is defined there. We just write: Console.WriteLine ("Hello there");
  • 5. Few Namespaces & their description Namespaces Description System Include essential classes & base classes for commonly use datatype, events & so on System.Windows.Forms.Form Include classes needed to create Window form. System.Windows.Forms.Button Include classes needed for using button. System.Data Include classes that make up ADO.NET System.SqlClient Include classes that support SQL server .Net provider. System.XML Include classes that support XML. System.Web Provides Classes & Interface that support browser server communication. System.Net Provides Interface to protocols used on Internet
  • 6. Assembly The namespace are placed within Assemblies. Assemblies are the building blocks of .Net application, the common language runtime does not support types outside of assemblies. Assembly files are located on somewhere on the disc that are defined as Portable Executable(PE). An Assembly is a single deployable unit that contains the all information about the implementation of classes, structure & Interface. An Assembly stores all information about itself. Dot NET assemblies may or may not be executable, i.e., they might exist as the executable (.exe) file or dynamic link library (DLL) file.
  • 7. Assembly & metadata provides the CLR with the information required for executing the application. For ex. If an application uses a component the assembly keeps tracks of version no of component used in application. The Assembly provides the information to the CLR while application being executed.
  • 8. Components of Assembly Assembly consist of Manifest, Module & Type Manifest describe the Manifest. It contains..  Name & version no of assembly  Its Interaction information with other assemblies.  Security permission required by the assembly Module is either a DLL & EXE file. It contains..  Compiled code or Intermediate language code  Metadata associated with module. Type is a class that contains data & logic affecting the data.
  • 9. Functions of Assembly An assembly in .Net framework performs following functions.. Support Execution Provide security Provide unique identification Track version Support Deployment Support side by side execution
  • 10. Private Assembly and a Shared Assembly  Private assembly can be used by only one application.  Private assembly will be stored in the specific application's directory or sub-directory.  There is no other name for private assembly. Private assembly doesn't have any version constraint.
  • 11.  Public Assembly:  Public assembly can be used by multiple applications.  Public assembly is stored in GAC (Global Assembly Cache).  Public assembly is also termed as shared assembly.  Public assembly should strictly enforce
  • 12. Compiler: When you compile a program developed in a language that targeted the CLR instead of compiling the source code into machine level code , the compiler translate the source code into Microsoft Intermediate Language or IL. This ensures language interoperability. The compiler also produces metadata about the program during the process of compilation. The process of compiling & executing the managed code is given below..
  • 13.  Metadata contains the description of the program such as the classes & interface, the dependencies & the version of component used in the program. Class loader: When we execute the .EXE & .DLL file the code & all other information from the base class library is sent to the class loader. The class loader loads the code into memory.
  • 14.  Before the code can be executed ,the .Net framework needs to convert the IL into native or CPU specific code.  The just In time compiler translate the code from IL into manage native code.  The CLR supplies a JIT compiler for each supported CPU architecture.  During the process of compilation the JIT compiler compiles the code that is required during execution instead of compiling the complete IL code  When an uncompiled method is invoke during execution the JIT compiler converts the IL for that method into native code JIT Compiler
  • 15.  This process saves the time & memory required to convert the complete IL into native code  During JIT compilation the code is also checked for type safely.  Type safely ensures the objects are always accessed in a compactable way.  Type safely also ensures that objects are safely isolated from each other & are therefore safe from any corruption.