¡@

Home 

c# Programming Glossary: stloc.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

object GetEnumerator IL_0006 stloc.1 .try IL_0007 br.s IL_0017 IL_0009 ldloca.s V_1 IL_000b call.. 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 br.s IL_0014 IL_0006..

Why Enum's HasFlag method need boxing?

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

System.Enum HasFlag class mscorlib System.Enum IL_0014 stloc.1 IL_0015 call string mscorlib System.Console ReadLine IL_001a.. IL_0003 ldloc.0 IL_0004 box mscorlib System.Int32 IL_0009 stloc.1 IL_000a call string mscorlib System.Console ReadLine IL_000f..

Using clause fails to call Dispose?

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

System.Management.ManagementPath get_ClassName IL_0038 stloc.1 IL_0039 leave.s IL_0045 end .try finally IL_003b ldloc.2 IL_003c..

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

ClassLibrary1.Class2 set_Foo string L_0022 ldloc.2 L_0023 stloc.1 L_0024 ldloc.0 L_0025 callvirt instance string ClassLibrary1.Class1..

Comparing structs to null [duplicate]

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

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 if you change..

Lock statement vs Monitor.Enter method

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

instance void ConsoleApplication2.Test .ctor string L_0016 stloc.1 L_0017 ldc.i4.0 L_0018 stloc.3 L_0019 ldloc.0 L_001a dup L_001b.. object bool L_0071 nop L_0072 nop L_0073 ldnull L_0074 stloc.1 L_0075 ldstr Manual collect. L_007a call void mscorlib System.Console..

Are .Net switch statements hashed or indexed?

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

L_00d2 L_00d6 L_00bc br.s L_00da L_00be ldc.i4.1 L_00bf stloc.1 L_00c0 br.s L_00de L_00c2 ldc.i4.2 L_00c3 stloc.1 L_00c4 br.s.. L_00bf stloc.1 L_00c0 br.s L_00de L_00c2 ldc.i4.2 L_00c3 stloc.1 L_00c4 br.s L_00de L_00c6 ldc.i4.3 Update 2 For what it is worth..

Discrete Anonymous methods sharing a class?

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

Ref`1 int32 .ctor class Program Ref`1 Func`1 0 0 IL_0041 stloc.1 IL_0042 ldloc.0 IL_0043 stloc.3 IL_0044 br.s IL_0046 IL_0046..

Scope of variables in C#

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

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

Where and why use int a=new int?

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

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 call int32 mscorlib..

VB.NET vs C# integer division [duplicate]

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

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 IL_0006 ldloc.1 IL_0007.. ldc.i4.s 10 IL_0002 stloc.0 IL_0003 ldc.i4.s 0A IL_0005 stloc.1 IL_0006 ldloc.0 IL_0007 ldloc.1 IL_0008 div IL_0009 stloc.2..

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

stloc.0 L_0017 ldloc.0 L_0018 ldloc.0 L_0019 mul L_001a stloc.1 L_001b newobj instance void mscorlib System.Text.StringBuilder.. void mscorlib System.Text.StringBuilder .ctor L_0020 stloc.1 L_0021 ldloc.1 L_0022 ldloc.0 L_0023 callvirt instance class..