¡@

Home 

c# Programming Glossary: ldc.i4.0

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

V_1 int32 V_2 IL_0000 ldarg.0 IL_0001 stloc.1 IL_0002 ldc.i4.0 IL_0003 stloc.2 IL_0004 br.s IL_0014 IL_0006 ldloc.1 IL_0007..

Why Enum's HasFlag method need boxing?

http://stackoverflow.com/questions/11665279/why-enums-hasflag-method-need-boxing

f 1 bool result IL_0000 nop IL_0001 ldc.i4.0 IL_0002 stloc.0 IL_0003 ldloc.0 IL_0004 box ConsoleApplication1.Fruit.. ldloc.0 IL_0004 box ConsoleApplication1.Fruit IL_0009 ldc.i4.0 IL_000a box ConsoleApplication1.Fruit IL_000f call instance..

Comparing structs to null [duplicate]

http://stackoverflow.com/questions/2022425/comparing-structs-to-null

the compiler that even hints there was a test is this IL ldc.i4.0 ldc.i4.0 ceq stloc.1 where there is an unused boolean local.. that even hints there was a test is this IL ldc.i4.0 ldc.i4.0 ceq stloc.1 where there is an unused boolean local Note that..

Lock statement vs Monitor.Enter method

http://stackoverflow.com/questions/2837070/lock-statement-vs-monitor-enter-method

.ctor string L_0016 stloc.1 L_0017 ldc.i4.0 L_0018 stloc.3 L_0019 ldloc.0 L_001a dup L_001b stloc.s CS 2.. nop L_0050 nop L_0051 leave.s L_0066 L_0053 ldloc.3 L_0054 ldc.i4.0 L_0055 ceq L_0057 stloc.s CS 4 0001 L_0059 ldloc.s CS 4 0001.. Exit object L_0064 nop L_0065 endfinally L_0066 nop L_0067 ldc.i4.0 L_0068 stloc.2 L_0069 ldloc.1 L_006a ldloca.s lockTaken L_006c..

Are .Net switch statements hashed or indexed?

http://stackoverflow.com/questions/3366376/are-net-switch-statements-hashed-or-indexed

string int32 .ctor int32 L_002e dup L_002f ldstr x L_0034 ldc.i4.0 L_0035 call instance void mscorlib System.Collections.Generic.Dictionary`2..

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

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 IL_0003.. ldc.i4.0 IL_0001 stloc.0 Start of first loop IL_0002 ldc.i4.0 IL_0003 stloc.0 IL_0004 br.s IL_0010 IL_0006 ldloc.0 IL_0007.. IL_0016 blt.s IL_0006 Start of second loop IL_0018 ldc.i4.0 IL_0019 stloc.0 IL_001a br.s IL_0026 IL_001c ldloc.0 IL_001d..

Where and why use int a=new int?

http://stackoverflow.com/questions/5746873/where-and-why-use-int-a-new-int

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 stloc.1 IL_0005 ldc.i4.s.. C IL_0000 nop IL_0001 ldc.i4.0 IL_0002 stloc.0 IL_0003 ldc.i4.0 IL_0004 stloc.1 IL_0005 ldc.i4.s 100 IL_0007 stloc.2 IL_0008..

Is it better to declare a variable inside or outside a loop?

http://stackoverflow.com/questions/8535846/is-it-better-to-declare-a-variable-inside-or-outside-a-loop

int32 enumerator L_0000 ldc.i4.0 L_0001 ldc.i4.s 10 L_0003 call class mscorlib System.Collections.Generic.IEnumerable`1.. int32 enumerator L_0000 ldc.i4.0 L_0001 ldc.i4.s 10 L_0003 call class mscorlib System.Collections.Generic.IEnumerable`1..