0% found this document useful (0 votes)
12 views16 pages

AWD-Lecture 01

ASP.NET

Uploaded by

hayatsafi077
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views16 pages

AWD-Lecture 01

ASP.NET

Uploaded by

hayatsafi077
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Lecture 01

Computer Science Faculty, Nangarhar University


What is Framework
 A framework, or software framework, is a platform for
developing software applications.
 It provides a foundation on which software developers
can build programs for a specific platform.
 A framework is similar to an application programming
interface (API), though technically a framework
includes an API.
 For example, a framework may include predefined
classes and functions that can be used to process
input, manage hardware devices, and interact with
system software.
 This streamlines the development process since
programmers don't need to reinvent the wheel each
time they develop a new application.
CSF-NU 2
What is .NET Framework
 .NET Framework is a software framework developed by
Microsoft that runs primarily on Microsoft Windows.
 It includes a large class library named Framework Class
Library and provides language interoperability across
several programming languages.
 The framework was meant to create applications,
which would run on the Windows Platform.
 The .NET framework can be used to create Form based
, Web based and Web services applications.
 The first version of the .NET framework was released in
the year 2000.
 .NET updated version is 4.7.1
CSF-NU 3
.NET Framework Advantages

 Interoperability
 Portability
 Security
 Memory management
 Simplified deployment

CSF-NU 4
Interoperability

 The .NET framework provides a lot of backward


support.
 Suppose if you had an application built on an older
version of the .NET framework, say 2.0.
 And if you tried to run the same application on a
machine which had the higher version of the .NET
framework, say 3.5. The application would still work.
 This is because with every release, Microsoft ensures
that older framework versions work well with the latest
version.

CSF-NU 5
Portability

 Applications built on the .NET framework can be made


to work on any Windows platform.
 And now in recent times, Microsoft is also envisioning
to make Microsoft products work on other platforms,
such as iOS and Linux.

CSF-NU 6
Security

 The .NET Framework has a good security mechanism.


 The in-built security mechanism helps in both
validation and verification of applications.
 Every application can explicitly define their security
mechanism.
 Each security mechanism is used to grant the user
access to the code or to the running program.

CSF-NU 7
Memory Management

 The Common Language runtime does memory


management.
 The .NET framework has all the capability to see those
resources, which are not used by a running program.
 It would then release those resources accordingly.
 This is done via a program called the "Garbage
Collector" which runs as part of the .NET framework.
 The garbage collector runs at regular intervals and
keeps on checking which system resources are not
utilized, and frees them accordingly.

CSF-NU 8
Simplified Deployment

 The .NET framework also have tools, which can be used


to package applications built on the .NET framework.
 These packages can then be distributed to client
machines.
 The packages would then automatically install the
application.

CSF-NU 9
.NET Architecture

CSF-NU 10
Common Language Runtime(CLR)
 The "Common Language Infrastructure" or CLI is a
platform on which the .NET programs are executed.
 The CLR has the following key features:
 Exception Handling
 Garbage Collection

CSF-NU 11
Common Type System (CTS)
 The Common Type System (CTS) standardizes the data
types of all programming languages using .NET under
the umbrella of .NET to a common data type for easy
and smooth communication among these .NET
languages.

CSF-NU 12
Common Language Specification (CLS)
 Common Language Specification (CLS) is a set of
specifications or guidelines defining a .NET language.
 Shared specifications promote language
interoperability.
 For example, CLS defines the common types of
managed languages, which is a subset of the Common
Type System (CTS).

CSF-NU 13
.NET Framework Class Library (FCL)
 The .NET Framework Class Library (FCL) is a set of managed
classes that provide access to system services.
 File input/output, sockets, database access, remoting, and
XML are just some of the services available in the FCL.
 Importantly, all the .NET languages rely on the same
managed classes for the same services.
 This is one of the reasons that, once you have learned any
.NET language, you have learned 40 percent of every other
managed language.
 The same classes, methods, parameters, and types are used
for system services regardless of the language. This is one
of the most important contributions of FCL

CSF-NU 14
Microsoft Intermediate Language(MSIL)
 Microsoft Intermediate Language (MSIL) is also knows
as Intermediate Language (IL) or Common Intermediate
Language (CIL).
 When an application written in .NET programming
language is compiled, platform independent binaries
called assemblies are generated.
 Generation of platform independent binaries results in
same code base running on multiple operating
systems.
 MSIL is similar to Java Byte code.

CSF-NU 15
Any Questions?

0771 47 47 50

[email protected]

You might also like