¡@

Home 

c# Programming Glossary: ldloc.2

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

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_000b call.. call void mscorlib System.Console WriteLine object IL_0010 ldloc.2 IL_0011 ldc.i4.1 IL_0012 add IL_0013 stloc.2 IL_0014 ldloc.2.. IL_0011 ldc.i4.1 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..

Using clause fails to call Dispose?

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

end handler IL_004f nop IL from using .try IL_002d ldloc.2 IL_002e callvirt instance class System.Management System.Management.ManagementPath.. stloc.1 IL_0039 leave.s IL_0045 end .try finally IL_003b ldloc.2 IL_003c brfalse.s IL_0044 IL_003e ldloc.2 IL_003f callvirt instance.. finally IL_003b ldloc.2 IL_003c brfalse.s IL_0044 IL_003e ldloc.2 IL_003f callvirt instance void mscorlib System.IDisposable Dispose..

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

void ClassLibrary1.Class2 .ctor L_0016 stloc.2 L_0017 ldloc.2 L_0018 ldstr fooBar2 L_001d callvirt instance void ClassLibrary1.Class2.. instance void ClassLibrary1.Class2 set_Foo string L_0022 ldloc.2 L_0023 stloc.1 L_0024 ldloc.0 L_0025 callvirt instance string..

Are .Net switch statements hashed or indexed?

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

F271 4C12 83D0 CC9C9CD67AD6 method0x6000001 1 L_0090 ldloc.2 L_0091 ldloca.s CS 0 0002 L_0093 call instance bool mscorlib..

Discrete Anonymous methods sharing a class?

http://stackoverflow.com/questions/3885106/discrete-anonymous-methods-sharing-a-class

.ctor IL_0005 stloc.2 IL_0006 nop IL_0007 ldloc.2 IL_0008 ldc.i4 0xc350 IL_000d newarr mscorlib System.Int32 IL_0012.. IL_0012 stfld int32 Program ' c__DisplayClass2' y IL_0017 ldloc.2 IL_0018 ldc.i4.5 IL_0019 stfld int32 Program ' c__DisplayClass2'.. IL_0019 stfld int32 Program ' c__DisplayClass2' x IL_001e ldloc.2 IL_001f ldftn instance int32 Program ' c__DisplayClass2' ' joik..

Scope of variables in C#

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

ldc.i4.s 10 IL_000e stloc.2 IL_000f ldloc.0 IL_0010 ldloc.2 IL_0011 add IL_0012 call void mscorlib System.Console WriteLine..

VB.NET vs C# integer division [duplicate]

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

IL_0010 conv.ovf.i4 IL_0011 stloc.2 IL_0012 ldloc.2 IL_0013 call System.Console.WriteLine C# IL Code IL_0000 ldc.i4.s.. IL_0007 ldloc.1 IL_0008 div IL_0009 stloc.2 IL_000A ldloc.2 IL_000B call System.Console.WriteLine The proper integer division..

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

System.Text.StringBuilder .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 Append int32 L_0028 pop L_0029 ldloc.2 L_002a call void mscorlib System.Console WriteLine object L_002f.. int32 get_Current L_0016 stloc.2 L_0017 ldloc.2 L_0018 ldloc.2 L_0019 mul L_001a stloc.0 L_001b newobj instance..