when using c # or any such language which is the source code supported by .netframework is compiled to intermediate language by c# compiler which later on compiled to machine code by just in time compiler. my question is, is c# compiler a part of common language runtime which inturn a part of .netframe work. if not can anyone explain this definition for clr;
clr is an engine that compiles source code into microsoft intermediate language which later on compilation by jit compiler get converted to native code
AlanPosted Aug 26, 2008, 11:39 AM
The C# compiler is included within the .NET Framework distribution though it isn't part of either the CLR or Framework class library. It converts the C# source code into MSIL and metadata and packages it in the form of a standard windows executable (PE file) which can then be run under the control of the CLR.
The CLR runs the MSIL produced by any .NET compiler (there are dozens of them) by converting it to native code 'on the fly' and providing various services such as garbage collection and security to assist with this.
The framework is a pre-compiled class library which provides basic functionality which all .NET languages can make use of.