UNIT-I .Net and C#
UNIT-I .Net and C#
BCA 602-B
By :
Mr. Ankit Kumar
Unit – 1
The .Net Framework
Introduction–
• .NET is a framework to develop software applications. It is designed and
developed by Microsoft and the first beta version released in 2000.
• It is used to develop applications for web, Windows, phone.
Moreover, it provides a broad range of functionalities and support.
• This framework contains a large number of class libraries known as
Framework Class Library (FCL). The software programs written in .NET are
executed in the execution environment, which is called CLR (Common
Language Runtime). These are the core and essential parts of the .NET
framework.
• The .Net Framework supports more than 60 programming languages such
as C#, F#, VB.NET, J#, VC++, JScript.NET, APL, COBOL, Perl, Oberon, ML,
Pascal, Eiffel, Smalltalk, Python, Cobra, ADA, etc.
Working of JIT Compiler: The JIT compiler is required to speed up the code
execution and provide support for multiple platforms. Its working is given as
follows:
Garbage Collection–
Garbage Collection–
• Automatic memory management is made possible by Garbage Collection
in .NET Framework. When a class object is created at runtime, certain
memory space is allocated to it in the heap memory. However, after all
the actions related to the object are completed in the program, the
memory space allocated to it is a waste as it cannot be used. In this case,
garbage collection is very useful as it automatically releases the memory
space after it is no longer required.
There are mainly 3 phases in garbage collection. Details about these are given as
follows:
1. A list of all the live objects is created during the marking
2.
3.
original order.