Introduction To
Introduction To
NET Framework
-Miss.Mali Runali Y.
Overview of .NET
•
.NET is an open-source and cross-platform development platform for building many
types of applications. Designed by Microsoft, the platform supports multiple
programming languages and libraries to build web, mobile, desktop and more.
• This free cross-platform framework accepts multiple coding languages and
features large code libraries that make it easy to build applications for mobile devices,
desktops, the web applications.
Since Microsoft released the first version in 2002, developers and companies have
used the .NET Framework to create form-based and web-based applications.
What is .NET Framework?
• Common Language Specification (CLS): it’s liable for converting the various .NET
programming language syntactical rules and regulations into CLR understandable
format.
• Common Type System (CTS): CTS is responsible for the understanding the data
types of .NET programming languages and converting them into CLR
understandable format i.e. Value Type and Reference Type.
• Garbage Collection (GC): It is used to provide the Automatic Memory Management
feature.
• Just In – Time Compiler (JIT): It is responsible for converting the Common
Intermediate Language (CIL) into machine code or native code using the Common
Language Runtime environment
How .NET language work
• Now, you may be confused about what the role of Visual Studio is.
Microsoft Visual Studio is an Integrated Development Environment (IDE)
which helps develop websites, web apps, web services, mobile apps,
Windows API, Windows Forms, Windows Presentation Foundation and
Console applications.
Features of .NET
since its release in 2002. Despite the creation of new versions, the
4. Portability
readily accessible code that programmers can use for common coding
operations.
development time.
7.Security
The .NET Framework provides a robust security mechanism
that validates and verifies applications before granting the user
access to the program or its source code.
8. Improved productivity
code.
EXECUTION OF UNMANAGED CODE
• For executing unmanaged code wrapper classes are used in
C#. In C# the unmanaged code is directly executed by the
operating system.
• Generally, the executable files of unmanaged or
unsafe code are in the form of binary images which are loaded
into the memory. The steps of execution of the code can be
seen in the above image.
• Advantages:
Unsafe code increases stability and the performance
of the program
Low-level access to the programmer is provided
METADATA
When you will compile the code into a portable executable file,
metadata is inserted in one portion of the file and the code is converted
into Microsoft Intermediate Language (MSIL) and then inserted into
another portion of the file.
.NET FRAMEWORK
There are following components of .NET Framework:
CLR now allocates the memory for the program in scope and de-
allocates the memory when it is not required or it is completed.
• It provides a robust and secure execution environment. It provides an interface
• It has many major features so Let’s have a look at its major features.
• Memory management
• Thread support
• Debug engine
It is a subset of common type system (CTS) that defines a set of rules and
regulations which should be followed by every language that comes under the .net
framework.
In other words, a CLS language should be cross-language integration or
interoperability.
For example, in C# and VB.NET language, the C# language terminate each
statement with semicolon, whereas in VB.NET it is not end with semicolon, and when these
statements execute in .NET Framework, it provides a common platform to interact and share
information with each other.
Common Type System and CLS(Common Language Specification
)
It provides the various system functionality in the .NET Framework, that includes
classes, interfaces and data types, etc. to create multiple functions and different types of
application such as desktop, web, mobile application, etc. In other words, it can be defined as, it
provides a base on which various applications, controls and components are built in .NET
Framework.
Key Concepts:
Implementation of data structure
Base data types
Garbage collection
Security and database connectivity
Creating common platform for window and web-based application