0% found this document useful (0 votes)
33 views3 pages

The Common Language Runtime (CLR) Aka Runtime

The .NET framework has two main components: the Common Language Runtime (CLR) and the .NET Framework Class Library (FCL). The CLR manages memory, execution, and safety and compiles source code into intermediate language. The FCL contains reusable classes and types used for .NET applications. Programs in different languages compile to Microsoft Intermediate Language (MSIL) allowing interoperability on the .NET platform.

Uploaded by

Puja Ranasinghe
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)
33 views3 pages

The Common Language Runtime (CLR) Aka Runtime

The .NET framework has two main components: the Common Language Runtime (CLR) and the .NET Framework Class Library (FCL). The CLR manages memory, execution, and safety and compiles source code into intermediate language. The FCL contains reusable classes and types used for .NET applications. Programs in different languages compile to Microsoft Intermediate Language (MSIL) allowing interoperability on the .NET platform.

Uploaded by

Puja Ranasinghe
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/ 3

The .

Net framework and the common


language runtime

The .NET framework has 2 components

1. The Common Language Runtime (CLR) aka Runtime


➢ This is the Central part of the .NET framework it executes .NET programs.
➢ It manages
o Memory,
o Thread execution,
o Code execution,
o Code safety and
o Verification, compilation.

➢ No interpreter: JIT complier produces native code -during the program of installation or
at run time.
➢ Each language that supports .NET must follow a common standard

2. .NET Framework Class Library (FCL)


➢ This the collection of classes, namespaces, interfaces and value types that are used for
.NET applications.
➢ This is a collection of reusable types that tightly integrate with the CLR

CLR and CLI are basic components of .NET Framework.

3. Common Language Infrastructure (CLI)


➢ Contains the data types of C# and objects
➢ FB user Object
➢ FB post
➢ FB login
Methods /Functions
➢ FB logout
➢ FB Comment
➢ CLI use various high-level programming languages on various machines without
rewriting the code.
➢ four components:
➢ Common type system (CTS)
➢ Common Language Specification (CLS)
➢ Metadata
➢ Virtual Execution System (VES)

Program Compilers in 4 steps


o The program is compiled into MSIL /IL /CIL (Microsoft Intermediate Language) –
this defines instructions for the CLR. →
Code converted in to MSIL from other languages and sources can be woven
together by the CLR.
o The MSIL for an application component is add inside the executed file →
o The application executes another compiler aka JIT complier (Just-in time-
compiler) →
o CLR translate the MSIL in the executable file converts to Machine language.

.NET framework also provides high level of language interoperability.


Programs written in different languages are all complied into MSIL
MSIL allows the .NET framework to be language independent. because .NET programs are
not tied to a particular programming language.
C# Language Features
Object Oriented
2 steps compilers
High level
Event driven

Visual Studio GUI IDE is easy for the user to develop.

.NET Framework Class Library


• Console application
• Windows GUI Application/ Windows Forms
• WPF Windows Presentation Foundation Application
• ASP.NET application Advantages of .NET
• Windows Services
• WCF Windows Communication Foundation.
o This is a Service oriented app.
• WF Work Flow Enabled Application

You might also like