Chapter 2 Dot NET Framework (Presentation Slide)
Chapter 2 Dot NET Framework (Presentation Slide)
Chapter 2 Dot NET Framework (Presentation Slide)
•Introduction to .NET
framework
1
.NET Framework(cont..)
What is a Framework?
• A framework is a software tool.
• A framework is a collection of many small technologies
integrated together to develop applications that can be
executed anywhere.
What .NET Represents?
• NET stands for Network Enabled Technology.
• In .NET, dot (.) refers to object-oriented and NET refers
to the intercommunication.
• Dot net is a new API (application programming interface)
that helps programmers to write applications for the
Windows platform, web applications, web services. 2
Dot (.) Net Framework Architecture
• The architecture of the .Net framework focuses on two main
things:
• The first of these is that the framework code is largely independent
of the language in which it is written.
• For example, a framework written in C# can contain calls to
libraries written in C++, as well as to libraries written in other
programming languages.
• This allows .Net programs to be ported to a wide variety of
platforms.
• The second main goal of the .Net framework is that it should be
easy to adopt.
• This means that the framework should be designed in a way that
makes it easy to incorporate new features and new functionality
into an existing program.
3
.NET Framework(cont..)
• What does the DOTNET Framework provide?
• The DOTNET Framework provides two things such as:
1. BCL (Base Class Libraries)
2. CLR (Common Language Runtime)
6
.NET Framework(cont..)
• What is JIT? JIT stands for the Just-in-Time compiler. It is the component
of CLR which is responsible for converting MSIL code into Native Code. This
Native code is directly understandable by the operating system.
• Different types of DOTNET Framework.
The .net framework is available in three different flavors:
-DOT NET Framework: This is the general version required to run .NET
applications on Windows OS only.
- DOT NET mono Framework: This is required if we want to run DOT NET
applications on other OS like Unix, Linux, MAC OS, etc.
-DOT NET Compact Framework: This is required to run .NET applications on
other devices like mobile phones and smartphones.
• -NOTE: MSIL is only CPU dependent and will run only on Windows OS only using
dot NET Framework because .NET Framework is designed for Windows OS only.
• -There is another company known as “NOVEL” designed separate framework known
as “MONO Framework”. Using this framework we can run MSIL on
7
different OS Like Linux, UNIX, Mac, BSD, OSX, etc.
.NET Framework(cont..)
What is exactly DOTNET?
• .NET is a framework tool that supports many
programming languages and many technologies.
• Programming languages that designed by Microsoft
are as follows:
• VB.NET
• C#.NET
• VC++.NET
• J#.NET
• F#.NET
• Jscript.NET
• WindowsPowerShell
• Iron phython
• Iron Ruby 8
.NET Framework(cont..)
17
Components of CLR , … cont’
Common Type System (CTS):
• The .NET Framework supports many programming languages such as C#, VB.NET,
J#, etc.
• Every programming language has its own data types.
• One programming language cannot understand other programming language data
types.
• But, there can be situations when you want to code in one language to be called in
other languages.
• In order to ensure smooth communication between these languages, the most
important thing is that they should have a common type system (CTS) which ensures
that type defined in two different languages gets compiled to a common data type.
• CLR will execute all programming language’s data types; this is possible because
CLR will contain its own data types which are common to all programming
languages.
• At the time of compilation, all language-specific data types are converted into CLR’s
data type.
• This data type system of CLR which is common to all programming languages of
.NET is known as the Common Type System (CTS).
18
Components of CLR , … cont’
CLS (Common Language Specification):
• CLS is a part of CLR. .NET supports many programming languages and every
programming language has its own syntactical rules for writing the code which
is known as language specification i.e. every programming language has its
own language specification.
• One programming language cannot understand other programming language
syntactical rules (language specification).
• But CLR will execute all programming languages code.
• This is possible because CLR cannot understand any programming language
specification rather CLR has its own language specification (syntactical rules)
for its MSIL.
• Every language compiler should follow this language specification of CLR at
the time of compilation and should generate MSIL; CLR’s JIT compiler will
generate native code from MSIL.
• This language specification of CLR is common for all programming languages
code execution of .NET and is known as CLS.
19
Introduction to Microsoft
Visual Studio 2012 or above:
Will be in chapter 4
20