Top "Il" questions

Common Intermediate Language is the object-oriented assembly language used by the .NET Framework, .NET Core, and Mono.

Performance of static methods vs instance methods

My question is relating to the performance characteristics of static methods vs instance methods and their scalability. Assume for this …

c# performance static-methods il
Could not load file or assembly 'AssemblyName PublicKeyToken=null' or one of its dependencies

{"Could not load file or assembly 'AssemblyName, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does …

.net manifest il strongname disassembly
How to pass ctor args in Activator.CreateInstance or use IL?

I need a performance enhanced Activator.CreateInstance() and came across this article by Miron Abramson that uses a factory to …

.net performance parameters il createinstance
Convert C# code to IL code

How I can get IL code of C# code ? Can I do this with a extern library, or exists internal …

c# .net il
Why is the .ctor() created when I compile C# code into IL?

With this simple C# code, I run csc hello.cs; ildasm /out=hello.txt hello.exe. class Hello { public static …

c# il csc ildasm
A tool for easy IL code inspection

Sometimes I would like to quickly see the IL representation of my code snippets in C#, to understand what exactly …

c# .net il
Viewing the IL code generated from a compiled expression

Is it possible to view the IL code generated when you call Compile() on an Expression tree? Consider this very …

c# expression-trees il .net-reflector
Creating method dynamically, and executing it

Background: I want to define few static methods in C# , and generate IL code as byte array, from one of …

c# reflection cil reflection.emit il
Interlocked.CompareExchange<Int> using GreaterThan or LessThan instead of equality

The System.Threading.Interlocked object allows for Addition (subtraction) and comparison as an atomic operation. It seems that a CompareExchange …

c# c++ il interlocked interlocked-increment
How can I view the local variables on the evaluation stack when debugging a .NET CLR application?

I'm using Windbg (with the sos extention) and trying to debug a crashed application. I was able to dump the …

debugging stack windbg il sos