¡@

Home 

c# Programming Glossary: ldloc.1

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

ldc.i4.0 IL_0003 stloc.2 IL_0004 br.s IL_0014 IL_0006 ldloc.1 IL_0007 ldloc.2 IL_0008 ldelem.ref IL_0009 stloc.0 IL_000a ldloc.0.. IL_0012 add IL_0013 stloc.2 IL_0014 ldloc.2 IL_0015 ldloc.1 IL_0016 ldlen IL_0017 conv.i4 IL_0018 blt.s IL_0006 IL_001a..

Using clause fails to call Dispose?

http://stackoverflow.com/questions/11896282/using-clause-fails-to-call-dispose

Dispose IL_0044 endfinally end handler IL_0045 ldloc.1 Apparently the problem is this line IL_003c brfalse.s IL_0044..

When using object initializers, why does the compiler generate an extra local variable?

http://stackoverflow.com/questions/1679780/when-using-object-initializers-why-does-the-compiler-generate-an-extra-local-va

call void mscorlib System.Console WriteLine string L_002f ldloc.1 L_0030 callvirt instance string ClassLibrary1.Class2 get_Foo..

Lock statement vs Monitor.Enter method

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

L_0066 nop L_0067 ldc.i4.0 L_0068 stloc.2 L_0069 ldloc.1 L_006a ldloca.s lockTaken L_006c call void mscorlib System.Threading.Monitor.. nop L_009d nop L_009e leave.s L_00aa L_00a0 nop L_00a1 ldloc.1 L_00a2 call void mscorlib System.Threading.Monitor Exit object..

Scope of variables in C#

http://stackoverflow.com/questions/3979493/scope-of-variables-in-c-sharp

IL_0006 ldc.i4.2 IL_0007 stloc.1 IL_0008 ldloc.0 IL_0009 ldloc.1 IL_000a add IL_000b stloc.0 IL_000c ldc.i4.s 10 IL_000e stloc.2..

VB.NET vs C# integer division [duplicate]

http://stackoverflow.com/questions/6013626/vb-net-vs-c-sharp-integer-division

stloc.1 IL_0003 ldc.i4.s 0A IL_0005 stloc.0 IL_0006 ldloc.1 IL_0007 conv.r8 IL_0008 ldloc.0 IL_0009 conv.r8 IL_000A div.. ldc.i4.s 0A IL_0005 stloc.1 IL_0006 ldloc.0 IL_0007 ldloc.1 IL_0008 div IL_0009 stloc.2 IL_000A ldloc.2 IL_000B call System.Console.WriteLine..

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

.ctor L_0020 stloc.2 L_0021 ldloc.2 L_0022 ldloc.1 L_0023 callvirt instance class mscorlib System.Text.StringBuilder.. System.Text.StringBuilder .ctor L_0020 stloc.1 L_0021 ldloc.1 L_0022 ldloc.0 L_0023 callvirt instance class mscorlib System.Text.StringBuilder.. System.Text.StringBuilder Append int32 L_0028 pop L_0029 ldloc.1 L_002a call void mscorlib System.Console WriteLine object L_002f..