Basics of .net for beginners

 

  • IL (Intermediate Language) is also called as MSIL (Microsoft Intermediate Language), Managed Code
  • Assemblies have an extension of .DLL or.EXE depending on the type of application
  • .NET assemblies contain IL, whereas pre .NET assemblies contain Native Code (Machine Code)
  • .NET the application execution consists of 2 steps (Offers application portability)
    • Compilation - Source Code to IL
    • Execution or JIT Compilation - IL to Platform specific native code
  • CLR - .NET runtime environment provides several benefits. Garbage collection is one of them
  • .NET supports different programming languages like C#, VB and C++. C#, VB can only generate managed code (IL), whereas C++ can generate both managed code (IL) and un-managed code (Native code).
  • The native code is not stored permanently anywhere, after we close the program the native code is thrown away. When we execute the program again, the native code gets generated again.
  • Any.NET Application – Compiled into Assembly (.EXE or .DLL)

  • Assembly Contains - Manifest and IL
  • Some information in the assembly manifest can be modified using attributes
  • We use ILDASM (Intermediate Language Disassembler) to peek at the assembly manifest and IL. You can also use this tool to export manifest and IL to a text file.
  • We use ILASM.exe (Intermediate Language Assembler) to reconstruct an assembly from a text file that contains manifest and IL.

Previous
Next Post »