.net presentation
.net presentation
The Common Language Runtime (CLR) is the execution engine that handles ru
nning applications. It provides services like thread management, garbage collec
tion, type-safety, exception handling, and more.
The Class Library provides a set of APIs and types for common functionality. It p
rovides types for strings, dates, numbers, etc. The Class Library includes APIs f
or reading and writing files, connecting to databases, drawing, and more.
.NET applications are written in the C#, F#, or Visual Basic programming langu
age. The code from any of these languages is compiled into a Common Interm
ediate Language (CIL). This Compiled code is then stored in assemblies or file
s with a .dll or .exe file extension.
When an application runs, the CLR takes the assembly(.exe or .dll file) and u
ses a just-in-time compiler (JIT) to turn it into machine code that can execute
on the specific architecture of the computer it is running on.
C#
C# code
Compiler
F# Machine code
F# code
Compiler
A just-in-time (JIT) compiler is a compil
er that compiles code during program
execution, rather than ahead of time.
Features of the .NET framework
Language Interoperability: Language Interoperability means code written in a
ny language can be used by other languages and there is an access provided t
o COM components in the System. In other words, this is the ability of code t
o interact with code which is written using a different programming language. It
can help to maximize code reusability and therefore improve the efficiency of th
e development process.
Type Safety: During program execution, the type checker ensures that all obje
cts and values, and the references to those objects and values, have a valid ty
pe. For example, the type checker ensures that only an integer value is assigne
d to an integer variable. The type checker also ensures that only valid operatio
ns are performed on the objects or values.
Automatic memory management: While developing applications developers h
ad to develop an eye on system resource like memory. ..NET takes this worry a
way from developer by handling memory on its own. The garbage collector take
s care of freeing unused objects at appropriate intervals.