¡@

Home 

c# Programming Glossary: ldloc.s

Using clause fails to call Dispose?

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

the same. IL from try finally .try IL_0030 nop IL_0031 ldloc.s mbo IL_0033 callvirt instance class System.Management System.Management.ManagementPath.. leave.s IL_004f end .try finally IL_0041 nop IL_0042 ldloc.s mbo IL_0044 callvirt instance void System.Management System.Management.ManagementBaseObject..

Lock statement vs Monitor.Enter method

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

L_0054 ldc.i4.0 L_0055 ceq L_0057 stloc.s CS 4 0001 L_0059 ldloc.s CS 4 0001 L_005b brtrue.s L_0065 L_005d ldloc.s CS 2 0000 L_005f.. L_0059 ldloc.s CS 4 0001 L_005b brtrue.s L_0065 L_005d ldloc.s CS 2 0000 L_005f call void mscorlib System.Threading.Monitor..

Strange behavior when casting a float to int in C#

http://stackoverflow.com/questions/8911440/strange-behavior-when-casting-a-float-to-int-in-c-sharp

I have the following bytecode for speed 1 IL_01b3 ldloc.s V_8 IL_01b5 callvirt instance float32 myPackage.MyClass getSpeed.. IL_01c0 conv.i4 IL_01c1 stloc.s V_9 for speed 2 IL_01c3 ldloc.s V_8 IL_01c5 callvirt instance float32 myPackage.MyClass getSpeed.. ldc.r4 10. IL_01cf mul IL_01d0 stloc.s V_10 IL_01d2 ldloc.s V_10 IL_01d4 conv.i4 IL_01d5 stloc.s V_11 we can see that operands..