[go: up one dir, main page]

0% found this document useful (0 votes)
15 views10 pages

Module 1-2

.NET Framework is an environment for developing and executing distributed, component-based applications, providing security and portability on the Windows platform. It consists of key components like the Common Language Runtime (CLR) and the .NET Class Library, which manage code execution and offer pre-written code for various functionalities. The framework also includes the Common Type System (CTS) and Common Language Specification (CLS) to ensure interoperability between different programming languages.

Uploaded by

ogmikeyxo
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)
15 views10 pages

Module 1-2

.NET Framework is an environment for developing and executing distributed, component-based applications, providing security and portability on the Windows platform. It consists of key components like the Common Language Runtime (CLR) and the .NET Class Library, which manage code execution and offer pre-written code for various functionalities. The framework also includes the Common Type System (CTS) and Common Language Specification (CLS) to ensure interoperability between different programming languages.

Uploaded by

ogmikeyxo
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/ 10

Introduction To .

Net
Framework

• .Net framework : An environment that supports the


development & execution of highly distributed ,component –
based applications.

• Provide security, program portability and a common


programming model for the windows platform.

It have two important entities


1.CLR 2. .Net Class Library
Framework Components

1.CLR

2. .Net Class Library

3.CTS

4.CLS
COMMON LANGUAGE RUNTIME
Common Language Runtime (CLR): It manages the execution of .net
code.

WORKING:
• CLR translates the intermediate code into executable code when program
is run.
• It is portable ,exception handling, security.
• It managed code is executed under the control of CLR

BENEFITS:
Modern memory management , the ability too mix languages, better security,
support for version control & a clean way for s/w components to interact.
Types of CLR
• Memory management: Automatic Memory
allocation.
• Code safety: Handle security through
CAS(Code Access Security).
• Execution management : Converts
intermediate language into Machine Code via
JIT compiler.
.NET CLASS LIBRARY
.Net class library to provide support for such things as I/O , string handling ,
networking and GUIs.

This is a vast collection of pre-written code (classes, interfaces and value


types) that developers can use in their applications.

Provides Functionalities:
-I/O operations.
-Data access (ADO. Net)
-web development (Asp.Net)
COMMON TYPE SYSTEM (CTS)
It defines how types are declared, used and managed in CLR.

It enables seamless communication b/w code written in different (language


interoperability).

Safety ,preventing common errors.

It defines rules for how types are defined , accessibility, inheritence &
members.
COMMON LANGUAGE
SPECIFICATION
This is a set of rules that language compiles must follow to ensure that code
written in different .net different .NET language can interoperate.

CLS compilance is especially important when creating s/w components that


will be used by other languages.

It includes the subset of the Common Type System (CTS) . CTS defines the
rules concerning data types.
MSIL & JIT Compilers
• Microsoft Intermediate language is turned into executable code using JIT
compiler.

• JIT (Just-In-Time).

WORKING:
.Net program is executed , CLR activates the JIT compiler . The JIT compiler
Converts MSIL into native code on deamand as each part of your program is
needed.
Metadata and Assemblies
• Metadata describes the data used by program & enables the code to
interact easily with other code.

• It includes types, methods, properties & other elements.

• It provides information for tools debuggers & reflection.

• Assembly contain metadata. Metadata is crucial for CLR to understand the


assembly’s contents.

• Metadata contain within the assembly


.NET NAMESPACE
Namespace are used to organize code elements (classes, interfaces, structures, etc.)
into logical groups, preventing naming conflicts and maintainability.

A namespace is declared using namespace keyword.

EXAMPLE:

namespace MyProject.data
{

You might also like