Learn C Sharp Day 17
Lecture 17 : Learn C Sharp IL Code : IL code also known as Common intermediate language code or Microsoft intermediate language code. IL code is a CPU independent partially half compiled code. IL code (intermediate code) or half compiled code, it’s creates at compile time. When this program will run at user system, this run time IL code is converted into machine code by JIT (just-in-time) compiler. JIT Compiler converted IL Code into Machine Code. Viewing IL code : By using ILDASM tool(IL Disassembler open the Tool directly from the Visual Studio) we can view a IL code of a DLL or EXE.In order to view IL code using ILDASM, go to visual studio command prompt (CMD)and run “ILDASM.EXE”. Once ILDASM is running you view the IL code. Example of IL Code with source code : Let's demonstrate IL code example. Let's first create a simple windows-application in C# and a simple button. In that button event add a simple basic code to display hello as shown in bel...