¡@

Home 

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

Enumerator object get_Current IL_0010 stloc.0 IL_0011 ldloc.0 IL_0012 call void mscorlib System.Console WriteLine.. IL_0006 ldloc.1 IL_0007 ldloc.2 IL_0008 ldelem.ref IL_0009 stloc.0 IL_000a ldloc.0 IL_000b call void mscorlib System.Console WriteLine..

Object reference not set to an instance of an object.Why doesn't .NET show which object is `null`?

http://stackoverflow.com/questions/14787580/object-reference-not-set-to-an-instance-of-an-object-why-doesnt-net-show-which

source that executes but rather IL IL_0001 ldnull IL_0002 stloc.0 s IL_0003 ldloc.0 s IL_0004 callvirt System.String.get_Length..

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

newobj instance void ClassLibrary1.Class1 .ctor L_0005 stloc.0 L_0006 ldloc.0 L_0007 ldstr fooBar L_000c callvirt instance..

Lock statement vs Monitor.Enter method

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

instance void ConsoleApplication2.Test .ctor string L_000b stloc.0 L_000c ldstr Tesst2 L_0011 newobj instance void ConsoleApplication2.Test.. object bool L_0024 nop L_0025 nop L_0026 ldnull L_0027 stloc.0 L_0028 ldstr Manual collect. L_002d call void mscorlib System.Console..

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_002f stloc.0 IL_0030 ldloc.2 IL_0031 ldftn instance int32 Program ' c__DisplayClass2'..

Scope of variables in C#

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

b Declare b 2 int32 c Declare c IL_0000 ldc.i4.3 IL_0001 stloc.0 IL_0002 ldloc.0 IL_0003 ldc.i4.1 IL_0004 ble.s IL_000c IL_0006.. 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 IL_000f ldloc.0 IL_0010..

What really happens in a try { return x; } finally { x = null; } statement?

http://stackoverflow.com/questions/421797/what-really-happens-in-a-try-return-x-finally-x-null-statement

CS 1 0000 L_0000 call int32 Program SomeNumber L_0005 stloc.0 L_0006 leave.s L_000e L_0008 call void Program Foo L_000d endfinally..

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

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 stloc.0 IL_0004.. 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 call void mscorlib.. int32 IL_000c ldloc.0 IL_000d ldc.i4.1 IL_000e add IL_000f stloc.0 IL_0010 ldloc.0 IL_0011 ldc.i4 0x100000 IL_0016 blt.s IL_0006..

Where and why use int a=new int?

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

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

VB.NET vs C# integer division [duplicate]

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

ldc.i4.s 10 IL_0002 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.. C# IL Code IL_0000 ldc.i4.s 10 IL_0002 stloc.0 IL_0003 ldc.i4.s 0A IL_0005 stloc.1 IL_0006 ldloc.0 IL_0007..

Why is the C# compiler emitting a callvirt instruction for a GetType() method call?

http://stackoverflow.com/questions/845657/why-is-the-c-sharp-compiler-emitting-a-callvirt-instruction-for-a-gettype-meth

newobj instance void mscorlib System.Object .ctor L_0006 stloc.0 L_0007 ldloc.0 L_0008 callvirt instance class mscorlib System.Type..

Why this compile error

http://stackoverflow.com/questions/8823427/why-this-compile-error

both examples is exactly the same. IL_0000 ldstr C IL_0005 stloc.0 IL_0006 ldloc.0 IL_0007 call System.String.IsNullOrEmpty IL_000C..