c# Programming Glossary: il_0000
Performance difference for control structures 'for' and 'foreach' in C# http://stackoverflow.com/questions/1124753/performance-difference-for-control-structures-for-and-foreach-in-c-sharp System.Collections.Generic.List`1 Enumerator object V_1 IL_0000 ldarg.0 IL_0001 callvirt instance valuetype mscorlib System.Collections.Generic.List`1.. .maxstack 2 .locals init object V_0 object V_1 int32 V_2 IL_0000 ldarg.0 IL_0001 stloc.1 IL_0002 ldc.i4.0 IL_0003 stloc.2 IL_0004..
Why Enum's HasFlag method need boxing? http://stackoverflow.com/questions/11665279/why-enums-hasflag-method-need-boxing init 0 valuetype ConsoleApplication1.Fruit f 1 bool result IL_0000 nop IL_0001 ldc.i4.0 IL_0002 stloc.0 IL_0003 ldloc.0 IL_0004.. .locals init 0 int32 i 1 class mscorlib System.ValueType v IL_0000 nop IL_0001 ldc.i4.1 IL_0002 stloc.0 IL_0003 ldloc.0 IL_0004..
C# newbie: what's the difference between “bool” and “bool?”? http://stackoverflow.com/questions/1181491/c-sharp-newbie-whats-the-difference-between-bool-and-bool init valuetype mscorlib System.Nullable`1 int32 V_0 IL_0000 ldloca.s V_0 IL_0002 initobj valuetype mscorlib System.Nullable`1..
Generate tail call opcode http://stackoverflow.com/questions/15864670/generate-tail-call-opcode of tail calls . The generates IL code looks like this IL_0000 ldarg.1 IL_0001 ldarg.0 IL_0002 ldc.i4.1 IL_0003 add IL_0004..
Is there a way to see the native code produced by theJITter for given C# / CIL? http://stackoverflow.com/questions/1945719/is-there-a-way-to-see-the-native-code-produced-by-thejitter-for-given-c-sharp methods that respectively divide and shift their argument IL_0000 ldarg.0 IL_0001 ldc.i4.2 IL_0002 div IL_0003 ret end of method.. div IL_0003 ret end of method Program Divider versus IL_0000 ldarg.0 IL_0001 ldc.i4.1 IL_0002 shr IL_0003 ret end of method..
Why are C# interface methods not declared abstract or virtual? http://stackoverflow.com/questions/3621410/why-are-c-sharp-interface-methods-not-declared-abstract-or-virtual void Dispose cil managed Code size 2 0x2 .maxstack 8 IL_0000 nop IL_0001 ret end of method Example Dispose Notice that the..
Discrete Anonymous methods sharing a class? http://stackoverflow.com/questions/3885106/discrete-anonymous-methods-sharing-a-class ' 8__locals3' 3 class Program Ref`1 int32 CS 1 0000 IL_0000 newobj instance void Program ' c__DisplayClass2' .ctor IL_0005..
Scope of variables in C# http://stackoverflow.com/questions/3979493/scope-of-variables-in-c-sharp int32 a Declare a 1 int32 b Declare b 2 int32 c Declare c IL_0000 ldc.i4.3 IL_0001 stloc.0 IL_0002 ldloc.0 IL_0003 ldc.i4.1..
Reflection for F# units of measure http://stackoverflow.com/questions/4005474/reflection-for-f-units-of-measure float64 time cil managed Code size 5 0x5 .maxstack 4 IL_0000 nop IL_0001 ldarg.0 IL_0002 ldarg.1 IL_0003 div IL_0004 ret..
Is there any performance difference between ++i and i++ in C#? http://stackoverflow.com/questions/467322/is-there-any-performance-difference-between-i-and-i-in-c i The generated IL code is the same for both loops IL_0000 ldc.i4.0 IL_0001 stloc.0 Start of first loop IL_0002 ldc.i4.0..
Where and why use int a=new int? http://stackoverflow.com/questions/5746873/where-and-why-use-int-a-new-int 0xf .maxstack 1 .locals init 0 int32 A 1 int32 B 2 int32 C IL_0000 nop IL_0001 ldc.i4.0 IL_0002 stloc.0 IL_0003 ldc.i4.0 IL_0004..
What is differences between Multidimensional array and Array of Arrays in C#? http://stackoverflow.com/questions/597720/what-is-differences-between-multidimensional-array-and-array-of-arrays-in-c j int32 'value' cil managed Code size 7 0x7 .maxstack 8 IL_0000 ldarg.0 IL_0001 ldarg.1 IL_0002 ldelem.ref IL_0003 ldarg.2 IL_0004.. int32 'value' cil managed Code size 10 0xa .maxstack 8 IL_0000 ldarg.0 IL_0001 ldarg.1 IL_0002 ldarg.2 IL_0003 ldarg.3 IL_0004..
VB.NET vs C# integer division [duplicate] http://stackoverflow.com/questions/6013626/vb-net-vs-c-sharp-integer-division and stored in y. C# does none of that. VB.NET IL Code IL_0000 ldc.i4.s 10 IL_0002 stloc.1 IL_0003 ldc.i4.s 0A IL_0005 stloc.0.. ldloc.2 IL_0013 call System.Console.WriteLine C# IL Code IL_0000 ldc.i4.s 10 IL_0002 stloc.0 IL_0003 ldc.i4.s 0A IL_0005 stloc.1..
Why GetType returns System.Int32 instead of Nullable<Int32>? http://stackoverflow.com/questions/6931783/why-gettype-returns-system-int32-instead-of-nullableint32 must be boxed. You can see this in the IL code int x 5 IL_0000 ldloca.s 00 IL_0002 ldc.i4.5 IL_0003 call System.Nullable System.Int32..
I wrote a program that allow two classes to “fight”. For whatever reason C# always wins. What's wrong with VB.NET? http://stackoverflow.com/questions/711586/i-wrote-a-program-that-allow-two-classes-to-fight-for-whatever-reason-c-sharp void .ctor cil managed Code size 15 0xf .maxstack 8 IL_0000 ldarg.0 IL_0001 call instance void base Player .ctor IL_0006..
Why this compile error http://stackoverflow.com/questions/8823427/why-this-compile-error The IL code produced by both examples is exactly the same. IL_0000 ldstr C IL_0005 stloc.0 IL_0006 ldloc.0 IL_0007 call System.String.IsNullOrEmpty..
|