What is a CLR?
CLR (Common language run time) is the heart of.NET framework and it does 4 primary important things: -
- Garbage collection
- CAS (Code Access Security)
- CV (Code verification)
- IL to Native translation.
What is a Garbage Collector?
Garbage collector is a feature of CLR which cleans unused managed (it does not clean unmanaged objects) objects and reclaims memory. It’s a back ground thread which runs continuously and at specific intervals it checks if there are any unused objects whose memory can be claimed.
What is code Access Security(CAS)?
CAS is the part of .NET security model which determines whether or not a particular code is allowed to run and what kind of resources can the code access.
See following video on IL code, CLR, CTS, CAS: -
Click and see here on how to learn .NET