¡@

Home 

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

object GetEnumerator IL_0006 stloc.1 .try IL_0007 br.s IL_0017 IL_0009 ldloca.s V_1 IL_000b call instance 0 valuetype.. IL_0001 stloc.1 IL_0002 ldc.i4.0 IL_0003 stloc.2 IL_0004 br.s IL_0014 IL_0006 ldloc.1 IL_0007 ldloc.2 IL_0008 ldelem.ref IL_0009..

Generate tail call opcode

http://stackoverflow.com/questions/15864670/generate-tail-call-opcode

L_000b add L_000c starg.s acc L_000e starg.s i L_0010 br.s L_0000 Which according to ILSpy is equivalent to this Microsoft.FSharp.Core.CompilationArgumentCounts..

Is the conditional operator slow?

http://stackoverflow.com/questions/2259741/is-the-conditional-operator-slow

L_016a ldarg.1 L_016b ldc.i4.s 0x42 L_016d stind.i2 L_016e br.s L_0174 L_0170 ldarg.1 L_0171 ldc.i4.s 0x62 L_0173 stind.i2 L_0174.. ldarg.2 L_0167 brtrue.s L_016d L_0169 ldc.i4.s 0x62 L_016b br.s L_016f L_016d ldc.i4.s 0x42 L_016f stind.i2 L_0170 ldc.i4.1..

Are .Net switch statements hashed or indexed?

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

L_00be L_00c2 L_00c6 L_00ca L_00ce 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.. 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_00de L_00c6.. 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 VB.NET..

Discrete Anonymous methods sharing a class?

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

0 IL_0041 stloc.1 IL_0042 ldloc.0 IL_0043 stloc.3 IL_0044 br.s IL_0046 IL_0046 ldloc.3 IL_0047 ret end of method Program joik..

Is the null coalesce operator thread safe?

http://stackoverflow.com/questions/4619593/is-the-null-coalesce-operator-thread-safe

void mscorlib System.Object .ctor L_0010 stloc.0 L_0011 br.s L_0013 L_0013 ldloc.0 L_0014 ret This effectively does a load..

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

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 System.Console.. of second loop IL_0018 ldc.i4.0 IL_0019 stloc.0 IL_001a br.s IL_0026 IL_001c ldloc.0 IL_001d call void mscorlib System.Console..

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

int32 GetEnumerator L_000d stloc.3 L_000e br.s L_002f L_0010 ldloc.3 L_0011 callvirt instance 0 mscorlib System.Collections.Generic.IEnumerator`1.. int32 GetEnumerator L_000d stloc.3 L_000e br.s L_002f L_0010 ldloc.3 L_0011 callvirt instance 0 mscorlib System.Collections.Generic.IEnumerator`1..