What is the CLR in .NET?
Simple meaning
The Common Language Runtime is the engine that loads IL, JITs it to native code, and manages memory, exceptions, and type safety.
Open the full page for Why, Steps, Example and Key takeaway.
Panel-ready .NET / C# questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.
The Common Language Runtime is the engine that loads IL, JITs it to native code, and manages memory, exceptions, and type safety.
Open the full page for Why, Steps, Example and Key takeaway.
NET Framework is the older Windows-only stack.
Open the full page for Why, Steps, Example and Key takeaway.
Intermediate Language is the CPU-independent bytecode the C# compiler emits into a DLL or EXE.
Open the full page for Why, Steps, Example and Key takeaway.
An assembly is the deployable unit, usually a DLL or EXE, plus metadata and optionally resources.
Open the full page for Why, Steps, Example and Key takeaway.
Value types like int and struct live on the stack when they are locals, and assignment copies the bits.
Open the full page for Why, Steps, Example and Key takeaway.
Boxing wraps a value type in a heap object so it can sit in an object reference.
Open the full page for Why, Steps, Example and Key takeaway.
Once created, a System.String cannot change
Open the full page for Why, Steps, Example and Key takeaway.
Const is a compile-time literal baked into callers.
Open the full page for Why, Steps, Example and Key takeaway.
Var is still statically typed
Open the full page for Why, Steps, Example and Key takeaway.
An interface is a contract of members a type must implement
Open the full page for Why, Steps, Example and Key takeaway.
Using calls Dispose at the end of the block even if an exception is thrown.
Open the full page for Why, Steps, Example and Key takeaway.
It is the pattern for deterministic cleanup of unmanaged or scarce resources.
Open the full page for Why, Steps, Example and Key takeaway.
The GC tracks reachability from roots and reclaims objects with no references.
Open the full page for Why, Steps, Example and Key takeaway.
A property is get and set methods with field-like syntax, so I can add validation later without breaking callers.
Open the full page for Why, Steps, Example and Key takeaway.
Language Integrated Query lets me filter, project, and join collections in C# instead of nested loops.
Open the full page for Why, Steps, Example and Key takeaway.
IEnumerable enumerates in the app process.
Open the full page for Why, Steps, Example and Key takeaway.
Async methods return a Task and await yields the thread until the awaited work finishes.
Open the full page for Why, Steps, Example and Key takeaway.
Task represents an asynchronous operation that will complete with a result or an exception.
Open the full page for Why, Steps, Example and Key takeaway.
Open the full page for Why, Steps, Example and Key takeaway.
Public, private, protected, internal, and protected internal are the ones I name first.
Open the full page for Why, Steps, Example and Key takeaway.