CHAPTER
Basics of.Net Framework
CHAPTER OUTLINE
1.1 NET Framework
1.2 Features of.Net Framework
1.3 CLR Architecture
1.4 Frame Work Class Library
1.5 Letof.Net Languages
1.6 Visual Studio (Integrated Development Environment) Especially for C#.NET
1.7 Various windows in Visual Studio IDE
, PROGRAMMING
WITHCH
TNET
software fobr
implementing
1-2 N E T F R A M E W O R K
d e v e l o p i n g
and
for
1
1.1
. 1
Framework
is a
framework
M i c r o s o f t
for
building, oing
developine
The
NET
web
etc.
created
by applica
tions etc
computer,
infrastructure net
based, Microsoft
personal
is an
web d e v e l o p e d
by
libraries,
Windows
wS
F r a m e w o r k
.Net desktop,
platform
on
the
The development
run
running would
and which
year
2002
in the
s o f t w a r e
deploying
is a a p p l i c a t i o n s ,
r e l e a s e d
a lona
f r a m e w o r k
create was
Net to come
has
f r a m e w o r k
The meant
was .Net f r a m e w o r k
of the
f r a m e w o r k
.Net
The version
The
first 1.0.
The f r a m e w o r k
Platform.
.Net 4.7.1.
called
was version
is
version
current
The
a n d the
since
then,
way F r a m e w o r k :
Components
of.Net
JH
JScript
CH
C+
VB
Common Language Specifieation
Net Supports
about 70 +
Windows
Services Forms Languages
Web
NET:
ASP.
and Web Forms
ADO.NET:
Data and XMIL
Base Clas Library
Common Language R u n t i m e
Framework
FIG 1.1
Components of .NET
to develop Windows,
tools and technologies
that provides
is a platform
two components.
They are
Net Framework applications. It mainly
contains
Enterprise
Web and
Runtime (CLR).
Language
1. Common
Framework Class Library
2. Net W
XEROXIPHOTOCOPYING OF THIS BOOK IS ILLEGAL
WARNING
, CHAPTER.1 BASICS OF NET FRAMEWwORK 1-3
Common Language Runtime (CLR): Net Framework provides runtime environment
called Common Language Runtime (CLR). It provides an environment to run all the
Net Programs. The code which runs under the CLR is called as Managed Code.
Programmers need not to worry on managing the memory if the programs are running
under the CLR as it provides memory management and thread
management.
Programmatically, when our program needs memory, CLR allocates the memory for
scope and de-allocates the memory if the scope is completed.
Language Compilers (Eg: C#, VB Net, Je ) will convert the Code/Program to Microsoft
Intermediate Language (MSIL) intern this will be converted to Native Code by CLR.
See the below Fig 1.2
VBNET C#
VB NET Compiler C# Compiler
Microsoft Intermediate Language (MSIL)
Common Language Runtime
JIT (Justin time) Compilers
Native Code
FIG 1.2 Execution Process in .NET
There are currentily over 15 language compilers being built by Microsoft and other
companies also producing the code that will execute under CLR.
NET Framework Class Library (FCL) : This is also called as Base Class Library and
it is common for all types of applications i.e., the way you access the Library Classes
andMethods in VB. NET will be the same in C#, and it is common for all other languages
in NET. The following are different types of applications that can make use of .Net
class library
(1) Windows application. (i) Console application
(0) Web application. (iv) XML web services.
(v) Windows services.
In short, developers just need to import the BCL in their language code and use its
predefined methods and properties to implement common and complex functions
ke reading and writing to file, graphic rendering, database interaction, and XML
document manipulation.
WARNING IF ANYBODY CAUGHT WILL BE PROSECUTED
Basics of.Net Framework
CHAPTER OUTLINE
1.1 NET Framework
1.2 Features of.Net Framework
1.3 CLR Architecture
1.4 Frame Work Class Library
1.5 Letof.Net Languages
1.6 Visual Studio (Integrated Development Environment) Especially for C#.NET
1.7 Various windows in Visual Studio IDE
, PROGRAMMING
WITHCH
TNET
software fobr
implementing
1-2 N E T F R A M E W O R K
d e v e l o p i n g
and
for
1
1.1
. 1
Framework
is a
framework
M i c r o s o f t
for
building, oing
developine
The
NET
web
etc.
created
by applica
tions etc
computer,
infrastructure net
based, Microsoft
personal
is an
web d e v e l o p e d
by
libraries,
Windows
wS
F r a m e w o r k
.Net desktop,
platform
on
the
The development
run
running would
and which
year
2002
in the
s o f t w a r e
deploying
is a a p p l i c a t i o n s ,
r e l e a s e d
a lona
f r a m e w o r k
create was
Net to come
has
f r a m e w o r k
The meant
was .Net f r a m e w o r k
of the
f r a m e w o r k
.Net
The version
The
first 1.0.
The f r a m e w o r k
Platform.
.Net 4.7.1.
called
was version
is
version
current
The
a n d the
since
then,
way F r a m e w o r k :
Components
of.Net
JH
JScript
CH
C+
VB
Common Language Specifieation
Net Supports
about 70 +
Windows
Services Forms Languages
Web
NET:
ASP.
and Web Forms
ADO.NET:
Data and XMIL
Base Clas Library
Common Language R u n t i m e
Framework
FIG 1.1
Components of .NET
to develop Windows,
tools and technologies
that provides
is a platform
two components.
They are
Net Framework applications. It mainly
contains
Enterprise
Web and
Runtime (CLR).
Language
1. Common
Framework Class Library
2. Net W
XEROXIPHOTOCOPYING OF THIS BOOK IS ILLEGAL
WARNING
, CHAPTER.1 BASICS OF NET FRAMEWwORK 1-3
Common Language Runtime (CLR): Net Framework provides runtime environment
called Common Language Runtime (CLR). It provides an environment to run all the
Net Programs. The code which runs under the CLR is called as Managed Code.
Programmers need not to worry on managing the memory if the programs are running
under the CLR as it provides memory management and thread
management.
Programmatically, when our program needs memory, CLR allocates the memory for
scope and de-allocates the memory if the scope is completed.
Language Compilers (Eg: C#, VB Net, Je ) will convert the Code/Program to Microsoft
Intermediate Language (MSIL) intern this will be converted to Native Code by CLR.
See the below Fig 1.2
VBNET C#
VB NET Compiler C# Compiler
Microsoft Intermediate Language (MSIL)
Common Language Runtime
JIT (Justin time) Compilers
Native Code
FIG 1.2 Execution Process in .NET
There are currentily over 15 language compilers being built by Microsoft and other
companies also producing the code that will execute under CLR.
NET Framework Class Library (FCL) : This is also called as Base Class Library and
it is common for all types of applications i.e., the way you access the Library Classes
andMethods in VB. NET will be the same in C#, and it is common for all other languages
in NET. The following are different types of applications that can make use of .Net
class library
(1) Windows application. (i) Console application
(0) Web application. (iv) XML web services.
(v) Windows services.
In short, developers just need to import the BCL in their language code and use its
predefined methods and properties to implement common and complex functions
ke reading and writing to file, graphic rendering, database interaction, and XML
document manipulation.
WARNING IF ANYBODY CAUGHT WILL BE PROSECUTED