SlideShare uma empresa Scribd logo
1 de 31
INTRODUCTION TO .
NET & VISUAL
STUDIO
ADVANTAGES OF .NET
Object-oriented programming
Good design
Language independence
Better support for dynamic Web pages
Efficient data access
Code sharing
Improved security
Zero-impact installation
Support for Web services
Any Platform
Object-oriented programming - Both the .NET Framework and C# are
entirely based on object-oriented principles right from the start.
Good design - A base class library, which is designed from the ground
up in a highly intuitive way.
Language independence - With .NET, all of the languages Visual
Basic .NET, C#, J#, and managed C++ compile to a common Intermediate
Language. This means that languages are interoperable in a way that has
not been seen before.
Better support for dynamic Web pages - While ASP offered a lot
of flexibility, it was also inefficient because of its use of interpreted
scripting languages, and the lack of object-oriented design often
resulted in messy ASP code. .NET offers an integrated support for
Web pages, using a new technology - ASP.NET. With ASP.NET, code
in your pages is compiled, and may be written in a .NET-aware highlevel language such as C#, J#, or Visual Basic 2005.
Efficient data access - A set of .NET components, collectively known
as ADO.NET, provides efficient access to relational databases and a
variety of data sources. Components are also available to allow access
to the file system, and to directories. In particular, XML support is built
into .NET, allowing you to manipulate data, which may be imported
from or exported to non-Windows platforms.
Any Platform – dot net is a Multilanguage and Multiplatform operating
environment.
Code sharing - .NET has completely revamped the way that code is
shared between applications, introducing the concept of the assembly,
which replaces the traditional DLL. Assemblies have formal facilities for
versioning, and different versions of assemblies can exist side by side.
Improved security - Each assembly can also contain built-in security
information that can indicate precisely who or what category of user or
process is allowed to call which methods on which classes. This gives
you a very fine degree of control over how the assemblies that you
deploy can be used.
Zero-impact installation - There are two types of assemblies:
shared and private. Shared assemblies are common libraries available
to all software, while private assemblies are intended only for use with
particular software. A private assembly is entirely self-contained, so the
process of installing it is simple. There are no registry entries; the
appropriate files are simply placed in the appropriate folder in the file
system.
Support for Web services - .NET has fully integrated support for
developing Web services as easily as you’d develop any other type of
application.
The .NET Framework
.NET is a collection of tools, technologies, and languages that all work
together in a framework to provide the solutions that are needed to easily
build and deploy truly robust enterprise applications.
Objectives:
“Microsoft .NET is based on the .NET Framework, which consists of two major
components: the Common Language Runtime (CLR) and an extensive set of Framework
Class Libraries (FCL). The CLR defines a common programming model and a
standard type system for cross-platform, multi-language development.”
.NET IS MULTI-LANGUAGE
.NET supports VB, C# (C-sharp), C++, J# (Java 1.2), Eiffel, etc.

code.vb

code.cs

code.cpp

Development Tools

app.exe

...
.NET IS CROSS- platform:
Compiled .NET apps run on any supported
PLATFORM
APP.exe

?
Win64

Win32
(XP,2K,98)

WinCE
HOW IS CROSSPLATFORM ACHIEVED?
Cross-platform execution realized in two
ways:
1.apps are written against Framework Class
Library (FCL), not underlying OS
2.compilers generate generic assembly
language which must be executed by the
Common Language Runtime (CLR)
(1) FCL
Framework Class Library
1000's of predefined classes
common subset across all platforms &
languages
networking, database access, XML
processing, GUI, Web, etc.
Goal?
FCL is a portable operating system
.NET FRAMEWORK ARCHITECTURE
COMMON LANGUAGE
Common Language Specification (CLS) is a set of specifications or
SPECIFICATION
guidelines defining a .NET
language. CLS defines the common types of managed languages,
which is a subset of the Common Type System(CTS).
MANAGED LANGUAGES
AND CLS programming languages, such as C#,
.NET supports managed

VB.NET, C++, J#, execute under the management of a common
runtime called the CLR.

-> Managed applications compile to Microsoft Intermediate Language
(MSIL) and meta data.
MSIL is a low level language that all managed languages compile to
instead of native binary.
In .NET, a managed application is called an assembly.
COMMON TYPE SYSTEM
(CTS) System (CTS) is a catalog of .NET types.
The Common Type
ex:
System.Int32, System. Decimal,
System. Boolean, System. Value
System. Object is a base class for remaining all the sub classes.
The contribution of CTS extend well beyond the definitions of
common data types.
CTS helps with type safeness, enhances language
interoperability, aids in segregating application domains, and more.
.NET FRAMEWORK CLASS
LIBRARY

The .NET Framework Class Library (FCL) is a set of managed
classes that provide access to system services.
Ex:
File I/O, sockets, database access, remoting, and XML are just some of
the services available in the FCL.
FCL includes some 600 managed classes.
A flat hierarchy consisting of hundreds of classes would be difficult
to navigate. Microsoft partitioned the managed classes of FCL into
separate namespaces based on functionality.
For example,
classes pertaining to local input/output can be found in
the namespace - System. IO. To further refine the hierarchy, FCL
namespaces are often nested; the tiers of namespaces are delimited with
dots. System.Runtime.InteropServices,
System.Security.Permissions, and
System.Windows.Forms
are
examples of nested namespaces.
The root namespace is System, which provides classes for
console input/output, management of application domains, delegates,
garbage collection, and more.
COMMON LANGUAGE
RUNTIME
The Common Language Runtime is the engine of .NET
and the common runtime of all managed languages.
CLR manages security, code verification, type
verification, exception handling, garbage collection, a common
runtime, and other important of program execution.
.NET Framework is a managed environment.
Language interoperability is one goal of .NET.
CLR: (Common Language Runtime)
The common language runtime monitors the execution of .NET
applications and provides essential services. It manages memory,
handles exceptions, ensures that applications are well-behaved, and
much more.
Central to the .NET Framework is its runtime execution environment,
known as the Common Language Runtime (CLR) or the .NET runtime. Code
running under the control of the CLR is often termed managed code.
However, before it can be executed by the CLR, any source code that
you develop (in C# or some other language) needs to be compiled.
Compilation occurs in two steps in .NET:
1.Compilation of source code to IL
2.Compilation of IL to platform-specific code by the CLR
This two-stage compilation process is very important, because the
existence of the IL (managed code) is the key to providing many of the
benefits of .NET.
JUST-IN-TIME
COMPILATION which is converted into
Assemblies contain MSIL,

native binary and executed at runtime, using a process aptly named
Just-in-Time compilation, or jitting. An assembly is subjected to two
compilations.
First,
managed code is compiled to create the actual assembly. Managed
compilers, such as csc and vbc, compile C# and VB.NET source code
into an assembly that contains MSIL and metadata.
Second,
the assembly is compiled at load time, converting the MSIL into native
binary that is optimized for the current platform and hardware. When an
assembly is jitted, an in-memory cache of the binary is created and
executed. Just-in-Time compilers are called Jitters.
STEPS TO COMPILE &
EXECUTION
The common language runtime is responsible for executing
your application code.
When you write an application for the .NET with
a language such as C# , VB, Java Script, your source code is
never compiled directly into machine code. Instead the C# or
VB compiler converts your code into a special language
named (Micro Soft Intermediate Language) MSIL.
MSIL looks very much like a object oriented assembly language.
However, unlike a typical assembly language, it is not CPU specific.
MSIL is a low level and plat form independent language.
When your application actually executes, the MSIL code is “justin-time” compiled into machine code by JITTER (The Just-In-Time
compiler).
Normally your entire application is not compiled from MSIL into
machine code. Instead the methods that are actually called during
execution are compiled.
In reality .NET Framework understands only one language:
MSIL. However, you can write applications using languages such as
C#, VB.NET for the .NET framework because the .NET framework
includes compilers for these languages that enable you to compile your
code into MSIL.
ASSEMBLIES

.NET packages components into assemblies
. 1 assembly = 1 or more compiled classes

 .EXE represents an assembly with classes + Main program
 .DLL represents an assembly with classes

code.vb
code.vb
code.cs

Development Tools

assembly

.DLL
ADVANTAGES OF MANAGED
CODE
Microsoft Intermediate Language shares with Java byte code
the idea that it is a low-level language with a simple syntax
(based on numeric codes rather than text), which can be very
quickly translated into native machine code. Having this welldefined universal syntax for code has significant advantages.

Mais conteúdo relacionado

Mais procurados

.net CLR
.net CLR.net CLR
.net CLRDevTalk
 
Introduction to ,NET Framework
Introduction to ,NET FrameworkIntroduction to ,NET Framework
Introduction to ,NET FrameworkANURAG SINGH
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net frameworkAshish Verma
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net FundamentalsAli Taki
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET FrameworkRoshith S Pai
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)citizenmatt
 
Visual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 OverviewVisual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 OverviewHarish Ranganathan
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word documentSIVAJISADHANA
 
.NET Framework Overview
.NET Framework Overview.NET Framework Overview
.NET Framework OverviewDoncho Minkov
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net frameworkFaisal Aziz
 
Dot Net Fundamentals
Dot Net FundamentalsDot Net Fundamentals
Dot Net FundamentalsLiquidHub
 
Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsQuontra Solutions
 
Architecture of net framework
Architecture of net frameworkArchitecture of net framework
Architecture of net frameworkumesh patil
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net frameworkArun Prasad
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technologyPramod Rathore
 

Mais procurados (19)

.net CLR
.net CLR.net CLR
.net CLR
 
Introduction to ,NET Framework
Introduction to ,NET FrameworkIntroduction to ,NET Framework
Introduction to ,NET Framework
 
Introduction to .net
Introduction to .netIntroduction to .net
Introduction to .net
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net Fundamentals
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
 
DOT Net overview
DOT Net overviewDOT Net overview
DOT Net overview
 
Visual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 OverviewVisual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 Overview
 
.Net framework
.Net framework.Net framework
.Net framework
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
 
.NET Framework Overview
.NET Framework Overview.NET Framework Overview
.NET Framework Overview
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
 
Dot Net Fundamentals
Dot Net FundamentalsDot Net Fundamentals
Dot Net Fundamentals
 
Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutions
 
Architecture of net framework
Architecture of net frameworkArchitecture of net framework
Architecture of net framework
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
Microsoft .NET Framework
Microsoft .NET FrameworkMicrosoft .NET Framework
Microsoft .NET Framework
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technology
 

Semelhante a .Net framework

Semelhante a .Net framework (20)

1.0
1.01.0
1.0
 
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
 
Chapter1_Part1.pptx
Chapter1_Part1.pptxChapter1_Part1.pptx
Chapter1_Part1.pptx
 
Net framework
Net frameworkNet framework
Net framework
 
c#.pptx
c#.pptxc#.pptx
c#.pptx
 
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
 
Inside.Net
Inside.NetInside.Net
Inside.Net
 
Chapter1
Chapter1Chapter1
Chapter1
 
Introduction of .net framework
Introduction of .net frameworkIntroduction of .net framework
Introduction of .net framework
 
.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questions
 
.Net overview
.Net overview.Net overview
.Net overview
 
.Net Overview
.Net Overview.Net Overview
.Net Overview
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)
 
.Net
.Net.Net
.Net
 
dotNET frameworks
dotNET frameworksdotNET frameworks
dotNET frameworks
 
Microsoft.Net
Microsoft.NetMicrosoft.Net
Microsoft.Net
 
Dot net
Dot netDot net
Dot net
 
Visual studio
Visual studioVisual studio
Visual studio
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
 

Último

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Último (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

.Net framework

  • 1. INTRODUCTION TO . NET & VISUAL STUDIO
  • 2.
  • 3.
  • 4. ADVANTAGES OF .NET Object-oriented programming Good design Language independence Better support for dynamic Web pages Efficient data access Code sharing Improved security Zero-impact installation Support for Web services Any Platform
  • 5. Object-oriented programming - Both the .NET Framework and C# are entirely based on object-oriented principles right from the start. Good design - A base class library, which is designed from the ground up in a highly intuitive way. Language independence - With .NET, all of the languages Visual Basic .NET, C#, J#, and managed C++ compile to a common Intermediate Language. This means that languages are interoperable in a way that has not been seen before.
  • 6. Better support for dynamic Web pages - While ASP offered a lot of flexibility, it was also inefficient because of its use of interpreted scripting languages, and the lack of object-oriented design often resulted in messy ASP code. .NET offers an integrated support for Web pages, using a new technology - ASP.NET. With ASP.NET, code in your pages is compiled, and may be written in a .NET-aware highlevel language such as C#, J#, or Visual Basic 2005.
  • 7. Efficient data access - A set of .NET components, collectively known as ADO.NET, provides efficient access to relational databases and a variety of data sources. Components are also available to allow access to the file system, and to directories. In particular, XML support is built into .NET, allowing you to manipulate data, which may be imported from or exported to non-Windows platforms. Any Platform – dot net is a Multilanguage and Multiplatform operating environment.
  • 8. Code sharing - .NET has completely revamped the way that code is shared between applications, introducing the concept of the assembly, which replaces the traditional DLL. Assemblies have formal facilities for versioning, and different versions of assemblies can exist side by side. Improved security - Each assembly can also contain built-in security information that can indicate precisely who or what category of user or process is allowed to call which methods on which classes. This gives you a very fine degree of control over how the assemblies that you deploy can be used.
  • 9. Zero-impact installation - There are two types of assemblies: shared and private. Shared assemblies are common libraries available to all software, while private assemblies are intended only for use with particular software. A private assembly is entirely self-contained, so the process of installing it is simple. There are no registry entries; the appropriate files are simply placed in the appropriate folder in the file system. Support for Web services - .NET has fully integrated support for developing Web services as easily as you’d develop any other type of application.
  • 10. The .NET Framework .NET is a collection of tools, technologies, and languages that all work together in a framework to provide the solutions that are needed to easily build and deploy truly robust enterprise applications. Objectives: “Microsoft .NET is based on the .NET Framework, which consists of two major components: the Common Language Runtime (CLR) and an extensive set of Framework Class Libraries (FCL). The CLR defines a common programming model and a standard type system for cross-platform, multi-language development.”
  • 11. .NET IS MULTI-LANGUAGE .NET supports VB, C# (C-sharp), C++, J# (Java 1.2), Eiffel, etc. code.vb code.cs code.cpp Development Tools app.exe ...
  • 12. .NET IS CROSS- platform: Compiled .NET apps run on any supported PLATFORM APP.exe ? Win64 Win32 (XP,2K,98) WinCE
  • 13. HOW IS CROSSPLATFORM ACHIEVED? Cross-platform execution realized in two ways: 1.apps are written against Framework Class Library (FCL), not underlying OS 2.compilers generate generic assembly language which must be executed by the Common Language Runtime (CLR)
  • 14. (1) FCL Framework Class Library 1000's of predefined classes common subset across all platforms & languages networking, database access, XML processing, GUI, Web, etc. Goal? FCL is a portable operating system
  • 16. COMMON LANGUAGE Common Language Specification (CLS) is a set of specifications or SPECIFICATION guidelines defining a .NET language. CLS defines the common types of managed languages, which is a subset of the Common Type System(CTS).
  • 17. MANAGED LANGUAGES AND CLS programming languages, such as C#, .NET supports managed VB.NET, C++, J#, execute under the management of a common runtime called the CLR. -> Managed applications compile to Microsoft Intermediate Language (MSIL) and meta data. MSIL is a low level language that all managed languages compile to instead of native binary. In .NET, a managed application is called an assembly.
  • 18. COMMON TYPE SYSTEM (CTS) System (CTS) is a catalog of .NET types. The Common Type ex: System.Int32, System. Decimal, System. Boolean, System. Value System. Object is a base class for remaining all the sub classes. The contribution of CTS extend well beyond the definitions of common data types. CTS helps with type safeness, enhances language interoperability, aids in segregating application domains, and more.
  • 19. .NET FRAMEWORK CLASS LIBRARY The .NET Framework Class Library (FCL) is a set of managed classes that provide access to system services. Ex: File I/O, sockets, database access, remoting, and XML are just some of the services available in the FCL. FCL includes some 600 managed classes.
  • 20. A flat hierarchy consisting of hundreds of classes would be difficult to navigate. Microsoft partitioned the managed classes of FCL into separate namespaces based on functionality. For example, classes pertaining to local input/output can be found in the namespace - System. IO. To further refine the hierarchy, FCL namespaces are often nested; the tiers of namespaces are delimited with dots. System.Runtime.InteropServices, System.Security.Permissions, and System.Windows.Forms are examples of nested namespaces. The root namespace is System, which provides classes for console input/output, management of application domains, delegates, garbage collection, and more.
  • 21. COMMON LANGUAGE RUNTIME The Common Language Runtime is the engine of .NET and the common runtime of all managed languages. CLR manages security, code verification, type verification, exception handling, garbage collection, a common runtime, and other important of program execution.
  • 22. .NET Framework is a managed environment. Language interoperability is one goal of .NET. CLR: (Common Language Runtime) The common language runtime monitors the execution of .NET applications and provides essential services. It manages memory, handles exceptions, ensures that applications are well-behaved, and much more.
  • 23. Central to the .NET Framework is its runtime execution environment, known as the Common Language Runtime (CLR) or the .NET runtime. Code running under the control of the CLR is often termed managed code. However, before it can be executed by the CLR, any source code that you develop (in C# or some other language) needs to be compiled. Compilation occurs in two steps in .NET: 1.Compilation of source code to IL 2.Compilation of IL to platform-specific code by the CLR This two-stage compilation process is very important, because the existence of the IL (managed code) is the key to providing many of the benefits of .NET.
  • 24. JUST-IN-TIME COMPILATION which is converted into Assemblies contain MSIL, native binary and executed at runtime, using a process aptly named Just-in-Time compilation, or jitting. An assembly is subjected to two compilations. First, managed code is compiled to create the actual assembly. Managed compilers, such as csc and vbc, compile C# and VB.NET source code into an assembly that contains MSIL and metadata.
  • 25. Second, the assembly is compiled at load time, converting the MSIL into native binary that is optimized for the current platform and hardware. When an assembly is jitted, an in-memory cache of the binary is created and executed. Just-in-Time compilers are called Jitters.
  • 26. STEPS TO COMPILE & EXECUTION The common language runtime is responsible for executing your application code. When you write an application for the .NET with a language such as C# , VB, Java Script, your source code is never compiled directly into machine code. Instead the C# or VB compiler converts your code into a special language named (Micro Soft Intermediate Language) MSIL.
  • 27. MSIL looks very much like a object oriented assembly language. However, unlike a typical assembly language, it is not CPU specific. MSIL is a low level and plat form independent language. When your application actually executes, the MSIL code is “justin-time” compiled into machine code by JITTER (The Just-In-Time compiler).
  • 28. Normally your entire application is not compiled from MSIL into machine code. Instead the methods that are actually called during execution are compiled. In reality .NET Framework understands only one language: MSIL. However, you can write applications using languages such as C#, VB.NET for the .NET framework because the .NET framework includes compilers for these languages that enable you to compile your code into MSIL.
  • 29.
  • 30. ASSEMBLIES .NET packages components into assemblies . 1 assembly = 1 or more compiled classes  .EXE represents an assembly with classes + Main program  .DLL represents an assembly with classes code.vb code.vb code.cs Development Tools assembly .DLL
  • 31. ADVANTAGES OF MANAGED CODE Microsoft Intermediate Language shares with Java byte code the idea that it is a low-level language with a simple syntax (based on numeric codes rather than text), which can be very quickly translated into native machine code. Having this welldefined universal syntax for code has significant advantages.