SlideShare a Scribd company logo
@ 2010 Tata McGraw-Hill Education
1
Education
Understanding .Net:Understanding .Net:
The C# EnvironmentThe C# Environment
@ 2010 Tata McGraw-Hill Education
2
Education
.NET is a software framework that includes everything required for developing
software for web services. It integrates pre-sentation technologies, component tech-
nologies and data technologies on a single platform so as to enable users to develop
Internet applications as easily as they do on desktop systems. Microsoft took many
of the best ideas in the industry, added their own creativity and innovations and
produced a coherent systems solution popularly known as Microsoft .NET. The
Microsoft .NET software solution strategy includes three key approaches as shown
in Fig. 2.1.
@ 2010 Tata McGraw-Hill Education
3
Education
Microsoft .NET platform includes the following components that would help develop a
new generation of smart Internet services:
.NET infrastructure and tools
.NET user experience
.NET building block
.NET device software
Microsoft .NET products and services consist of the following:
Windows .NET
MSN .NET
Office .NET
Visual Studio .NET
Personal subscription services
bCentral for .NET
@ 2010 Tata McGraw-Hill Education
4
Education
THE ORIGINS OF .NET TECHNOLOGY
Before going into the details of .NET features further, we shall see how the concept
of .NET was evolved over the past ten years. The current technology of .NET has
gone through three signifi cant phases of development:
OLE technology
COM technology
.NET technology
These developments that took place during the 1990s are illustrated in Fig. 2.2
@ 2010 Tata McGraw-Hill Education
5
Education
@ 2010 Tata McGraw-Hill Education
6
Education
THE .NET FRAMEWORK
The .NET Framework is one of the tools
provided by the .NET infrastructure and
tools component of the .NET platform as
shown in Fig. 2.3. As pointed out earlier, the
.NET platform provides a new environment
for creating and running robust, scalable and
distributed applications over the Web
@ 2010 Tata McGraw-Hill Education
7
Education
The .NET Framework provides an environment for building, deploying and
running web services and other applications. It consists of three distinct technologies
as shown in Fig. 2.4.
@ 2010 Tata McGraw-Hill Education
8
Education
THE COMMON LANGUAGE RUNTIME
The Common Language Runtime, popularly known as CLR is the heart and soul of
the .NET Framework. As the name suggests, CLR is a runtime environment in which
programs written in C# and other .NET languages are executed. It also supports cross-
language interoperability. Figure 2.5 gives a diagrammatic summary of the major
components of the CLR.
The CLR provides a number of services that include:
Loading and execution of programs
Memory isolation for applications
Verification of type safety
Compilation of IL into native executable code
Providing metadata
Memory management (automatic garbage collection)
Enforcement of security
Interoperability with other systems
Managing exceptions and errors
Support for tasks such as debugging and profiling
@ 2010 Tata McGraw-Hill Education
9
Education
Figure 2.6 shows a flow chart of
CLR activities that go on when an
application is executed
@ 2010 Tata McGraw-Hill Education
10
Education
FRAMEWORK BASE CLASSES
.NET supplies a library of base classes that we can use to implement applications
quickly. We can use them by simply instantiating them and invoking their methods
or by inheriting them through derived classes, thus extending their functionality.
Much of the functionality in the base framework classes resides in the
vast namespace called System. We can use the base classes in the system
namespace for many different tasks including:
Input / Output Operations
String handling
Managing arrays, lists, maps, etc
Accessing files and file systems
Accessing the registry
Security
Windowing
Windows messages
Database management
Evaluation of Mathematical functions
Drawing
Managing errors and exceptions
Connecting to the Internet
And many more
@ 2010 Tata McGraw-Hill Education
11
Education
The .NET Framework provides the following tools for managing user and
application interfaces:
Windows forms
Web forms
Console Applications
Web services
These tools enable users to develop user-friendly desktop-based as well as web-based
applications using a wide variety of languages on the .NET platform.
@ 2010 Tata McGraw-Hill Education
12
Education
Visual Studio .NET (VS .NET) supports an Integrated Development
Environment (IDE) with a rich set of features and productivity tools.
These features and tools allow developers to build web applications
faster and easier. Using web services and XML regardless of the
language chosen for development, there is now one environment to
learn, configure and use. We need not have to switch back and forth
between environments to build, debug and deploy our code. VS .NET
provides tools that extends support to the development lifecycle. As
shown in Fig. 2.7, it acts as a foundation for the lifecycle platform. A
detailed discussion on these tools is beyond the scope of this book
VISUAL STUDIO .NET

More Related Content

Similar to C# intro

Sreerag dot net - objectives & architecture
Sreerag   dot net - objectives & architectureSreerag   dot net - objectives & architecture
Sreerag dot net - objectives & architectureSreerag Gopinath
 
Asp.net new
Asp.net newAsp.net new
Asp.net new
Ganesh Jaya
 
1-.NET Introduction.pptx
1-.NET Introduction.pptx1-.NET Introduction.pptx
1-.NET Introduction.pptx
RKAggarwal6
 
Onine exam 1
Onine exam 1Onine exam 1
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checker
Yesu Raj
 
12 Reasons Why .NET Framework is Popularly Demanded
12 Reasons Why .NET Framework is Popularly Demanded12 Reasons Why .NET Framework is Popularly Demanded
12 Reasons Why .NET Framework is Popularly Demanded
Kiran Beladiya
 
Actively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net DeveloperActively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net Developer
Karthik Reddy
 
Actively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net DeveloperActively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net Developer
Karthik Reddy
 
Session i
Session iSession i
Session i
DrUjwala1
 
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
Ujwala Junghare
 
.Net framework
.Net framework.Net framework
.Net frameworkRaghu nath
 
Microsoft.pdf
Microsoft.pdfMicrosoft.pdf
Microsoft.pdf
priyasujitha
 
basic of .net programming in computer language
basic of .net programming in computer languagebasic of .net programming in computer language
basic of .net programming in computer language
PGopinath3
 
Reasons Why .NET framework is Most Demanding in 2023?
Reasons Why .NET framework is Most Demanding in 2023?Reasons Why .NET framework is Most Demanding in 2023?
Reasons Why .NET framework is Most Demanding in 2023?
Polyxer Systems
 
Win net presentacion [2005]
Win net presentacion [2005]Win net presentacion [2005]
Win net presentacion [2005]Raul Soto
 
Best Full Stack .NET Core Classroom & Online training - Naresh IT
Best Full Stack .NET Core Classroom & Online training - Naresh ITBest Full Stack .NET Core Classroom & Online training - Naresh IT
Best Full Stack .NET Core Classroom & Online training - Naresh IT
manoharjgpsolutions
 
programming in c#.ppt
programming in c#.pptprogramming in c#.ppt
programming in c#.ppt
NalinaKumari2
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .netFelisha Hosein
 
Top Things to Know about .NET 6
Top Things to Know about .NET 6Top Things to Know about .NET 6
Top Things to Know about .NET 6
BoTree Technologies
 

Similar to C# intro (20)

Sreerag dot net - objectives & architecture
Sreerag   dot net - objectives & architectureSreerag   dot net - objectives & architecture
Sreerag dot net - objectives & architecture
 
R0701116121
R0701116121R0701116121
R0701116121
 
Asp.net new
Asp.net newAsp.net new
Asp.net new
 
1-.NET Introduction.pptx
1-.NET Introduction.pptx1-.NET Introduction.pptx
1-.NET Introduction.pptx
 
Onine exam 1
Onine exam 1Onine exam 1
Onine exam 1
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checker
 
12 Reasons Why .NET Framework is Popularly Demanded
12 Reasons Why .NET Framework is Popularly Demanded12 Reasons Why .NET Framework is Popularly Demanded
12 Reasons Why .NET Framework is Popularly Demanded
 
Actively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net DeveloperActively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net Developer
 
Actively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net DeveloperActively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net Developer
 
Session i
Session iSession i
Session 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
 
.Net framework
.Net framework.Net framework
.Net framework
 
Microsoft.pdf
Microsoft.pdfMicrosoft.pdf
Microsoft.pdf
 
basic of .net programming in computer language
basic of .net programming in computer languagebasic of .net programming in computer language
basic of .net programming in computer language
 
Reasons Why .NET framework is Most Demanding in 2023?
Reasons Why .NET framework is Most Demanding in 2023?Reasons Why .NET framework is Most Demanding in 2023?
Reasons Why .NET framework is Most Demanding in 2023?
 
Win net presentacion [2005]
Win net presentacion [2005]Win net presentacion [2005]
Win net presentacion [2005]
 
Best Full Stack .NET Core Classroom & Online training - Naresh IT
Best Full Stack .NET Core Classroom & Online training - Naresh ITBest Full Stack .NET Core Classroom & Online training - Naresh IT
Best Full Stack .NET Core Classroom & Online training - Naresh IT
 
programming in c#.ppt
programming in c#.pptprogramming in c#.ppt
programming in c#.ppt
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .net
 
Top Things to Know about .NET 6
Top Things to Know about .NET 6Top Things to Know about .NET 6
Top Things to Know about .NET 6
 

More from Prasanna Kumar SM

C# Introduction brief
C# Introduction briefC# Introduction brief
C# Introduction brief
Prasanna Kumar SM
 
Structure and Enum in c#
Structure and Enum in c#Structure and Enum in c#
Structure and Enum in c#
Prasanna Kumar SM
 
Overview of c#
Overview of c#Overview of c#
Overview of c#
Prasanna Kumar SM
 
Operators and Expressions in C#
Operators and Expressions in C#Operators and Expressions in C#
Operators and Expressions in C#
Prasanna Kumar SM
 
Methods in C#
Methods in C#Methods in C#
Methods in C#
Prasanna Kumar SM
 
Literals,variables,datatype in C#
Literals,variables,datatype in C#Literals,variables,datatype in C#
Literals,variables,datatype in C#
Prasanna Kumar SM
 
Decision making and loop in C#
Decision making and loop in C#Decision making and loop in C#
Decision making and loop in C#
Prasanna Kumar SM
 
Characteristics of c#
Characteristics of c#Characteristics of c#
Characteristics of c#
Prasanna Kumar SM
 

More from Prasanna Kumar SM (8)

C# Introduction brief
C# Introduction briefC# Introduction brief
C# Introduction brief
 
Structure and Enum in c#
Structure and Enum in c#Structure and Enum in c#
Structure and Enum in c#
 
Overview of c#
Overview of c#Overview of c#
Overview of c#
 
Operators and Expressions in C#
Operators and Expressions in C#Operators and Expressions in C#
Operators and Expressions in C#
 
Methods in C#
Methods in C#Methods in C#
Methods in C#
 
Literals,variables,datatype in C#
Literals,variables,datatype in C#Literals,variables,datatype in C#
Literals,variables,datatype in C#
 
Decision making and loop in C#
Decision making and loop in C#Decision making and loop in C#
Decision making and loop in C#
 
Characteristics of c#
Characteristics of c#Characteristics of c#
Characteristics of c#
 

Recently uploaded

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 

Recently uploaded (20)

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 

C# intro

  • 1. @ 2010 Tata McGraw-Hill Education 1 Education Understanding .Net:Understanding .Net: The C# EnvironmentThe C# Environment
  • 2. @ 2010 Tata McGraw-Hill Education 2 Education .NET is a software framework that includes everything required for developing software for web services. It integrates pre-sentation technologies, component tech- nologies and data technologies on a single platform so as to enable users to develop Internet applications as easily as they do on desktop systems. Microsoft took many of the best ideas in the industry, added their own creativity and innovations and produced a coherent systems solution popularly known as Microsoft .NET. The Microsoft .NET software solution strategy includes three key approaches as shown in Fig. 2.1.
  • 3. @ 2010 Tata McGraw-Hill Education 3 Education Microsoft .NET platform includes the following components that would help develop a new generation of smart Internet services: .NET infrastructure and tools .NET user experience .NET building block .NET device software Microsoft .NET products and services consist of the following: Windows .NET MSN .NET Office .NET Visual Studio .NET Personal subscription services bCentral for .NET
  • 4. @ 2010 Tata McGraw-Hill Education 4 Education THE ORIGINS OF .NET TECHNOLOGY Before going into the details of .NET features further, we shall see how the concept of .NET was evolved over the past ten years. The current technology of .NET has gone through three signifi cant phases of development: OLE technology COM technology .NET technology These developments that took place during the 1990s are illustrated in Fig. 2.2
  • 5. @ 2010 Tata McGraw-Hill Education 5 Education
  • 6. @ 2010 Tata McGraw-Hill Education 6 Education THE .NET FRAMEWORK The .NET Framework is one of the tools provided by the .NET infrastructure and tools component of the .NET platform as shown in Fig. 2.3. As pointed out earlier, the .NET platform provides a new environment for creating and running robust, scalable and distributed applications over the Web
  • 7. @ 2010 Tata McGraw-Hill Education 7 Education The .NET Framework provides an environment for building, deploying and running web services and other applications. It consists of three distinct technologies as shown in Fig. 2.4.
  • 8. @ 2010 Tata McGraw-Hill Education 8 Education THE COMMON LANGUAGE RUNTIME The Common Language Runtime, popularly known as CLR is the heart and soul of the .NET Framework. As the name suggests, CLR is a runtime environment in which programs written in C# and other .NET languages are executed. It also supports cross- language interoperability. Figure 2.5 gives a diagrammatic summary of the major components of the CLR. The CLR provides a number of services that include: Loading and execution of programs Memory isolation for applications Verification of type safety Compilation of IL into native executable code Providing metadata Memory management (automatic garbage collection) Enforcement of security Interoperability with other systems Managing exceptions and errors Support for tasks such as debugging and profiling
  • 9. @ 2010 Tata McGraw-Hill Education 9 Education Figure 2.6 shows a flow chart of CLR activities that go on when an application is executed
  • 10. @ 2010 Tata McGraw-Hill Education 10 Education FRAMEWORK BASE CLASSES .NET supplies a library of base classes that we can use to implement applications quickly. We can use them by simply instantiating them and invoking their methods or by inheriting them through derived classes, thus extending their functionality. Much of the functionality in the base framework classes resides in the vast namespace called System. We can use the base classes in the system namespace for many different tasks including: Input / Output Operations String handling Managing arrays, lists, maps, etc Accessing files and file systems Accessing the registry Security Windowing Windows messages Database management Evaluation of Mathematical functions Drawing Managing errors and exceptions Connecting to the Internet And many more
  • 11. @ 2010 Tata McGraw-Hill Education 11 Education The .NET Framework provides the following tools for managing user and application interfaces: Windows forms Web forms Console Applications Web services These tools enable users to develop user-friendly desktop-based as well as web-based applications using a wide variety of languages on the .NET platform.
  • 12. @ 2010 Tata McGraw-Hill Education 12 Education Visual Studio .NET (VS .NET) supports an Integrated Development Environment (IDE) with a rich set of features and productivity tools. These features and tools allow developers to build web applications faster and easier. Using web services and XML regardless of the language chosen for development, there is now one environment to learn, configure and use. We need not have to switch back and forth between environments to build, debug and deploy our code. VS .NET provides tools that extends support to the development lifecycle. As shown in Fig. 2.7, it acts as a foundation for the lifecycle platform. A detailed discussion on these tools is beyond the scope of this book VISUAL STUDIO .NET