¡@

Home 

c# Programming Glossary: ldloca.s

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

IL_0006 stloc.1 .try IL_0007 br.s IL_0017 IL_0009 ldloca.s V_1 IL_000b call instance 0 valuetype mscorlib System.Collections.Generic.List`1.. call void mscorlib System.Console WriteLine object IL_0017 ldloca.s V_1 IL_0019 call instance bool valuetype mscorlib System.Collections.Generic.List`1.. IL_0009 IL_0020 leave.s IL_0030 end .try finally IL_0022 ldloca.s V_1 IL_0024 constrained. valuetype mscorlib System.Collections.Generic.List`1..

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

valuetype mscorlib System.Nullable`1 int32 V_0 IL_0000 ldloca.s V_0 IL_0002 initobj valuetype mscorlib System.Nullable`1 int32..

Does using “new” on a strict allocate it on the heap or stack?

http://stackoverflow.com/questions/203695/does-using-new-on-a-strict-allocate-it-on-the-heap-or-stack

.locals init 0 valuetype mscorlib System.Guid guid L_0001 ldloca.s guid L_0003 ldstr L_0008 call instance void mscorlib System.Guid.. .locals init 0 valuetype mscorlib System.Guid guid L_0001 ldloca.s guid L_0003 initobj mscorlib System.Guid Removed ToString call.. .locals init 0 valuetype mscorlib System.Guid guid L_0001 ldloca.s guid L_0003 initobj mscorlib System.Guid L_0009 ldloc.0 L_000a..

Lock statement vs Monitor.Enter method

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

L_0019 ldloc.0 L_001a dup L_001b stloc.s CS 2 0000 L_001d ldloca.s s__LockTaken0 L_001f call void mscorlib System.Threading.Monitor.. 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..

Are .Net switch statements hashed or indexed?

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

83D0 CC9C9CD67AD6 method0x6000001 1 L_0090 ldloc.2 L_0091 ldloca.s CS 0 0002 L_0093 call instance bool mscorlib System.Collections.Generic.Dictionary`2..

Why GetType returns System.Int32 instead of Nullable<Int32>?

http://stackoverflow.com/questions/6931783/why-gettype-returns-system-int32-instead-of-nullableint32

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..