Professional Documents
Culture Documents
Unit 1IntroductionToNetArchitecturepdf 2023 12 22 11 07 52
Unit 1IntroductionToNetArchitecturepdf 2023 12 22 11 07 52
.NET TECHNOLOGY
[01IT0605]
Components
of .NET
Framework
4. CLS (Common language Specification) : 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
Components common platform to interact and share information with each
other.
of .NET 5. Microsoft .NET Assemblies : A .NET assembly is the main
Framework : building block of the .NET Framework. It is a small unit of code that
contains a logical compiled code in the Common Language
infrastructure (CLI), which is used for deployment, security and
versioning. It defines in two parts (process) DLL and library (exe)
assemblies. When the .NET program is compiled, it generates a
metadata with Microsoft Intermediate Language, which is stored in
a file called Assembly.
6. FCL (Framework Class Library) :
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 Components of FCL
Components
Object type
of .NET Implementation of data structure
Framework : Base data types
Garbage collection
Security and database connectivity
Creating common platform for window and web-based
application
The garbage collector (GC) manages the allocation and release of
memory. The garbage collector serves as an automatic memory
manager.
You do not need to know how to allocate and release memory or
manage the lifetime of the objects that use that memory
Garbage An allocation is made any time you declare an object with a “new”
Collection keyword or a value type is boxed. Allocations are typically very fast
When there isn’t enough memory to allocate an object, the GC
must collect and dispose of garbage memory to make memory
available for new allocations.
This process is known as garbage collection.
Following are the commonly used namespaces that contains
useful classes and interfaces and defined in Framework Class
Library.
.NET
Namespace
.NET
Namespace
In C#, string is an object of System.String class that represent
sequence of characters. We can perform many operations on
strings such as concatenation, comparision, getting substring,
search, trim, replacement etc.
string vs String :
Side by Side
Execution
The following illustration shows several applications using two
different versions of a component on the same computer.
Application A and B use version 1.0 of the component while
Application C uses version 2.0 of the same component.
Side by Side
Execution
DLL Hell is a situation in which two separate applications share a
common assembly, and if one of the applications makes
modifications to the common assembly that isn't backward
compatible, the other application crashes.
Let's look at an example to better understand this. Imagine you
have two applications, Application1 and Application2, and both of
them share a common Assembly, which we'll refer to as Shared.
Now, GetOperation is used by both applications ().
DLL HELL
PROBLEM