All pastes #808777 Raw Edit

Untitled

public text v1 · immutable
·published 2007-12-07 22:17 UTC
rendered paste body
.method public hidebysig instance void PrintUsingAForLoopAndRemoveAValueIfNotExists() cil managed
{
    .maxstack 2
    .locals init (
        [0] bool CS$4$0000)
    L_0000: nop 
    L_0001: ldarg.0 
    L_0002: call instance void Test.Rules.Smells.ClassWithoutCodeDuplicated::PrintValuesInListUsingAForLoop()
    L_0007: nop 
    L_0008: ldarg.0 
    L_0009: ldfld class [mscorlib]System.Collections.IList Test.Rules.Smells.ClassWithoutCodeDuplicated::myList
    L_000e: ldstr "Bar"
    L_0013: callvirt instance bool [mscorlib]System.Collections.IList::Contains(object)
    L_0018: stloc.0 
    L_0019: ldloc.0 
    L_001a: brtrue.s L_002d
    L_001c: ldarg.0 
    L_001d: ldfld class [mscorlib]System.Collections.IList Test.Rules.Smells.ClassWithoutCodeDuplicated::myList
    L_0022: ldstr "Bar"
    L_0027: callvirt instance void [mscorlib]System.Collections.IList::Remove(object)
    L_002c: nop 
    L_002d: ret 
}

 

 .method public hidebysig instance void PrintUsingAForLoopAndRemoveAValueIfExists() cil managed
{
    .maxstack 2
    .locals init (
        [0] bool CS$4$0000)
    L_0000: nop 
    L_0001: ldarg.0 
    L_0002: call instance void Test.Rules.Smells.ClassWithoutCodeDuplicated::PrintValuesInListUsingAForLoop()
    L_0007: nop 
    L_0008: ldarg.0 
    L_0009: ldfld class [mscorlib]System.Collections.IList Test.Rules.Smells.ClassWithoutCodeDuplicated::myList
    L_000e: ldstr "Bar"
    L_0013: callvirt instance bool [mscorlib]System.Collections.IList::Contains(object)
    L_0018: ldc.i4.0 
    L_0019: ceq 
    L_001b: stloc.0 
    L_001c: ldloc.0 
    L_001d: brtrue.s L_0030
    L_001f: ldarg.0 
    L_0020: ldfld class [mscorlib]System.Collections.IList Test.Rules.Smells.ClassWithoutCodeDuplicated::myList
    L_0025: ldstr "Bar"
    L_002a: callvirt instance void [mscorlib]System.Collections.IList::Remove(object)
    L_002f: nop 
    L_0030: ret 
}