NET Application
Code in another .NET Language
Code in C#.NET
Code in VB.NET
C#.NET Compiler
VB.NET Compiler
Another Compiler
Execute
Hour 6 - Page 1 of 5
Components of CLR
The CLR contains the following components. Security Manager / Code safety verifier JIT Compiler
Memory Manager
Garbage Collector
Exception Manager
1.
.NET Framework.
A. Evidence Based Security (EBS): This security feature is meant for protecting entire
assembly not to be accessed by un-authorized users.
The
Security
Manager
component
first
checks
privileges of the current user that the user is allowed to access the assembly or not, based on the evidence.
B. Code Access Security (CAS): This verifies whether the current user is allowed to
perform the actions written in the MSIL code.
Hour 6 - Page 2 of 5
2.
JIT Compiler
As you seen in the diagram of RTE previously, the JIT compiler is The native code is directly understandable by the system hardware. responsible for compiling the MSIL code into the Native code.
3.
Memory Manager
The Memory Manager component of CLR, allocates necessary memory for the variables and objects that are to be used by the application.
4.
Garbage Collector
This component of CLR de-allocates or cleans-up the un-necessary
memory of the application, after usage automatically. Instead, in older languages such as C/C++ this kind of component is
not available so that the programmer should free-up the memory explicitly using some code.
5.
Exception Manager
An exception means Run time error. This component redirect the processor to execute the catch block or
finally block, whenever an exception is occurred at run time. We can learn how to write these catch and finally blocks in C#.NET and
Hour 6 - Page 3 of 5
This is programmers choice. You can maintain all the characters in lower case (or) you can also maintain the naming convention recommended for namespaces. Ex: i, abc, Abc, AbcXyz etc.
Hour 6 - Page 4 of 5
System
Window s
Web
Drawi ng
Dat a
Xml
Lin q
Threadi ng
IO
Tex t
Configurati on
Forms
UI
Printin g
OleD b
SqlClien t
OracleClie nt
HtmlContr ols
WebContro ls
Hour 6 - Page 5 of 5