Unit 1 - Topic 1 VB - Net Framework, Architectre and Components
Unit 1 - Topic 1 VB - Net Framework, Architectre and Components
NET Framework
What is .Net Framework?
.Net Framework is a software development platform developed by
Microsoft for building and running Windows applications. The .Net
framework consists of developer tools, programming languages, and
libraries to build desktop and web applications. It is also used to build
websites, web services, and games.
The .Net framework was meant to create applications, which would run
on the Windows Platform. The first version of the .Net framework was
released in the year 2002. The version was called .Net framework 1.0.
The Microsoft .Net framework has come a long way since then, and the
current version is .Net Framework 4.7.2.
C#.NET
VB.NET
C++.NET
J#.NET
F#.NET
JSCRIPT.NET
WINDOWS POWERSHELL
IRON RUBY
IRON PYTHON
C OMEGA
ASML(Abstract State Machine Language)
.Net Framework Architecture
.Net Framework Architecture is a programming model for the .Net
platform that provides an execution environment and integration with
various programming languages for simple development and
deployment of various Windows and desktop applications. It consists of
class libraries and reusable components.
The following figure shows the conversion of source code into native
code.
The above figure converts code into native code, which the CPU can
execute.
The main components of CLR are:
o Common type system
o Common language speciation
o Garbage Collector
o Just in Time Compiler
o Metadata and Assemblies
1. Value Type
2. Reference Type
3. Garbage Collection:
Garbage Collector is a component of CLR that works as an automatic
memory manager. It helps manage memory by automatically allocating
memory according to the requirement. It allocates heap memory to objects.
When objects are not in use, it reclaims the memory allocated to them for
future use. It also ensures the safety of objects by not allowing one object
to use the content of another object.
5. Metadata:
A Metadata is a binary information about the program, either stored in a
CLR Portable Executable file (PE) along with MSIL code or in the memory.
During the execution of MSIL, metadata is also loaded into memory for
proper interpretation of classes and related. Information used in code. So,
metadata helps implement code in a language-neutral manner or achieve
language interoperability.
6. Assemblies:
An assembly is a fundamental unit of physical code grouping. It consists of
the assembly manifest, metadata, MSIL code, and a set of resources like
image files. It is also considered a basic deployment unit, version control,
reuse, security permissions, etc.
.NET CLR Functions
Following are the functions of the CLR.
Thread Support
COM Marshaler
Debug Engine
Type Checker
Code Manager
Garbage Collector
Exception Handler
ClassLoader
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 like reading and writing to file, graphic rendering,
database interaction, and XML document manipulation.
5. Base Class Library
The base class library encapsulates a large number of common
functions which can be used by the developers. They are the
foundational types and act as the base for all the .NET class
libraries. App-specific libraries will be built on top of BCL.
They are developed with general implementations with a high-
performance policy such as low-latency, high throughput, low-
memory, and low-CPU usage. Features such as ADO.Net, XML
handling, Threading, Security, Diagnosis, etc., are part of the
base class library.
BCL is a subset of Framework Class Library. It typically
includes classes in namespaces like:
o System
o System.Data
o System.Diagnostics
o System.Resources
o System.Globalization
o System.Text