diff --git a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj index 2dbbf54e8..ff698da2a 100644 --- a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj +++ b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj @@ -74,6 +74,7 @@ + diff --git a/ICSharpCode.Decompiler.Tests/PrettyTestRunner.cs b/ICSharpCode.Decompiler.Tests/PrettyTestRunner.cs index 285f3a86c..b863ae06f 100644 --- a/ICSharpCode.Decompiler.Tests/PrettyTestRunner.cs +++ b/ICSharpCode.Decompiler.Tests/PrettyTestRunner.cs @@ -85,31 +85,31 @@ namespace ICSharpCode.Decompiler.Tests } [Test] - public void InlineAssignmentTest([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void InlineAssignmentTest([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void CompoundAssignmentTest([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void CompoundAssignmentTest([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void ShortCircuit([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void ShortCircuit([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void CustomShortCircuitOperators([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void CustomShortCircuitOperators([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void ExceptionHandling([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void ExceptionHandling([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions, decompilerSettings: new DecompilerSettings { NullPropagation = false, @@ -119,7 +119,7 @@ namespace ICSharpCode.Decompiler.Tests } [Test] - public void Switch([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void Switch([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions, decompilerSettings: new DecompilerSettings { // legacy csc generates a dead store in debug builds @@ -128,49 +128,49 @@ namespace ICSharpCode.Decompiler.Tests } [Test] - public void DelegateConstruction([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void DelegateConstruction([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void AnonymousTypes([ValueSource("defaultOptionsWithMcs")] CSharpCompilerOptions cscOptions) + public void AnonymousTypes([ValueSource(nameof(defaultOptionsWithMcs))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void Async([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void Async([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void Lock([ValueSource("defaultOptionsWithMcs")] CSharpCompilerOptions cscOptions) + public void Lock([ValueSource(nameof(defaultOptionsWithMcs))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void Using([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void Using([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void LiftedOperators([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void LiftedOperators([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void Generics([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void Generics([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void Loops([ValueSource("defaultOptionsWithMcs")] CSharpCompilerOptions cscOptions) + public void Loops([ValueSource(nameof(defaultOptionsWithMcs))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions, decompilerSettings: new DecompilerSettings { // legacy csc generates a dead store in debug builds @@ -179,62 +179,62 @@ namespace ICSharpCode.Decompiler.Tests } [Test] - public void PropertiesAndEvents([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void PropertiesAndEvents([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void AutoProperties([ValueSource("roslynOnlyOptions")] CSharpCompilerOptions cscOptions) + public void AutoProperties([ValueSource(nameof(roslynOnlyOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void QueryExpressions([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void QueryExpressions([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void TypeAnalysisTests([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void TypeAnalysisTests([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void CheckedUnchecked([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void CheckedUnchecked([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void UnsafeCode([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void UnsafeCode([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void PInvoke([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void PInvoke([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { // This tests needs our own disassembler; ildasm has a bug with marshalinfo. RunForLibrary(cscOptions: cscOptions, asmOptions: AssemblerOptions.UseOwnDisassembler); } [Test] - public void InitializerTests([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void InitializerTests([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void DynamicTests([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void DynamicTests([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void ExpressionTrees([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void ExpressionTrees([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } @@ -246,73 +246,73 @@ namespace ICSharpCode.Decompiler.Tests } [Test] - public void VariableNaming([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void VariableNaming([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void VariableNamingWithoutSymbols([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void VariableNamingWithoutSymbols([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions, decompilerSettings: new DecompilerSettings { UseDebugSymbols = false }); } [Test] - public void CS72_PrivateProtected([ValueSource("roslynOnlyOptions")] CSharpCompilerOptions cscOptions) + public void CS72_PrivateProtected([ValueSource(nameof(roslynOnlyOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void AsyncMain([ValueSource("roslynOnlyOptions")] CSharpCompilerOptions cscOptions) + public void AsyncMain([ValueSource(nameof(roslynOnlyOptions))] CSharpCompilerOptions cscOptions) { Run(cscOptions: cscOptions); } [Test] - public void NullPropagation([ValueSource("roslynOnlyOptions")] CSharpCompilerOptions cscOptions) + public void NullPropagation([ValueSource(nameof(roslynOnlyOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void CS6_StringInterpolation([ValueSource("roslynOnlyOptions")] CSharpCompilerOptions cscOptions) + public void CS6_StringInterpolation([ValueSource(nameof(roslynOnlyOptions))] CSharpCompilerOptions cscOptions) { Run(cscOptions: cscOptions); } [Test] - public void RefLocalsAndReturns([ValueSource("roslynOnlyOptions")] CSharpCompilerOptions cscOptions) + public void RefLocalsAndReturns([ValueSource(nameof(roslynOnlyOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void WellKnownConstants([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void WellKnownConstants([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void QualifierTests([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void QualifierTests([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void TupleTests([ValueSource("roslynOnlyOptions")] CSharpCompilerOptions cscOptions) + public void TupleTests([ValueSource(nameof(roslynOnlyOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void NamedArguments([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void NamedArguments([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void OptionalArguments([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void OptionalArguments([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } @@ -348,13 +348,19 @@ namespace ICSharpCode.Decompiler.Tests } [Test] - public void MemberTests([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void MemberTests([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } [Test] - public void TypeTests([ValueSource("defaultOptions")] CSharpCompilerOptions cscOptions) + public void TypeTests([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) + { + RunForLibrary(cscOptions: cscOptions); + } + + [Test] + public void YieldReturn([ValueSource(nameof(defaultOptions))] CSharpCompilerOptions cscOptions) { RunForLibrary(cscOptions: cscOptions); } diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/YieldReturn.cs b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/YieldReturn.cs index 18483b8cd..6398f740b 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/YieldReturn.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/YieldReturn.cs @@ -76,6 +76,14 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness int fieldOnThis; + public static IEnumerable YieldChars { + get { + yield return 'a'; + yield return 'b'; + yield return 'c'; + } + } + public static IEnumerable SimpleYieldReturn() { yield return "A"; @@ -188,8 +196,9 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness yield return "E"; yield return "F"; // outer try-finally block - foreach (string line in input) + foreach (string line in input) { yield return line.ToUpper(); + } } public static IEnumerable> YieldReturnWithAnonymousMethods1(IEnumerable input) @@ -210,17 +219,9 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness public static IEnumerable GetEvenNumbers(int n) { for (int i = 0; i < n; i++) { - if (i % 2 == 0) + if (i % 2 == 0) { yield return i; - } - } - - public static IEnumerable YieldChars - { - get { - yield return 'a'; - yield return 'b'; - yield return 'c'; + } } } @@ -283,7 +284,8 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness yield return 0; try { Console.WriteLine("In Try"); - yield break; // same compiler bug as in YieldBreakInCatchInTryFinally + // same compiler bug as in YieldBreakInCatchInTryFinally + yield break; } catch { Console.WriteLine("Catch"); } @@ -299,8 +301,10 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness yield return 0; try { Console.WriteLine("In Try"); - if (b) - yield break; // same compiler bug as in YieldBreakInCatchInTryFinally + if (b) { + // same compiler bug as in YieldBreakInCatchInTryFinally + yield break; + } } finally { Console.WriteLine("Inner Finally"); } @@ -406,7 +410,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness public static IEnumerable TryFinallyWithTwoExitPointsInNestedCatch(bool b) { - // The first user IL instruction is already in 2 nested try blocks. try { yield return 1; try { @@ -434,9 +437,9 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness try { yield return 2; } finally { - T b = a; - b.Dispose(); - b.Dispose(); + T val = a; + val.Dispose(); + val.Dispose(); } yield return 3; } diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs new file mode 100644 index 000000000..c2c19ce21 --- /dev/null +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs @@ -0,0 +1,339 @@ +// Copyright (c) AlphaSierraPapa for the SharpDevelop Team +// +// Permission is hereby granted, free of charge, to any person obtaining a copy of this +// software and associated documentation files (the "Software"), to deal in the Software +// without restriction, including without limitation the rights to use, copy, modify, merge, +// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons +// to whom the Software is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all copies or +// substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +// DEALINGS IN THE SOFTWARE. + +using System; +using System.Collections.Generic; + +namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty +{ + public class YieldReturnPrettyTest + { + private int fieldOnThis; + + public static IEnumerable YieldChars { + get { + yield return 'a'; + yield return 'b'; + yield return 'c'; + } + } + + internal static void Print(string name, IEnumerator enumerator) + { + Console.WriteLine(name + ": Test start"); + while (enumerator.MoveNext()) { + Console.WriteLine(name + ": " + enumerator.Current); + } + } + + public static IEnumerable SimpleYieldReturn() + { + yield return "A"; + yield return "B"; + yield return "C"; + } + + public static IEnumerator SimpleYieldReturnEnumerator() + { + yield return "A"; + yield return "B"; + yield return "C"; + } + + public IEnumerable YieldReturnParameters(int p) + { + yield return p; + yield return fieldOnThis; + } + + public IEnumerator YieldReturnParametersEnumerator(int p) + { + yield return p; + yield return fieldOnThis; + } + + public static IEnumerable YieldReturnInLoop() + { + for (int i = 0; i < 100; i++) { + yield return i; + } + } + + public static IEnumerable YieldReturnWithTryFinally() + { + yield return 0; + try { + yield return 1; + } finally { + Console.WriteLine("Finally!"); + } + yield return 2; + } + +#if TODO + // TODO: adjust lock-pattern for this case + public static IEnumerable YieldReturnInLock1(object o) + { + lock (o) { + yield return 1; + } + } + + public static IEnumerable YieldReturnInLock2(object o) + { + lock (o) { + yield return 1; + o = null; + yield return 2; + } + } +#endif + + public static IEnumerable YieldReturnWithNestedTryFinally(bool breakInMiddle) + { + Console.WriteLine("Start of method - 1"); + yield return "Start of method"; + Console.WriteLine("Start of method - 2"); + try { + Console.WriteLine("Within outer try - 1"); + yield return "Within outer try"; + Console.WriteLine("Within outer try - 2"); + try { + Console.WriteLine("Within inner try - 1"); + yield return "Within inner try"; + Console.WriteLine("Within inner try - 2"); + if (breakInMiddle) { + Console.WriteLine("Breaking..."); + yield break; + } + Console.WriteLine("End of inner try - 1"); + yield return "End of inner try"; + Console.WriteLine("End of inner try - 2"); + } finally { + Console.WriteLine("Inner Finally"); + } + Console.WriteLine("End of outer try - 1"); + yield return "End of outer try"; + Console.WriteLine("End of outer try - 2"); + } finally { + Console.WriteLine("Outer Finally"); + } + Console.WriteLine("End of method - 1"); + yield return "End of method"; + Console.WriteLine("End of method - 2"); + } + + public static IEnumerable YieldReturnWithTwoNonNestedFinallyBlocks(IEnumerable input) + { + // outer try-finally block + foreach (string line in input) { + // nested try-finally block + try { + yield return line; + } finally { + Console.WriteLine("Processed " + line); + } + } + yield return "A"; + yield return "B"; + yield return "C"; + yield return "D"; + yield return "E"; + yield return "F"; + // outer try-finally block + foreach (string item in input) { + yield return item.ToUpper(); + } + } + + public static IEnumerable> YieldReturnWithAnonymousMethods1(IEnumerable input) + { + foreach (string line in input) { + yield return () => line; + } + } + + public static IEnumerable> YieldReturnWithAnonymousMethods2(IEnumerable input) + { + foreach (string item in input) { + string copy = item; + yield return () => copy; + } + } + + public static IEnumerable GetEvenNumbers(int n) + { + for (int i = 0; i < n; i++) { + if (i % 2 == 0) { + yield return i; + } + } + } + + public static IEnumerable ExceptionHandling() + { + yield return 'a'; + try { + Console.WriteLine("1 - try"); + } catch (Exception) { + Console.WriteLine("1 - catch"); + } + yield return 'b'; + try { + try { + Console.WriteLine("2 - try"); + } finally { + Console.WriteLine("2 - finally"); + } + yield return 'c'; + } finally { + Console.WriteLine("outer finally"); + } + } + + public static IEnumerable YieldBreakInCatch() + { + yield return 0; + try { + Console.WriteLine("In Try"); + } catch { + // yield return is not allowed in catch, but yield break is + yield break; + } + yield return 1; + } + + public static IEnumerable YieldBreakInCatchInTryFinally() + { + try { + yield return 0; + try { + Console.WriteLine("In Try"); + } catch { + // yield return is not allowed in catch, but yield break is + // Note that pre-roslyn, this code triggers a compiler bug: + // If the finally block throws an exception, it ends up getting + // called a second time. + yield break; + } + yield return 1; + } finally { + Console.WriteLine("Finally"); + } + } + + public static IEnumerable YieldBreakInTryCatchInTryFinally() + { + try { + yield return 0; + try { + Console.WriteLine("In Try"); + // same compiler bug as in YieldBreakInCatchInTryFinally + yield break; + } catch { + Console.WriteLine("Catch"); + } + yield return 1; + } finally { + Console.WriteLine("Finally"); + } + } + + public static IEnumerable YieldBreakInTryFinallyInTryFinally(bool b) + { + try { + yield return 0; + try { + Console.WriteLine("In Try"); + if (b) { + // same compiler bug as in YieldBreakInCatchInTryFinally + yield break; + } + } finally { + Console.WriteLine("Inner Finally"); + } + yield return 1; + } finally { + Console.WriteLine("Finally"); + } + } + + public static IEnumerable YieldBreakOnly() + { + yield break; + } + + public static IEnumerable UnconditionalThrowInTryFinally() + { + // Here, MoveNext() doesn't call the finally methods at all + // (only indirectly via Dispose()) + try { + yield return 0; + throw new NotImplementedException(); + } finally { + Console.WriteLine("Finally"); + } + } + + public static IEnumerable NestedTryFinallyStartingOnSamePosition() + { + // The first user IL instruction is already in 2 nested try blocks. + try { + try { + yield return 0; + } finally { + Console.WriteLine("Inner Finally"); + } + } finally { + Console.WriteLine("Outer Finally"); + } + } + + public static IEnumerable LocalInFinally(T a) where T : IDisposable + { + yield return 1; + try { + yield return 2; + } finally { + T val = a; + val.Dispose(); + val.Dispose(); + } + yield return 3; + } + + public static IEnumerable GenericYield() where T : new() + { + T val = new T(); + for (int i = 0; i < 3; i++) { + yield return val; + } + } + } + + internal struct StructWithYieldReturn + { + private int val; + + public IEnumerable Count() + { + yield return val++; + yield return val++; + } + } +} \ No newline at end of file diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.il b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.il new file mode 100644 index 000000000..5fd9effa9 --- /dev/null +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.il @@ -0,0 +1,7400 @@ + + + + +// Metadata version: v4.0.30319 +.assembly extern mscorlib +{ + .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. + .ver 4:0:0:0 +} +.assembly YieldReturn +{ + .custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx + 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows. + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) + .permissionset reqmin + = {[mscorlib]System.Security.Permissions.SecurityPermissionAttribute = {property bool 'SkipVerification' = bool(true)}} + .hash algorithm 0x00008004 + .ver 0:0:0:0 +} +.module YieldReturn.dll +.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) +.imagebase 0x10000000 +.file alignment 0x00000200 +.stackreserve 0x00100000 +.subsystem 0x0003 // WINDOWS_CUI +.corflags 0x00000001 // ILONLY + + +// =============== CLASS MEMBERS DECLARATION =================== + +.class public auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest + extends [mscorlib]System.Object +{ + .class auto ansi sealed nested private beforefieldinit 'd__0' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private char '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__0'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__0'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 134 (0x86) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0025, + IL_001f, + IL_0021, + IL_0023) + IL_001d: br.s IL_0027 + + IL_001f: br.s IL_0044 + + IL_0021: br.s IL_005e + + IL_0023: br.s IL_0078 + + IL_0025: br.s IL_0029 + + IL_0027: br.s IL_0080 + + IL_0029: ldarg.0 + IL_002a: ldc.i4.m1 + IL_002b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0030: nop + IL_0031: ldarg.0 + IL_0032: ldc.i4.s 97 + IL_0034: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>2__current' + IL_0039: ldarg.0 + IL_003a: ldc.i4.1 + IL_003b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0040: ldc.i4.1 + IL_0041: stloc.0 + IL_0042: br.s IL_0084 + + IL_0044: ldarg.0 + IL_0045: ldc.i4.m1 + IL_0046: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_004b: ldarg.0 + IL_004c: ldc.i4.s 98 + IL_004e: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>2__current' + IL_0053: ldarg.0 + IL_0054: ldc.i4.2 + IL_0055: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_005a: ldc.i4.1 + IL_005b: stloc.0 + IL_005c: br.s IL_0084 + + IL_005e: ldarg.0 + IL_005f: ldc.i4.m1 + IL_0060: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0065: ldarg.0 + IL_0066: ldc.i4.s 99 + IL_0068: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>2__current' + IL_006d: ldarg.0 + IL_006e: ldc.i4.3 + IL_006f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0074: ldc.i4.1 + IL_0075: stloc.0 + IL_0076: br.s IL_0084 + + IL_0078: ldarg.0 + IL_0079: ldc.i4.m1 + IL_007a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_007f: nop + IL_0080: ldc.i4.0 + IL_0081: stloc.0 + IL_0082: br.s IL_0084 + + IL_0084: ldloc.0 + IL_0085: ret + } // end of method 'd__0'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance char 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (char V_0) + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__0'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__0'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__0'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>2__current' + IL_0006: box [mscorlib]System.Char + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__0'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__0'::.ctor + + .property instance char 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__0'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__0'::System.Collections.IEnumerator.Current + } // end of class 'd__0' + + .class auto ansi sealed nested private beforefieldinit 'd__3' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private string '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__3'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__3'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 143 (0x8f) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0025, + IL_001f, + IL_0021, + IL_0023) + IL_001d: br.s IL_0027 + + IL_001f: br.s IL_0047 + + IL_0021: br.s IL_0064 + + IL_0023: br.s IL_0081 + + IL_0025: br.s IL_0029 + + IL_0027: br.s IL_0089 + + IL_0029: ldarg.0 + IL_002a: ldc.i4.m1 + IL_002b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0030: nop + IL_0031: ldarg.0 + IL_0032: ldstr "A" + IL_0037: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>2__current' + IL_003c: ldarg.0 + IL_003d: ldc.i4.1 + IL_003e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0043: ldc.i4.1 + IL_0044: stloc.0 + IL_0045: br.s IL_008d + + IL_0047: ldarg.0 + IL_0048: ldc.i4.m1 + IL_0049: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_004e: ldarg.0 + IL_004f: ldstr "B" + IL_0054: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>2__current' + IL_0059: ldarg.0 + IL_005a: ldc.i4.2 + IL_005b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0060: ldc.i4.1 + IL_0061: stloc.0 + IL_0062: br.s IL_008d + + IL_0064: ldarg.0 + IL_0065: ldc.i4.m1 + IL_0066: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_006b: ldarg.0 + IL_006c: ldstr "C" + IL_0071: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>2__current' + IL_0076: ldarg.0 + IL_0077: ldc.i4.3 + IL_0078: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_007d: ldc.i4.1 + IL_007e: stloc.0 + IL_007f: br.s IL_008d + + IL_0081: ldarg.0 + IL_0082: ldc.i4.m1 + IL_0083: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0088: nop + IL_0089: ldc.i4.0 + IL_008a: stloc.0 + IL_008b: br.s IL_008d + + IL_008d: ldloc.0 + IL_008e: ret + } // end of method 'd__3'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (string V_0) + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__3'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__3'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__3'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 11 (0xb) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__3'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__3'::.ctor + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__3'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__3'::System.Collections.IEnumerator.Current + } // end of class 'd__3' + + .class auto ansi sealed nested private beforefieldinit 'd__6' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private string '<>2__current' + .field private int32 '<>1__state' + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 143 (0x8f) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0025, + IL_001f, + IL_0021, + IL_0023) + IL_001d: br.s IL_0027 + + IL_001f: br.s IL_0047 + + IL_0021: br.s IL_0064 + + IL_0023: br.s IL_0081 + + IL_0025: br.s IL_0029 + + IL_0027: br.s IL_0089 + + IL_0029: ldarg.0 + IL_002a: ldc.i4.m1 + IL_002b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0030: nop + IL_0031: ldarg.0 + IL_0032: ldstr "A" + IL_0037: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_003c: ldarg.0 + IL_003d: ldc.i4.1 + IL_003e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0043: ldc.i4.1 + IL_0044: stloc.0 + IL_0045: br.s IL_008d + + IL_0047: ldarg.0 + IL_0048: ldc.i4.m1 + IL_0049: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_004e: ldarg.0 + IL_004f: ldstr "B" + IL_0054: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0059: ldarg.0 + IL_005a: ldc.i4.2 + IL_005b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0060: ldc.i4.1 + IL_0061: stloc.0 + IL_0062: br.s IL_008d + + IL_0064: ldarg.0 + IL_0065: ldc.i4.m1 + IL_0066: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_006b: ldarg.0 + IL_006c: ldstr "C" + IL_0071: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0076: ldarg.0 + IL_0077: ldc.i4.3 + IL_0078: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_007d: ldc.i4.1 + IL_007e: stloc.0 + IL_007f: br.s IL_008d + + IL_0081: ldarg.0 + IL_0082: ldc.i4.m1 + IL_0083: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0088: nop + IL_0089: ldc.i4.0 + IL_008a: stloc.0 + IL_008b: br.s IL_008d + + IL_008d: ldloc.0 + IL_008e: ret + } // end of method 'd__6'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (string V_0) + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__6'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__6'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__6'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 11 (0xb) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__6'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 14 (0xe) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_000d: ret + } // end of method 'd__6'::.ctor + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__6'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__6'::System.Collections.IEnumerator.Current + } // end of class 'd__6' + + .class auto ansi sealed nested private beforefieldinit 'd__8' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest '<>4__this' + .field public int32 p + .field public int32 '<>3__p' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 82 (0x52) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0040 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: ldarg.0 + IL_0036: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>4__this' + IL_003b: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>4__this' + IL_0040: ldloc.0 + IL_0041: ldarg.0 + IL_0042: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>3__p' + IL_0047: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::p + IL_004c: ldloc.0 + IL_004d: stloc.1 + IL_004e: br.s IL_0050 + + IL_0050: ldloc.1 + IL_0051: ret + } // end of method 'd__8'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__8'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 115 (0x73) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001f, + IL_001b, + IL_001d) + IL_0019: br.s IL_0021 + + IL_001b: br.s IL_0042 + + IL_001d: br.s IL_0065 + + IL_001f: br.s IL_0023 + + IL_0021: br.s IL_006d + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_002a: nop + IL_002b: ldarg.0 + IL_002c: ldarg.0 + IL_002d: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::p + IL_0032: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_0037: ldarg.0 + IL_0038: ldc.i4.1 + IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_003e: ldc.i4.1 + IL_003f: stloc.0 + IL_0040: br.s IL_0071 + + IL_0042: ldarg.0 + IL_0043: ldc.i4.m1 + IL_0044: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0049: ldarg.0 + IL_004a: ldarg.0 + IL_004b: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>4__this' + IL_0050: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::fieldOnThis + IL_0055: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_005a: ldarg.0 + IL_005b: ldc.i4.2 + IL_005c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0061: ldc.i4.1 + IL_0062: stloc.0 + IL_0063: br.s IL_0071 + + IL_0065: ldarg.0 + IL_0066: ldc.i4.m1 + IL_0067: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_006c: nop + IL_006d: ldc.i4.0 + IL_006e: stloc.0 + IL_006f: br.s IL_0071 + + IL_0071: ldloc.0 + IL_0072: ret + } // end of method 'd__8'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__8'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__8'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__8'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__8'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__8'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__8'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__8'::System.Collections.IEnumerator.Current + } // end of class 'd__8' + + .class auto ansi sealed nested private beforefieldinit 'd__b' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest '<>4__this' + .field public int32 p + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 115 (0x73) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001f, + IL_001b, + IL_001d) + IL_0019: br.s IL_0021 + + IL_001b: br.s IL_0042 + + IL_001d: br.s IL_0065 + + IL_001f: br.s IL_0023 + + IL_0021: br.s IL_006d + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_002a: nop + IL_002b: ldarg.0 + IL_002c: ldarg.0 + IL_002d: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::p + IL_0032: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>2__current' + IL_0037: ldarg.0 + IL_0038: ldc.i4.1 + IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_003e: ldc.i4.1 + IL_003f: stloc.0 + IL_0040: br.s IL_0071 + + IL_0042: ldarg.0 + IL_0043: ldc.i4.m1 + IL_0044: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_0049: ldarg.0 + IL_004a: ldarg.0 + IL_004b: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>4__this' + IL_0050: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::fieldOnThis + IL_0055: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>2__current' + IL_005a: ldarg.0 + IL_005b: ldc.i4.2 + IL_005c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_0061: ldc.i4.1 + IL_0062: stloc.0 + IL_0063: br.s IL_0071 + + IL_0065: ldarg.0 + IL_0066: ldc.i4.m1 + IL_0067: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_006c: nop + IL_006d: ldc.i4.0 + IL_006e: stloc.0 + IL_006f: br.s IL_0071 + + IL_0071: ldloc.0 + IL_0072: ret + } // end of method 'd__b'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__b'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__b'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__b'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__b'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 14 (0xe) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_000d: ret + } // end of method 'd__b'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__b'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__b'::System.Collections.IEnumerator.Current + } // end of class 'd__b' + + .class auto ansi sealed nested private beforefieldinit 'd__d' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public int32 '5__e' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__d'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__d'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 113 (0x71) + .maxstack 3 + .locals init (bool V_0, + int32 V_1, + bool V_2) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0019, + IL_0017) + IL_0015: br.s IL_001b + + IL_0017: br.s IL_0046 + + IL_0019: br.s IL_001d + + IL_001b: br.s IL_006b + + IL_001d: ldarg.0 + IL_001e: ldc.i4.m1 + IL_001f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_0024: nop + IL_0025: ldarg.0 + IL_0026: ldc.i4.0 + IL_0027: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'5__e' + IL_002c: br.s IL_005c + + IL_002e: nop + IL_002f: ldarg.0 + IL_0030: ldarg.0 + IL_0031: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'5__e' + IL_0036: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>2__current' + IL_003b: ldarg.0 + IL_003c: ldc.i4.1 + IL_003d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_0042: ldc.i4.1 + IL_0043: stloc.0 + IL_0044: br.s IL_006f + + IL_0046: ldarg.0 + IL_0047: ldc.i4.m1 + IL_0048: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_004d: nop + IL_004e: ldarg.0 + IL_004f: dup + IL_0050: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'5__e' + IL_0055: ldc.i4.1 + IL_0056: add + IL_0057: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'5__e' + IL_005c: ldarg.0 + IL_005d: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'5__e' + IL_0062: ldc.i4.s 100 + IL_0064: clt + IL_0066: stloc.2 + IL_0067: ldloc.2 + IL_0068: brtrue.s IL_002e + + IL_006a: nop + IL_006b: ldc.i4.0 + IL_006c: stloc.0 + IL_006d: br.s IL_006f + + IL_006f: ldloc.0 + IL_0070: ret + } // end of method 'd__d'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__d'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__d'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__d'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__d'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__d'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__d'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__d'::System.Collections.IEnumerator.Current + } // end of class 'd__d' + + .class auto ansi sealed nested private beforefieldinit 'd__11' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__11'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__11'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 160 (0xa0) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0029, + IL_0023, + IL_002b, + IL_0025, + IL_0027) + IL_0021: br.s IL_002b + + IL_0023: br.s IL_0047 + + IL_0025: br.s IL_0068 + + IL_0027: br.s IL_0089 + + IL_0029: br.s IL_002d + + IL_002b: br.s IL_0091 + + IL_002d: ldarg.0 + IL_002e: ldc.i4.m1 + IL_002f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0034: nop + IL_0035: ldarg.0 + IL_0036: ldc.i4.0 + IL_0037: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_003c: ldarg.0 + IL_003d: ldc.i4.1 + IL_003e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0043: ldc.i4.1 + IL_0044: stloc.0 + IL_0045: leave.s IL_009d + + IL_0047: ldarg.0 + IL_0048: ldc.i4.m1 + IL_0049: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_004e: nop + IL_004f: ldarg.0 + IL_0050: ldc.i4.2 + IL_0051: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0056: ldarg.0 + IL_0057: ldc.i4.1 + IL_0058: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_005d: ldarg.0 + IL_005e: ldc.i4.3 + IL_005f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0064: ldc.i4.1 + IL_0065: stloc.0 + IL_0066: leave.s IL_009d + + IL_0068: ldarg.0 + IL_0069: ldc.i4.2 + IL_006a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_006f: nop + IL_0070: ldarg.0 + IL_0071: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally12'() + IL_0076: nop + IL_0077: ldarg.0 + IL_0078: ldc.i4.2 + IL_0079: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_007e: ldarg.0 + IL_007f: ldc.i4.4 + IL_0080: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0085: ldc.i4.1 + IL_0086: stloc.0 + IL_0087: leave.s IL_009d + + IL_0089: ldarg.0 + IL_008a: ldc.i4.m1 + IL_008b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0090: nop + IL_0091: ldc.i4.0 + IL_0092: stloc.0 + IL_0093: leave.s IL_009d + + } // end .try + fault + { + IL_0095: ldarg.0 + IL_0096: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::System.IDisposable.Dispose() + IL_009b: nop + IL_009c: endfinally + } // end handler + IL_009d: nop + IL_009e: ldloc.0 + IL_009f: ret + } // end of method 'd__11'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__11'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__11'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 43 (0x2b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.2 + IL_0009: sub + IL_000a: switch ( + IL_001b, + IL_0019) + IL_0017: br.s IL_001d + + IL_0019: br.s IL_001f + + IL_001b: br.s IL_001f + + IL_001d: br.s IL_002a + + .try + { + IL_001f: leave.s IL_0029 + + } // end .try + finally + { + IL_0021: ldarg.0 + IL_0022: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally12'() + IL_0027: nop + IL_0028: endfinally + } // end handler + IL_0029: nop + IL_002a: ret + } // end of method 'd__11'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__11'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__11'::.ctor + + .method private hidebysig instance void + '<>m__Finally12'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.m1 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0008: ldstr "Finally!" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__11'::'<>m__Finally12' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__11'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__11'::System.Collections.IEnumerator.Current + } // end of class 'd__11' + + .class auto ansi sealed nested private beforefieldinit 'd__15' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private string '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public bool breakInMiddle + .field public bool '<>3__breakInMiddle' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 70 (0x46) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: ldarg.0 + IL_0036: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>3__breakInMiddle' + IL_003b: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::breakInMiddle + IL_0040: ldloc.0 + IL_0041: stloc.1 + IL_0042: br.s IL_0044 + + IL_0044: ldloc.1 + IL_0045: ret + } // end of method 'd__15'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__15'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 497 (0x1f1) + .maxstack 2 + .locals init (bool V_0, + int32 V_1, + bool V_2) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_004e, + IL_0033, + IL_0050, + IL_0035, + IL_0050, + IL_003a, + IL_003f, + IL_0044, + IL_0049) + IL_0031: br.s IL_0050 + + IL_0033: br.s IL_0081 + + IL_0035: br IL_00bf + + IL_003a: br IL_00fd + + IL_003f: br IL_0158 + + IL_0044: br IL_0193 + + IL_0049: br IL_01ce + + IL_004e: br.s IL_0055 + + IL_0050: br IL_01e1 + + IL_0055: ldarg.0 + IL_0056: ldc.i4.m1 + IL_0057: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_005c: nop + IL_005d: ldstr "Start of method - 1" + IL_0062: call void [mscorlib]System.Console::WriteLine(string) + IL_0067: nop + IL_0068: ldarg.0 + IL_0069: ldstr "Start of method" + IL_006e: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0073: ldarg.0 + IL_0074: ldc.i4.1 + IL_0075: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_007a: ldc.i4.1 + IL_007b: stloc.0 + IL_007c: leave IL_01ee + + IL_0081: ldarg.0 + IL_0082: ldc.i4.m1 + IL_0083: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0088: ldstr "Start of method - 2" + IL_008d: call void [mscorlib]System.Console::WriteLine(string) + IL_0092: nop + IL_0093: nop + IL_0094: ldarg.0 + IL_0095: ldc.i4.2 + IL_0096: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_009b: ldstr "Within outer try - 1" + IL_00a0: call void [mscorlib]System.Console::WriteLine(string) + IL_00a5: nop + IL_00a6: ldarg.0 + IL_00a7: ldstr "Within outer try" + IL_00ac: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_00b1: ldarg.0 + IL_00b2: ldc.i4.3 + IL_00b3: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00b8: ldc.i4.1 + IL_00b9: stloc.0 + IL_00ba: leave IL_01ee + + IL_00bf: ldarg.0 + IL_00c0: ldc.i4.2 + IL_00c1: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00c6: ldstr "Within outer try - 2" + IL_00cb: call void [mscorlib]System.Console::WriteLine(string) + IL_00d0: nop + IL_00d1: nop + IL_00d2: ldarg.0 + IL_00d3: ldc.i4.4 + IL_00d4: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00d9: ldstr "Within inner try - 1" + IL_00de: call void [mscorlib]System.Console::WriteLine(string) + IL_00e3: nop + IL_00e4: ldarg.0 + IL_00e5: ldstr "Within inner try" + IL_00ea: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_00ef: ldarg.0 + IL_00f0: ldc.i4.5 + IL_00f1: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00f6: ldc.i4.1 + IL_00f7: stloc.0 + IL_00f8: leave IL_01ee + + IL_00fd: ldarg.0 + IL_00fe: ldc.i4.4 + IL_00ff: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0104: ldstr "Within inner try - 2" + IL_0109: call void [mscorlib]System.Console::WriteLine(string) + IL_010e: nop + IL_010f: ldarg.0 + IL_0110: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::breakInMiddle + IL_0115: ldc.i4.0 + IL_0116: ceq + IL_0118: stloc.2 + IL_0119: ldloc.2 + IL_011a: brtrue.s IL_0134 + + IL_011c: nop + IL_011d: ldstr "Breaking..." + IL_0122: call void [mscorlib]System.Console::WriteLine(string) + IL_0127: nop + IL_0128: ldarg.0 + IL_0129: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::System.IDisposable.Dispose() + IL_012e: nop + IL_012f: leave IL_01e1 + + IL_0134: ldstr "End of inner try - 1" + IL_0139: call void [mscorlib]System.Console::WriteLine(string) + IL_013e: nop + IL_013f: ldarg.0 + IL_0140: ldstr "End of inner try" + IL_0145: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_014a: ldarg.0 + IL_014b: ldc.i4.6 + IL_014c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0151: ldc.i4.1 + IL_0152: stloc.0 + IL_0153: leave IL_01ee + + IL_0158: ldarg.0 + IL_0159: ldc.i4.4 + IL_015a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_015f: ldstr "End of inner try - 2" + IL_0164: call void [mscorlib]System.Console::WriteLine(string) + IL_0169: nop + IL_016a: nop + IL_016b: ldarg.0 + IL_016c: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally17'() + IL_0171: nop + IL_0172: ldstr "End of outer try - 1" + IL_0177: call void [mscorlib]System.Console::WriteLine(string) + IL_017c: nop + IL_017d: ldarg.0 + IL_017e: ldstr "End of outer try" + IL_0183: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0188: ldarg.0 + IL_0189: ldc.i4.7 + IL_018a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_018f: ldc.i4.1 + IL_0190: stloc.0 + IL_0191: leave.s IL_01ee + + IL_0193: ldarg.0 + IL_0194: ldc.i4.2 + IL_0195: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_019a: ldstr "End of outer try - 2" + IL_019f: call void [mscorlib]System.Console::WriteLine(string) + IL_01a4: nop + IL_01a5: nop + IL_01a6: ldarg.0 + IL_01a7: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally16'() + IL_01ac: nop + IL_01ad: ldstr "End of method - 1" + IL_01b2: call void [mscorlib]System.Console::WriteLine(string) + IL_01b7: nop + IL_01b8: ldarg.0 + IL_01b9: ldstr "End of method" + IL_01be: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_01c3: ldarg.0 + IL_01c4: ldc.i4.8 + IL_01c5: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_01ca: ldc.i4.1 + IL_01cb: stloc.0 + IL_01cc: leave.s IL_01ee + + IL_01ce: ldarg.0 + IL_01cf: ldc.i4.m1 + IL_01d0: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_01d5: ldstr "End of method - 2" + IL_01da: call void [mscorlib]System.Console::WriteLine(string) + IL_01df: nop + IL_01e0: nop + IL_01e1: nop + IL_01e2: ldc.i4.0 + IL_01e3: stloc.0 + IL_01e4: leave.s IL_01ee + + } // end .try + fault + { + IL_01e6: ldarg.0 + IL_01e7: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::System.IDisposable.Dispose() + IL_01ec: nop + IL_01ed: endfinally + } // end handler + IL_01ee: nop + IL_01ef: ldloc.0 + IL_01f0: ret + } // end of method 'd__15'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (string V_0) + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__15'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__15'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 115 (0x73) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.2 + IL_0009: sub + IL_000a: switch ( + IL_0033, + IL_0029, + IL_002f, + IL_002b, + IL_002d, + IL_0031) + IL_0027: br.s IL_0035 + + IL_0029: br.s IL_0037 + + IL_002b: br.s IL_0037 + + IL_002d: br.s IL_0037 + + IL_002f: br.s IL_0037 + + IL_0031: br.s IL_0037 + + IL_0033: br.s IL_0037 + + IL_0035: br.s IL_0072 + + .try + { + IL_0037: ldarg.0 + IL_0038: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_003d: stloc.0 + IL_003e: ldloc.0 + IL_003f: ldc.i4.4 + IL_0040: sub + IL_0041: switch ( + IL_0058, + IL_0054, + IL_0056) + IL_0052: br.s IL_005a + + IL_0054: br.s IL_005c + + IL_0056: br.s IL_005c + + IL_0058: br.s IL_005c + + IL_005a: br.s IL_0067 + + .try + { + IL_005c: leave.s IL_0066 + + } // end .try + finally + { + IL_005e: ldarg.0 + IL_005f: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally17'() + IL_0064: nop + IL_0065: endfinally + } // end handler + IL_0066: nop + IL_0067: leave.s IL_0071 + + } // end .try + finally + { + IL_0069: ldarg.0 + IL_006a: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally16'() + IL_006f: nop + IL_0070: endfinally + } // end handler + IL_0071: nop + IL_0072: ret + } // end of method 'd__15'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 11 (0xb) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__15'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__15'::.ctor + + .method private hidebysig instance void + '<>m__Finally16'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.m1 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0008: ldstr "Outer Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__15'::'<>m__Finally16' + + .method private hidebysig instance void + '<>m__Finally17'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.2 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0008: ldstr "Inner Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__15'::'<>m__Finally17' + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__15'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__15'::System.Collections.IEnumerator.Current + } // end of class 'd__15' + + .class auto ansi sealed nested private beforefieldinit 'd__1a' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private string '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field public string '5__1b' + .field public string '5__1c' + .field public class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap1d' + .field public class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap20' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 70 (0x46) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: ldarg.0 + IL_0036: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>3__input' + IL_003b: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::input + IL_0040: ldloc.0 + IL_0041: stloc.1 + IL_0042: br.s IL_0044 + + IL_0044: ldloc.1 + IL_0045: ret + } // end of method 'd__1a'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__1a'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 547 (0x223) + .maxstack 2 + .locals init (bool V_0, + int32 V_1, + bool V_2) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0067, + IL_0069, + IL_0069, + IL_003f, + IL_0044, + IL_0049, + IL_004e, + IL_0053, + IL_0058, + IL_005d, + IL_0069, + IL_0062) + IL_003d: br.s IL_0069 + + IL_003f: br IL_00c5 + + IL_0044: br IL_0104 + + IL_0049: br IL_0124 + + IL_004e: br IL_0144 + + IL_0053: br IL_0164 + + IL_0058: br IL_0184 + + IL_005d: br IL_01a2 + + IL_0062: br IL_01f4 + + IL_0067: br.s IL_006e + + IL_0069: br IL_0214 + + IL_006e: ldarg.0 + IL_006f: ldc.i4.m1 + IL_0070: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0075: nop + IL_0076: nop + IL_0077: ldarg.0 + IL_0078: ldarg.0 + IL_0079: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::input + IL_007e: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0083: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap1d' + IL_0088: ldarg.0 + IL_0089: ldc.i4.1 + IL_008a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_008f: br.s IL_00d5 + + IL_0091: ldarg.0 + IL_0092: ldarg.0 + IL_0093: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap1d' + IL_0098: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_009d: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'5__1b' + IL_00a2: nop + IL_00a3: nop + IL_00a4: ldarg.0 + IL_00a5: ldc.i4.2 + IL_00a6: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_00ab: ldarg.0 + IL_00ac: ldarg.0 + IL_00ad: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'5__1b' + IL_00b2: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_00b7: ldarg.0 + IL_00b8: ldc.i4.3 + IL_00b9: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_00be: ldc.i4.1 + IL_00bf: stloc.0 + IL_00c0: leave IL_0220 + + IL_00c5: ldarg.0 + IL_00c6: ldc.i4.2 + IL_00c7: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_00cc: nop + IL_00cd: ldarg.0 + IL_00ce: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally1f'() + IL_00d3: nop + IL_00d4: nop + IL_00d5: ldarg.0 + IL_00d6: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap1d' + IL_00db: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_00e0: stloc.2 + IL_00e1: ldloc.2 + IL_00e2: brtrue.s IL_0091 + + IL_00e4: ldarg.0 + IL_00e5: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally1e'() + IL_00ea: nop + IL_00eb: ldarg.0 + IL_00ec: ldstr "A" + IL_00f1: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_00f6: ldarg.0 + IL_00f7: ldc.i4.4 + IL_00f8: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_00fd: ldc.i4.1 + IL_00fe: stloc.0 + IL_00ff: leave IL_0220 + + IL_0104: ldarg.0 + IL_0105: ldc.i4.m1 + IL_0106: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_010b: ldarg.0 + IL_010c: ldstr "B" + IL_0111: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0116: ldarg.0 + IL_0117: ldc.i4.5 + IL_0118: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_011d: ldc.i4.1 + IL_011e: stloc.0 + IL_011f: leave IL_0220 + + IL_0124: ldarg.0 + IL_0125: ldc.i4.m1 + IL_0126: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_012b: ldarg.0 + IL_012c: ldstr "C" + IL_0131: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0136: ldarg.0 + IL_0137: ldc.i4.6 + IL_0138: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_013d: ldc.i4.1 + IL_013e: stloc.0 + IL_013f: leave IL_0220 + + IL_0144: ldarg.0 + IL_0145: ldc.i4.m1 + IL_0146: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_014b: ldarg.0 + IL_014c: ldstr "D" + IL_0151: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0156: ldarg.0 + IL_0157: ldc.i4.7 + IL_0158: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_015d: ldc.i4.1 + IL_015e: stloc.0 + IL_015f: leave IL_0220 + + IL_0164: ldarg.0 + IL_0165: ldc.i4.m1 + IL_0166: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_016b: ldarg.0 + IL_016c: ldstr "E" + IL_0171: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0176: ldarg.0 + IL_0177: ldc.i4.8 + IL_0178: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_017d: ldc.i4.1 + IL_017e: stloc.0 + IL_017f: leave IL_0220 + + IL_0184: ldarg.0 + IL_0185: ldc.i4.m1 + IL_0186: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_018b: ldarg.0 + IL_018c: ldstr "F" + IL_0191: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0196: ldarg.0 + IL_0197: ldc.i4.s 9 + IL_0199: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_019e: ldc.i4.1 + IL_019f: stloc.0 + IL_01a0: leave.s IL_0220 + + IL_01a2: ldarg.0 + IL_01a3: ldc.i4.m1 + IL_01a4: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_01a9: nop + IL_01aa: ldarg.0 + IL_01ab: ldarg.0 + IL_01ac: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::input + IL_01b1: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_01b6: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap20' + IL_01bb: ldarg.0 + IL_01bc: ldc.i4.s 10 + IL_01be: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_01c3: br.s IL_01fd + + IL_01c5: ldarg.0 + IL_01c6: ldarg.0 + IL_01c7: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap20' + IL_01cc: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_01d1: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'5__1c' + IL_01d6: nop + IL_01d7: ldarg.0 + IL_01d8: ldarg.0 + IL_01d9: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'5__1c' + IL_01de: callvirt instance string [mscorlib]System.String::ToUpper() + IL_01e3: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_01e8: ldarg.0 + IL_01e9: ldc.i4.s 11 + IL_01eb: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_01f0: ldc.i4.1 + IL_01f1: stloc.0 + IL_01f2: leave.s IL_0220 + + IL_01f4: ldarg.0 + IL_01f5: ldc.i4.s 10 + IL_01f7: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_01fc: nop + IL_01fd: ldarg.0 + IL_01fe: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap20' + IL_0203: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_0208: stloc.2 + IL_0209: ldloc.2 + IL_020a: brtrue.s IL_01c5 + + IL_020c: ldarg.0 + IL_020d: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally21'() + IL_0212: nop + IL_0213: nop + IL_0214: ldc.i4.0 + IL_0215: stloc.0 + IL_0216: leave.s IL_0220 + + } // end .try + fault + { + IL_0218: ldarg.0 + IL_0219: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::System.IDisposable.Dispose() + IL_021e: nop + IL_021f: endfinally + } // end handler + IL_0220: nop + IL_0221: ldloc.0 + IL_0222: ret + } // end of method 'd__1a'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (string V_0) + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__1a'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__1a'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 134 (0x86) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0021, + IL_001f, + IL_001d) + IL_001b: br.s IL_0023 + + IL_001d: br.s IL_0025 + + IL_001f: br.s IL_0025 + + IL_0021: br.s IL_0025 + + IL_0023: br.s IL_005a + + .try + { + IL_0025: ldarg.0 + IL_0026: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_002b: stloc.0 + IL_002c: ldloc.0 + IL_002d: ldc.i4.2 + IL_002e: sub + IL_002f: switch ( + IL_0040, + IL_003e) + IL_003c: br.s IL_0042 + + IL_003e: br.s IL_0044 + + IL_0040: br.s IL_0044 + + IL_0042: br.s IL_004f + + .try + { + IL_0044: leave.s IL_004e + + } // end .try + finally + { + IL_0046: ldarg.0 + IL_0047: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally1f'() + IL_004c: nop + IL_004d: endfinally + } // end handler + IL_004e: nop + IL_004f: leave.s IL_0059 + + } // end .try + finally + { + IL_0051: ldarg.0 + IL_0052: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally1e'() + IL_0057: nop + IL_0058: endfinally + } // end handler + IL_0059: nop + IL_005a: ldarg.0 + IL_005b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0060: stloc.0 + IL_0061: ldloc.0 + IL_0062: ldc.i4.s 10 + IL_0064: sub + IL_0065: switch ( + IL_0076, + IL_0074) + IL_0072: br.s IL_0078 + + IL_0074: br.s IL_007a + + IL_0076: br.s IL_007a + + IL_0078: br.s IL_0085 + + .try + { + IL_007a: leave.s IL_0084 + + } // end .try + finally + { + IL_007c: ldarg.0 + IL_007d: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally21'() + IL_0082: nop + IL_0083: endfinally + } // end handler + IL_0084: nop + IL_0085: ret + } // end of method 'd__1a'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 11 (0xb) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__1a'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__1a'::.ctor + + .method private hidebysig instance void + '<>m__Finally1e'() cil managed + { + // Code size 33 (0x21) + .maxstack 2 + .locals init (bool V_0) + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap1d' + IL_000d: ldnull + IL_000e: ceq + IL_0010: stloc.0 + IL_0011: ldloc.0 + IL_0012: brtrue.s IL_0020 + + IL_0014: ldarg.0 + IL_0015: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap1d' + IL_001a: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001f: nop + IL_0020: ret + } // end of method 'd__1a'::'<>m__Finally1e' + + .method private hidebysig instance void + '<>m__Finally1f'() cil managed + { + // Code size 32 (0x20) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.1 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0008: ldstr "Processed " + IL_000d: ldarg.0 + IL_000e: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'5__1b' + IL_0013: call string [mscorlib]System.String::Concat(string, + string) + IL_0018: call void [mscorlib]System.Console::WriteLine(string) + IL_001d: nop + IL_001e: nop + IL_001f: ret + } // end of method 'd__1a'::'<>m__Finally1f' + + .method private hidebysig instance void + '<>m__Finally21'() cil managed + { + // Code size 33 (0x21) + .maxstack 2 + .locals init (bool V_0) + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap20' + IL_000d: ldnull + IL_000e: ceq + IL_0010: stloc.0 + IL_0011: ldloc.0 + IL_0012: brtrue.s IL_0020 + + IL_0014: ldarg.0 + IL_0015: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap20' + IL_001a: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001f: nop + IL_0020: ret + } // end of method 'd__1a'::'<>m__Finally21' + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__1a'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__1a'::System.Collections.IEnumerator.Current + } // end of class 'd__1a' + + .class auto ansi sealed nested private beforefieldinit '<>c__DisplayClass26' + extends [mscorlib]System.Object + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field public string line + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ret + } // end of method '<>c__DisplayClass26'::.ctor + + .method public hidebysig instance string + 'b__24'() cil managed + { + // Code size 11 (0xb) + .maxstack 1 + .locals init (string V_0) + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26'::line + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method '<>c__DisplayClass26'::'b__24' + + } // end of class '<>c__DisplayClass26' + + .class auto ansi sealed nested private beforefieldinit 'd__28' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1>, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1>, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private class [mscorlib]System.Func`1 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field public class [mscorlib]System.Func`1 'CS$<>9__CachedAnonymousMethodDelegate25' + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26' 'CS$<>8__locals27' + .field public class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap29' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1> + 'System.Collections.Generic.IEnumerable>.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1>::GetEnumerator() + // Code size 70 (0x46) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1> V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: ldarg.0 + IL_0036: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>3__input' + IL_003b: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::input + IL_0040: ldloc.0 + IL_0041: stloc.1 + IL_0042: br.s IL_0044 + + IL_0044: ldloc.1 + IL_0045: ret + } // end of method 'd__28'::'System.Collections.Generic.IEnumerable>.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1> ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'System.Collections.Generic.IEnumerable>.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__28'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 217 (0xd9) + .maxstack 4 + .locals init (bool V_0, + int32 V_1, + bool V_2) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0020, + IL_0022, + IL_001b) + IL_0019: br.s IL_0022 + + IL_001b: br IL_00ab + + IL_0020: br.s IL_0027 + + IL_0022: br IL_00ca + + IL_0027: ldarg.0 + IL_0028: ldc.i4.m1 + IL_0029: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_002e: nop + IL_002f: nop + IL_0030: ldarg.0 + IL_0031: ldarg.0 + IL_0032: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::input + IL_0037: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_003c: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>7__wrap29' + IL_0041: ldarg.0 + IL_0042: ldc.i4.1 + IL_0043: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0048: br.s IL_00b3 + + IL_004a: ldarg.0 + IL_004b: ldnull + IL_004c: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>9__CachedAnonymousMethodDelegate25' + IL_0051: ldarg.0 + IL_0052: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26'::.ctor() + IL_0057: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>8__locals27' + IL_005c: ldarg.0 + IL_005d: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>8__locals27' + IL_0062: ldarg.0 + IL_0063: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>7__wrap29' + IL_0068: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_006d: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26'::line + IL_0072: nop + IL_0073: ldarg.0 + IL_0074: ldarg.0 + IL_0075: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>9__CachedAnonymousMethodDelegate25' + IL_007a: brtrue.s IL_0095 + + IL_007c: ldarg.0 + IL_007d: ldarg.0 + IL_007e: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>8__locals27' + IL_0083: ldftn instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26'::'b__24'() + IL_0089: newobj instance void class [mscorlib]System.Func`1::.ctor(object, + native int) + IL_008e: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>9__CachedAnonymousMethodDelegate25' + IL_0093: br.s IL_0095 + + IL_0095: ldarg.0 + IL_0096: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>9__CachedAnonymousMethodDelegate25' + IL_009b: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>2__current' + IL_00a0: ldarg.0 + IL_00a1: ldc.i4.2 + IL_00a2: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_00a7: ldc.i4.1 + IL_00a8: stloc.0 + IL_00a9: leave.s IL_00d6 + + IL_00ab: ldarg.0 + IL_00ac: ldc.i4.1 + IL_00ad: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_00b2: nop + IL_00b3: ldarg.0 + IL_00b4: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>7__wrap29' + IL_00b9: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_00be: stloc.2 + IL_00bf: ldloc.2 + IL_00c0: brtrue.s IL_004a + + IL_00c2: ldarg.0 + IL_00c3: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>m__Finally2a'() + IL_00c8: nop + IL_00c9: nop + IL_00ca: ldc.i4.0 + IL_00cb: stloc.0 + IL_00cc: leave.s IL_00d6 + + } // end .try + fault + { + IL_00ce: ldarg.0 + IL_00cf: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::System.IDisposable.Dispose() + IL_00d4: nop + IL_00d5: endfinally + } // end handler + IL_00d6: nop + IL_00d7: ldloc.0 + IL_00d8: ret + } // end of method 'd__28'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1>::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Func`1 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__28'::'System.Collections.Generic.IEnumerator>.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__28'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 43 (0x2b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_001b, + IL_0019) + IL_0017: br.s IL_001d + + IL_0019: br.s IL_001f + + IL_001b: br.s IL_001f + + IL_001d: br.s IL_002a + + .try + { + IL_001f: leave.s IL_0029 + + } // end .try + finally + { + IL_0021: ldarg.0 + IL_0022: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>m__Finally2a'() + IL_0027: nop + IL_0028: endfinally + } // end handler + IL_0029: nop + IL_002a: ret + } // end of method 'd__28'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 11 (0xb) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__28'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__28'::.ctor + + .method private hidebysig instance void + '<>m__Finally2a'() cil managed + { + // Code size 33 (0x21) + .maxstack 2 + .locals init (bool V_0) + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>7__wrap29' + IL_000d: ldnull + IL_000e: ceq + IL_0010: stloc.0 + IL_0011: ldloc.0 + IL_0012: brtrue.s IL_0020 + + IL_0014: ldarg.0 + IL_0015: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>7__wrap29' + IL_001a: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001f: nop + IL_0020: ret + } // end of method 'd__28'::'<>m__Finally2a' + + .property instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.Current'() + { + .get instance class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'System.Collections.Generic.IEnumerator>.get_Current'() + } // end of property 'd__28'::'System.Collections.Generic.IEnumerator>.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__28'::System.Collections.IEnumerator.Current + } // end of class 'd__28' + + .class auto ansi sealed nested private beforefieldinit '<>c__DisplayClass2e' + extends [mscorlib]System.Object + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field public string copy + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ret + } // end of method '<>c__DisplayClass2e'::.ctor + + .method public hidebysig instance string + 'b__2d'() cil managed + { + // Code size 11 (0xb) + .maxstack 1 + .locals init (string V_0) + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e'::copy + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method '<>c__DisplayClass2e'::'b__2d' + + } // end of class '<>c__DisplayClass2e' + + .class auto ansi sealed nested private beforefieldinit 'd__30' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1>, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1>, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private class [mscorlib]System.Func`1 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field public string '5__31' + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e' 'CS$<>8__locals2f' + .field public class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap32' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1> + 'System.Collections.Generic.IEnumerable>.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1>::GetEnumerator() + // Code size 70 (0x46) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1> V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: ldarg.0 + IL_0036: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>3__input' + IL_003b: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::input + IL_0040: ldloc.0 + IL_0041: stloc.1 + IL_0042: br.s IL_0044 + + IL_0044: ldloc.1 + IL_0045: ret + } // end of method 'd__30'::'System.Collections.Generic.IEnumerable>.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1> ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'System.Collections.Generic.IEnumerable>.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__30'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 197 (0xc5) + .maxstack 3 + .locals init (bool V_0, + int32 V_1, + bool V_2) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001d, + IL_001f, + IL_001b) + IL_0019: br.s IL_001f + + IL_001b: br.s IL_0097 + + IL_001d: br.s IL_0024 + + IL_001f: br IL_00b6 + + IL_0024: ldarg.0 + IL_0025: ldc.i4.m1 + IL_0026: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_002b: nop + IL_002c: nop + IL_002d: ldarg.0 + IL_002e: ldarg.0 + IL_002f: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::input + IL_0034: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0039: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>7__wrap32' + IL_003e: ldarg.0 + IL_003f: ldc.i4.1 + IL_0040: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0045: br.s IL_009f + + IL_0047: ldarg.0 + IL_0048: ldarg.0 + IL_0049: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>7__wrap32' + IL_004e: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_0053: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'5__31' + IL_0058: ldarg.0 + IL_0059: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e'::.ctor() + IL_005e: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'CS$<>8__locals2f' + IL_0063: nop + IL_0064: ldarg.0 + IL_0065: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'CS$<>8__locals2f' + IL_006a: ldarg.0 + IL_006b: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'5__31' + IL_0070: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e'::copy + IL_0075: ldarg.0 + IL_0076: ldarg.0 + IL_0077: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'CS$<>8__locals2f' + IL_007c: ldftn instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e'::'b__2d'() + IL_0082: newobj instance void class [mscorlib]System.Func`1::.ctor(object, + native int) + IL_0087: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>2__current' + IL_008c: ldarg.0 + IL_008d: ldc.i4.2 + IL_008e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0093: ldc.i4.1 + IL_0094: stloc.0 + IL_0095: leave.s IL_00c2 + + IL_0097: ldarg.0 + IL_0098: ldc.i4.1 + IL_0099: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_009e: nop + IL_009f: ldarg.0 + IL_00a0: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>7__wrap32' + IL_00a5: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_00aa: stloc.2 + IL_00ab: ldloc.2 + IL_00ac: brtrue.s IL_0047 + + IL_00ae: ldarg.0 + IL_00af: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>m__Finally33'() + IL_00b4: nop + IL_00b5: nop + IL_00b6: ldc.i4.0 + IL_00b7: stloc.0 + IL_00b8: leave.s IL_00c2 + + } // end .try + fault + { + IL_00ba: ldarg.0 + IL_00bb: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::System.IDisposable.Dispose() + IL_00c0: nop + IL_00c1: endfinally + } // end handler + IL_00c2: nop + IL_00c3: ldloc.0 + IL_00c4: ret + } // end of method 'd__30'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1>::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Func`1 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__30'::'System.Collections.Generic.IEnumerator>.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__30'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 43 (0x2b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_001b, + IL_0019) + IL_0017: br.s IL_001d + + IL_0019: br.s IL_001f + + IL_001b: br.s IL_001f + + IL_001d: br.s IL_002a + + .try + { + IL_001f: leave.s IL_0029 + + } // end .try + finally + { + IL_0021: ldarg.0 + IL_0022: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>m__Finally33'() + IL_0027: nop + IL_0028: endfinally + } // end handler + IL_0029: nop + IL_002a: ret + } // end of method 'd__30'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 11 (0xb) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__30'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__30'::.ctor + + .method private hidebysig instance void + '<>m__Finally33'() cil managed + { + // Code size 33 (0x21) + .maxstack 2 + .locals init (bool V_0) + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>7__wrap32' + IL_000d: ldnull + IL_000e: ceq + IL_0010: stloc.0 + IL_0011: ldloc.0 + IL_0012: brtrue.s IL_0020 + + IL_0014: ldarg.0 + IL_0015: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>7__wrap32' + IL_001a: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001f: nop + IL_0020: ret + } // end of method 'd__30'::'<>m__Finally33' + + .property instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.Current'() + { + .get instance class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'System.Collections.Generic.IEnumerator>.get_Current'() + } // end of property 'd__30'::'System.Collections.Generic.IEnumerator>.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__30'::System.Collections.IEnumerator.Current + } // end of class 'd__30' + + .class auto ansi sealed nested private beforefieldinit 'd__36' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public int32 n + .field public int32 '<>3__n' + .field public int32 '5__37' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 70 (0x46) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: ldarg.0 + IL_0036: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>3__n' + IL_003b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::n + IL_0040: ldloc.0 + IL_0041: stloc.1 + IL_0042: br.s IL_0044 + + IL_0044: ldloc.1 + IL_0045: ret + } // end of method 'd__36'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__36'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 137 (0x89) + .maxstack 3 + .locals init (bool V_0, + int32 V_1, + bool V_2) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0019, + IL_0017) + IL_0015: br.s IL_001b + + IL_0017: br.s IL_0059 + + IL_0019: br.s IL_001d + + IL_001b: br.s IL_0083 + + IL_001d: ldarg.0 + IL_001e: ldc.i4.m1 + IL_001f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_0024: nop + IL_0025: ldarg.0 + IL_0026: ldc.i4.0 + IL_0027: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_002c: br.s IL_0070 + + IL_002e: nop + IL_002f: ldarg.0 + IL_0030: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_0035: ldc.i4.2 + IL_0036: rem + IL_0037: ldc.i4.0 + IL_0038: ceq + IL_003a: ldc.i4.0 + IL_003b: ceq + IL_003d: stloc.2 + IL_003e: ldloc.2 + IL_003f: brtrue.s IL_0061 + + IL_0041: nop + IL_0042: ldarg.0 + IL_0043: ldarg.0 + IL_0044: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_0049: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>2__current' + IL_004e: ldarg.0 + IL_004f: ldc.i4.1 + IL_0050: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_0055: ldc.i4.1 + IL_0056: stloc.0 + IL_0057: br.s IL_0087 + + IL_0059: ldarg.0 + IL_005a: ldc.i4.m1 + IL_005b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_0060: nop + IL_0061: nop + IL_0062: ldarg.0 + IL_0063: dup + IL_0064: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_0069: ldc.i4.1 + IL_006a: add + IL_006b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_0070: ldarg.0 + IL_0071: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_0076: ldarg.0 + IL_0077: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::n + IL_007c: clt + IL_007e: stloc.2 + IL_007f: ldloc.2 + IL_0080: brtrue.s IL_002e + + IL_0082: nop + IL_0083: ldc.i4.0 + IL_0084: stloc.0 + IL_0085: br.s IL_0087 + + IL_0087: ldloc.0 + IL_0088: ret + } // end of method 'd__36'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__36'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__36'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__36'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__36'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__36'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__36'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__36'::System.Collections.IEnumerator.Current + } // end of class 'd__36' + + .class auto ansi sealed nested private beforefieldinit 'd__3a' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private char '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__3a'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__3a'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 242 (0xf2) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0034, + IL_002b, + IL_0036, + IL_002d, + IL_0036, + IL_0036, + IL_002f) + IL_0029: br.s IL_0036 + + IL_002b: br.s IL_0059 + + IL_002d: br.s IL_0093 + + IL_002f: br IL_00d3 + + IL_0034: br.s IL_003b + + IL_0036: br IL_00e3 + + IL_003b: ldarg.0 + IL_003c: ldc.i4.m1 + IL_003d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0042: nop + IL_0043: ldarg.0 + IL_0044: ldc.i4.s 97 + IL_0046: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>2__current' + IL_004b: ldarg.0 + IL_004c: ldc.i4.1 + IL_004d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0052: ldc.i4.1 + IL_0053: stloc.0 + IL_0054: leave IL_00ef + + IL_0059: ldarg.0 + IL_005a: ldc.i4.m1 + IL_005b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + .try + { + IL_0060: nop + IL_0061: ldstr "1 - try" + IL_0066: call void [mscorlib]System.Console::WriteLine(string) + IL_006b: nop + IL_006c: nop + IL_006d: leave.s IL_007f + + } // end .try + catch [mscorlib]System.Exception + { + IL_006f: pop + IL_0070: nop + IL_0071: ldstr "1 - catch" + IL_0076: call void [mscorlib]System.Console::WriteLine(string) + IL_007b: nop + IL_007c: nop + IL_007d: leave.s IL_007f + + } // end handler + IL_007f: nop + IL_0080: ldarg.0 + IL_0081: ldc.i4.s 98 + IL_0083: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>2__current' + IL_0088: ldarg.0 + IL_0089: ldc.i4.3 + IL_008a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_008f: ldc.i4.1 + IL_0090: stloc.0 + IL_0091: leave.s IL_00ef + + IL_0093: ldarg.0 + IL_0094: ldc.i4.m1 + IL_0095: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_009a: nop + IL_009b: ldarg.0 + IL_009c: ldc.i4.4 + IL_009d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + .try + { + IL_00a2: nop + IL_00a3: ldstr "2 - try" + IL_00a8: call void [mscorlib]System.Console::WriteLine(string) + IL_00ad: nop + IL_00ae: nop + IL_00af: leave.s IL_00bf + + } // end .try + finally + { + IL_00b1: nop + IL_00b2: ldstr "2 - finally" + IL_00b7: call void [mscorlib]System.Console::WriteLine(string) + IL_00bc: nop + IL_00bd: nop + IL_00be: endfinally + } // end handler + IL_00bf: nop + IL_00c0: ldarg.0 + IL_00c1: ldc.i4.s 99 + IL_00c3: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>2__current' + IL_00c8: ldarg.0 + IL_00c9: ldc.i4.6 + IL_00ca: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_00cf: ldc.i4.1 + IL_00d0: stloc.0 + IL_00d1: leave.s IL_00ef + + IL_00d3: ldarg.0 + IL_00d4: ldc.i4.4 + IL_00d5: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_00da: nop + IL_00db: ldarg.0 + IL_00dc: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>m__Finally3b'() + IL_00e1: nop + IL_00e2: nop + IL_00e3: ldc.i4.0 + IL_00e4: stloc.0 + IL_00e5: leave.s IL_00ef + + } // end .try + fault + { + IL_00e7: ldarg.0 + IL_00e8: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::System.IDisposable.Dispose() + IL_00ed: nop + IL_00ee: endfinally + } // end handler + IL_00ef: nop + IL_00f0: ldloc.0 + IL_00f1: ret + } // end of method 'd__3a'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance char 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (char V_0) + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__3a'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__3a'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 47 (0x2f) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.4 + IL_0009: sub + IL_000a: switch ( + IL_001f, + IL_0021, + IL_001d) + IL_001b: br.s IL_0021 + + IL_001d: br.s IL_0023 + + IL_001f: br.s IL_0023 + + IL_0021: br.s IL_002e + + .try + { + IL_0023: leave.s IL_002d + + } // end .try + finally + { + IL_0025: ldarg.0 + IL_0026: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>m__Finally3b'() + IL_002b: nop + IL_002c: endfinally + } // end handler + IL_002d: nop + IL_002e: ret + } // end of method 'd__3a'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>2__current' + IL_0006: box [mscorlib]System.Char + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__3a'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__3a'::.ctor + + .method private hidebysig instance void + '<>m__Finally3b'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.m1 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0008: ldstr "outer finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__3a'::'<>m__Finally3b' + + .property instance char 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__3a'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__3a'::System.Collections.IEnumerator.Current + } // end of class 'd__3a' + + .class auto ansi sealed nested private beforefieldinit 'd__3e' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__3e'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__3e'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 125 (0x7d) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0023, + IL_001f, + IL_0025, + IL_0021) + IL_001d: br.s IL_0025 + + IL_001f: br.s IL_0041 + + IL_0021: br.s IL_006e + + IL_0023: br.s IL_0027 + + IL_0025: br.s IL_0076 + + IL_0027: ldarg.0 + IL_0028: ldc.i4.m1 + IL_0029: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_002e: nop + IL_002f: ldarg.0 + IL_0030: ldc.i4.0 + IL_0031: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>2__current' + IL_0036: ldarg.0 + IL_0037: ldc.i4.1 + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_003d: ldc.i4.1 + IL_003e: stloc.0 + IL_003f: br.s IL_007b + + IL_0041: ldarg.0 + IL_0042: ldc.i4.m1 + IL_0043: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + .try + { + IL_0048: nop + IL_0049: ldstr "In Try" + IL_004e: call void [mscorlib]System.Console::WriteLine(string) + IL_0053: nop + IL_0054: nop + IL_0055: leave.s IL_005b + + } // end .try + catch [mscorlib]System.Object + { + IL_0057: pop + IL_0058: nop + IL_0059: leave.s IL_0076 + + } // end handler + IL_005b: nop + IL_005c: ldarg.0 + IL_005d: ldc.i4.1 + IL_005e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>2__current' + IL_0063: ldarg.0 + IL_0064: ldc.i4.3 + IL_0065: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_006a: ldc.i4.1 + IL_006b: stloc.0 + IL_006c: br.s IL_007b + + IL_006e: ldarg.0 + IL_006f: ldc.i4.m1 + IL_0070: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_0075: nop + IL_0076: nop + IL_0077: ldc.i4.0 + IL_0078: stloc.0 + IL_0079: br.s IL_007b + + IL_007b: ldloc.0 + IL_007c: ret + } // end of method 'd__3e'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__3e'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__3e'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__3e'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__3e'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__3e'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__3e'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__3e'::System.Collections.IEnumerator.Current + } // end of class 'd__3e' + + .class auto ansi sealed nested private beforefieldinit 'd__41' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__41'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__41'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 161 (0xa1) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0027, + IL_0029, + IL_0023, + IL_0029, + IL_0025) + IL_0021: br.s IL_0029 + + IL_0023: br.s IL_004d + + IL_0025: br.s IL_0081 + + IL_0027: br.s IL_002b + + IL_0029: br.s IL_0091 + + IL_002b: ldarg.0 + IL_002c: ldc.i4.m1 + IL_002d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0032: nop + IL_0033: nop + IL_0034: ldarg.0 + IL_0035: ldc.i4.1 + IL_0036: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_003b: ldarg.0 + IL_003c: ldc.i4.0 + IL_003d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>2__current' + IL_0042: ldarg.0 + IL_0043: ldc.i4.2 + IL_0044: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0049: ldc.i4.1 + IL_004a: stloc.0 + IL_004b: leave.s IL_009e + + IL_004d: ldarg.0 + IL_004e: ldc.i4.1 + IL_004f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + .try + { + IL_0054: nop + IL_0055: ldstr "In Try" + IL_005a: call void [mscorlib]System.Console::WriteLine(string) + IL_005f: nop + IL_0060: nop + IL_0061: leave.s IL_006e + + } // end .try + catch [mscorlib]System.Object + { + IL_0063: pop + IL_0064: nop + IL_0065: ldarg.0 + IL_0066: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::System.IDisposable.Dispose() + IL_006b: nop + IL_006c: leave.s IL_0091 + + } // end handler + IL_006e: nop + IL_006f: ldarg.0 + IL_0070: ldc.i4.1 + IL_0071: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>2__current' + IL_0076: ldarg.0 + IL_0077: ldc.i4.4 + IL_0078: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_007d: ldc.i4.1 + IL_007e: stloc.0 + IL_007f: leave.s IL_009e + + IL_0081: ldarg.0 + IL_0082: ldc.i4.1 + IL_0083: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0088: nop + IL_0089: ldarg.0 + IL_008a: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>m__Finally42'() + IL_008f: nop + IL_0090: nop + IL_0091: nop + IL_0092: ldc.i4.0 + IL_0093: stloc.0 + IL_0094: leave.s IL_009e + + } // end .try + fault + { + IL_0096: ldarg.0 + IL_0097: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::System.IDisposable.Dispose() + IL_009c: nop + IL_009d: endfinally + } // end handler + IL_009e: nop + IL_009f: ldloc.0 + IL_00a0: ret + } // end of method 'd__41'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__41'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__41'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 53 (0x35) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0025, + IL_0021, + IL_0027, + IL_0023) + IL_001f: br.s IL_0027 + + IL_0021: br.s IL_0029 + + IL_0023: br.s IL_0029 + + IL_0025: br.s IL_0029 + + IL_0027: br.s IL_0034 + + .try + { + IL_0029: leave.s IL_0033 + + } // end .try + finally + { + IL_002b: ldarg.0 + IL_002c: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>m__Finally42'() + IL_0031: nop + IL_0032: endfinally + } // end handler + IL_0033: nop + IL_0034: ret + } // end of method 'd__41'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__41'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__41'::.ctor + + .method private hidebysig instance void + '<>m__Finally42'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.m1 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0008: ldstr "Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__41'::'<>m__Finally42' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__41'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__41'::System.Collections.IEnumerator.Current + } // end of class 'd__41' + + .class auto ansi sealed nested private beforefieldinit 'd__45' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__45'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__45'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 172 (0xac) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0027, + IL_0029, + IL_0023, + IL_0029, + IL_0025) + IL_0021: br.s IL_0029 + + IL_0023: br.s IL_004d + + IL_0025: br.s IL_008c + + IL_0027: br.s IL_002b + + IL_0029: br.s IL_009c + + IL_002b: ldarg.0 + IL_002c: ldc.i4.m1 + IL_002d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0032: nop + IL_0033: nop + IL_0034: ldarg.0 + IL_0035: ldc.i4.1 + IL_0036: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_003b: ldarg.0 + IL_003c: ldc.i4.0 + IL_003d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>2__current' + IL_0042: ldarg.0 + IL_0043: ldc.i4.2 + IL_0044: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0049: ldc.i4.1 + IL_004a: stloc.0 + IL_004b: leave.s IL_00a9 + + IL_004d: ldarg.0 + IL_004e: ldc.i4.1 + IL_004f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + .try + { + IL_0054: nop + IL_0055: ldstr "In Try" + IL_005a: call void [mscorlib]System.Console::WriteLine(string) + IL_005f: nop + IL_0060: ldarg.0 + IL_0061: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::System.IDisposable.Dispose() + IL_0066: nop + IL_0067: leave.s IL_009c + + } // end .try + catch [mscorlib]System.Object + { + IL_0069: pop + IL_006a: nop + IL_006b: ldstr "Catch" + IL_0070: call void [mscorlib]System.Console::WriteLine(string) + IL_0075: nop + IL_0076: nop + IL_0077: leave.s IL_0079 + + } // end handler + IL_0079: nop + IL_007a: ldarg.0 + IL_007b: ldc.i4.1 + IL_007c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>2__current' + IL_0081: ldarg.0 + IL_0082: ldc.i4.4 + IL_0083: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0088: ldc.i4.1 + IL_0089: stloc.0 + IL_008a: leave.s IL_00a9 + + IL_008c: ldarg.0 + IL_008d: ldc.i4.1 + IL_008e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0093: nop + IL_0094: ldarg.0 + IL_0095: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>m__Finally46'() + IL_009a: nop + IL_009b: nop + IL_009c: nop + IL_009d: ldc.i4.0 + IL_009e: stloc.0 + IL_009f: leave.s IL_00a9 + + } // end .try + fault + { + IL_00a1: ldarg.0 + IL_00a2: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::System.IDisposable.Dispose() + IL_00a7: nop + IL_00a8: endfinally + } // end handler + IL_00a9: nop + IL_00aa: ldloc.0 + IL_00ab: ret + } // end of method 'd__45'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__45'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__45'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 53 (0x35) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0025, + IL_0021, + IL_0027, + IL_0023) + IL_001f: br.s IL_0027 + + IL_0021: br.s IL_0029 + + IL_0023: br.s IL_0029 + + IL_0025: br.s IL_0029 + + IL_0027: br.s IL_0034 + + .try + { + IL_0029: leave.s IL_0033 + + } // end .try + finally + { + IL_002b: ldarg.0 + IL_002c: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>m__Finally46'() + IL_0031: nop + IL_0032: endfinally + } // end handler + IL_0033: nop + IL_0034: ret + } // end of method 'd__45'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__45'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__45'::.ctor + + .method private hidebysig instance void + '<>m__Finally46'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.m1 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0008: ldstr "Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__45'::'<>m__Finally46' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__45'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__45'::System.Collections.IEnumerator.Current + } // end of class 'd__45' + + .class auto ansi sealed nested private beforefieldinit 'd__49' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public bool b + .field public bool '<>3__b' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 70 (0x46) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: ldarg.0 + IL_0036: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>3__b' + IL_003b: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::b + IL_0040: ldloc.0 + IL_0041: stloc.1 + IL_0042: br.s IL_0044 + + IL_0044: ldloc.1 + IL_0045: ret + } // end of method 'd__49'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__49'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 190 (0xbe) + .maxstack 2 + .locals init (bool V_0, + int32 V_1, + bool V_2) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0027, + IL_0029, + IL_0023, + IL_0029, + IL_0025) + IL_0021: br.s IL_0029 + + IL_0023: br.s IL_0050 + + IL_0025: br.s IL_009e + + IL_0027: br.s IL_002e + + IL_0029: br IL_00ae + + IL_002e: ldarg.0 + IL_002f: ldc.i4.m1 + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0035: nop + IL_0036: nop + IL_0037: ldarg.0 + IL_0038: ldc.i4.1 + IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_003e: ldarg.0 + IL_003f: ldc.i4.0 + IL_0040: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>2__current' + IL_0045: ldarg.0 + IL_0046: ldc.i4.2 + IL_0047: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_004c: ldc.i4.1 + IL_004d: stloc.0 + IL_004e: leave.s IL_00bb + + IL_0050: ldarg.0 + IL_0051: ldc.i4.1 + IL_0052: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + .try + { + IL_0057: nop + IL_0058: ldstr "In Try" + IL_005d: call void [mscorlib]System.Console::WriteLine(string) + IL_0062: nop + IL_0063: ldarg.0 + IL_0064: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::b + IL_0069: ldc.i4.0 + IL_006a: ceq + IL_006c: stloc.2 + IL_006d: ldloc.2 + IL_006e: brtrue.s IL_007a + + IL_0070: nop + IL_0071: ldarg.0 + IL_0072: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::System.IDisposable.Dispose() + IL_0077: nop + IL_0078: leave.s IL_00ae + + IL_007a: nop + IL_007b: leave.s IL_008b + + } // end .try + finally + { + IL_007d: nop + IL_007e: ldstr "Inner Finally" + IL_0083: call void [mscorlib]System.Console::WriteLine(string) + IL_0088: nop + IL_0089: nop + IL_008a: endfinally + } // end handler + IL_008b: nop + IL_008c: ldarg.0 + IL_008d: ldc.i4.1 + IL_008e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>2__current' + IL_0093: ldarg.0 + IL_0094: ldc.i4.4 + IL_0095: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_009a: ldc.i4.1 + IL_009b: stloc.0 + IL_009c: leave.s IL_00bb + + IL_009e: ldarg.0 + IL_009f: ldc.i4.1 + IL_00a0: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_00a5: nop + IL_00a6: ldarg.0 + IL_00a7: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>m__Finally4a'() + IL_00ac: nop + IL_00ad: nop + IL_00ae: nop + IL_00af: ldc.i4.0 + IL_00b0: stloc.0 + IL_00b1: leave.s IL_00bb + + } // end .try + fault + { + IL_00b3: ldarg.0 + IL_00b4: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::System.IDisposable.Dispose() + IL_00b9: nop + IL_00ba: endfinally + } // end handler + IL_00bb: nop + IL_00bc: ldloc.0 + IL_00bd: ret + } // end of method 'd__49'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__49'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__49'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 53 (0x35) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0025, + IL_0021, + IL_0027, + IL_0023) + IL_001f: br.s IL_0027 + + IL_0021: br.s IL_0029 + + IL_0023: br.s IL_0029 + + IL_0025: br.s IL_0029 + + IL_0027: br.s IL_0034 + + .try + { + IL_0029: leave.s IL_0033 + + } // end .try + finally + { + IL_002b: ldarg.0 + IL_002c: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>m__Finally4a'() + IL_0031: nop + IL_0032: endfinally + } // end handler + IL_0033: nop + IL_0034: ret + } // end of method 'd__49'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__49'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__49'::.ctor + + .method private hidebysig instance void + '<>m__Finally4a'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.m1 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0008: ldstr "Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__49'::'<>m__Finally4a' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__49'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__49'::System.Collections.IEnumerator.Current + } // end of class 'd__49' + + .class auto ansi sealed nested private beforefieldinit 'd__4d' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__4d'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__4d'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 33 (0x21) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: ldc.i4.0 + IL_0009: beq.s IL_000d + + IL_000b: br.s IL_000f + + IL_000d: br.s IL_0011 + + IL_000f: br.s IL_001b + + IL_0011: ldarg.0 + IL_0012: ldc.i4.m1 + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>1__state' + IL_0018: nop + IL_0019: br.s IL_001b + + IL_001b: ldc.i4.0 + IL_001c: stloc.0 + IL_001d: br.s IL_001f + + IL_001f: ldloc.0 + IL_0020: ret + } // end of method 'd__4d'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__4d'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__4d'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__4d'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__4d'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__4d'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__4d'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__4d'::System.Collections.IEnumerator.Current + } // end of class 'd__4d' + + .class auto ansi sealed nested private beforefieldinit 'd__50' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__50'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__50'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 95 (0x5f) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001d, + IL_001f, + IL_001b) + IL_0019: br.s IL_001f + + IL_001b: br.s IL_0043 + + IL_001d: br.s IL_0021 + + IL_001f: br.s IL_0050 + + IL_0021: ldarg.0 + IL_0022: ldc.i4.m1 + IL_0023: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0028: nop + IL_0029: nop + IL_002a: ldarg.0 + IL_002b: ldc.i4.1 + IL_002c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0031: ldarg.0 + IL_0032: ldc.i4.0 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>2__current' + IL_0038: ldarg.0 + IL_0039: ldc.i4.2 + IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_003f: ldc.i4.1 + IL_0040: stloc.0 + IL_0041: leave.s IL_005c + + IL_0043: ldarg.0 + IL_0044: ldc.i4.1 + IL_0045: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_004a: newobj instance void [mscorlib]System.NotImplementedException::.ctor() + IL_004f: throw + + IL_0050: ldc.i4.0 + IL_0051: stloc.0 + IL_0052: leave.s IL_005c + + } // end .try + fault + { + IL_0054: ldarg.0 + IL_0055: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::System.IDisposable.Dispose() + IL_005a: nop + IL_005b: endfinally + } // end handler + IL_005c: nop + IL_005d: ldloc.0 + IL_005e: ret + } // end of method 'd__50'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__50'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__50'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 43 (0x2b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_001b, + IL_0019) + IL_0017: br.s IL_001d + + IL_0019: br.s IL_001f + + IL_001b: br.s IL_001f + + IL_001d: br.s IL_002a + + .try + { + IL_001f: leave.s IL_0029 + + } // end .try + finally + { + IL_0021: ldarg.0 + IL_0022: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>m__Finally51'() + IL_0027: nop + IL_0028: endfinally + } // end handler + IL_0029: nop + IL_002a: ret + } // end of method 'd__50'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__50'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__50'::.ctor + + .method private hidebysig instance void + '<>m__Finally51'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.m1 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0008: ldstr "Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__50'::'<>m__Finally51' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__50'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__50'::System.Collections.IEnumerator.Current + } // end of class 'd__50' + + .class auto ansi sealed nested private beforefieldinit 'd__54' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__54'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__54'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 104 (0x68) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: ldc.i4.0 + IL_0009: beq.s IL_0013 + + IL_000b: ldloc.1 + IL_000c: ldc.i4.3 + IL_000d: beq.s IL_0011 + + IL_000f: br.s IL_0015 + + IL_0011: br.s IL_0041 + + IL_0013: br.s IL_0017 + + IL_0015: br.s IL_0059 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.m1 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_001e: nop + IL_001f: nop + IL_0020: ldarg.0 + IL_0021: ldc.i4.1 + IL_0022: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0027: nop + IL_0028: ldarg.0 + IL_0029: ldc.i4.2 + IL_002a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_002f: ldarg.0 + IL_0030: ldc.i4.0 + IL_0031: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>2__current' + IL_0036: ldarg.0 + IL_0037: ldc.i4.3 + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_003d: ldc.i4.1 + IL_003e: stloc.0 + IL_003f: leave.s IL_0065 + + IL_0041: ldarg.0 + IL_0042: ldc.i4.2 + IL_0043: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0048: nop + IL_0049: ldarg.0 + IL_004a: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>m__Finally56'() + IL_004f: nop + IL_0050: nop + IL_0051: ldarg.0 + IL_0052: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>m__Finally55'() + IL_0057: nop + IL_0058: nop + IL_0059: ldc.i4.0 + IL_005a: stloc.0 + IL_005b: leave.s IL_0065 + + } // end .try + fault + { + IL_005d: ldarg.0 + IL_005e: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::System.IDisposable.Dispose() + IL_0063: nop + IL_0064: endfinally + } // end handler + IL_0065: nop + IL_0066: ldloc.0 + IL_0067: ret + } // end of method 'd__54'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__54'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__54'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 91 (0x5b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0021, + IL_001f, + IL_001d) + IL_001b: br.s IL_0023 + + IL_001d: br.s IL_0025 + + IL_001f: br.s IL_0025 + + IL_0021: br.s IL_0025 + + IL_0023: br.s IL_005a + + .try + { + IL_0025: ldarg.0 + IL_0026: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_002b: stloc.0 + IL_002c: ldloc.0 + IL_002d: ldc.i4.2 + IL_002e: sub + IL_002f: switch ( + IL_0040, + IL_003e) + IL_003c: br.s IL_0042 + + IL_003e: br.s IL_0044 + + IL_0040: br.s IL_0044 + + IL_0042: br.s IL_004f + + .try + { + IL_0044: leave.s IL_004e + + } // end .try + finally + { + IL_0046: ldarg.0 + IL_0047: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>m__Finally56'() + IL_004c: nop + IL_004d: endfinally + } // end handler + IL_004e: nop + IL_004f: leave.s IL_0059 + + } // end .try + finally + { + IL_0051: ldarg.0 + IL_0052: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>m__Finally55'() + IL_0057: nop + IL_0058: endfinally + } // end handler + IL_0059: nop + IL_005a: ret + } // end of method 'd__54'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__54'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__54'::.ctor + + .method private hidebysig instance void + '<>m__Finally55'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.m1 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0008: ldstr "Outer Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__54'::'<>m__Finally55' + + .method private hidebysig instance void + '<>m__Finally56'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.1 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0008: ldstr "Inner Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__54'::'<>m__Finally56' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__54'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__54'::System.Collections.IEnumerator.Current + } // end of class 'd__54' + + .class auto ansi sealed nested private beforefieldinit 'd__59`1'<([mscorlib]System.IDisposable) T> + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public !T a + .field public !T '<>3__a' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 70 (0x46) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: ldarg.0 + IL_0036: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>3__a' + IL_003b: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::a + IL_0040: ldloc.0 + IL_0041: stloc.1 + IL_0042: br.s IL_0044 + + IL_0044: ldloc.1 + IL_0045: ret + } // end of method 'd__59`1'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__59`1'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 160 (0xa0) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0029, + IL_0023, + IL_002b, + IL_0025, + IL_0027) + IL_0021: br.s IL_002b + + IL_0023: br.s IL_0047 + + IL_0025: br.s IL_0068 + + IL_0027: br.s IL_0089 + + IL_0029: br.s IL_002d + + IL_002b: br.s IL_0091 + + IL_002d: ldarg.0 + IL_002e: ldc.i4.m1 + IL_002f: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0034: nop + IL_0035: ldarg.0 + IL_0036: ldc.i4.1 + IL_0037: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>2__current' + IL_003c: ldarg.0 + IL_003d: ldc.i4.1 + IL_003e: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0043: ldc.i4.1 + IL_0044: stloc.0 + IL_0045: leave.s IL_009d + + IL_0047: ldarg.0 + IL_0048: ldc.i4.m1 + IL_0049: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_004e: nop + IL_004f: ldarg.0 + IL_0050: ldc.i4.2 + IL_0051: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0056: ldarg.0 + IL_0057: ldc.i4.2 + IL_0058: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>2__current' + IL_005d: ldarg.0 + IL_005e: ldc.i4.3 + IL_005f: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0064: ldc.i4.1 + IL_0065: stloc.0 + IL_0066: leave.s IL_009d + + IL_0068: ldarg.0 + IL_0069: ldc.i4.2 + IL_006a: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_006f: nop + IL_0070: ldarg.0 + IL_0071: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>m__Finally5a'() + IL_0076: nop + IL_0077: ldarg.0 + IL_0078: ldc.i4.3 + IL_0079: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>2__current' + IL_007e: ldarg.0 + IL_007f: ldc.i4.4 + IL_0080: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0085: ldc.i4.1 + IL_0086: stloc.0 + IL_0087: leave.s IL_009d + + IL_0089: ldarg.0 + IL_008a: ldc.i4.m1 + IL_008b: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0090: nop + IL_0091: ldc.i4.0 + IL_0092: stloc.0 + IL_0093: leave.s IL_009d + + } // end .try + fault + { + IL_0095: ldarg.0 + IL_0096: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::System.IDisposable.Dispose() + IL_009b: nop + IL_009c: endfinally + } // end handler + IL_009d: nop + IL_009e: ldloc.0 + IL_009f: ret + } // end of method 'd__59`1'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__59`1'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__59`1'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 43 (0x2b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.2 + IL_0009: sub + IL_000a: switch ( + IL_001b, + IL_0019) + IL_0017: br.s IL_001d + + IL_0019: br.s IL_001f + + IL_001b: br.s IL_001f + + IL_001d: br.s IL_002a + + .try + { + IL_001f: leave.s IL_0029 + + } // end .try + finally + { + IL_0021: ldarg.0 + IL_0022: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>m__Finally5a'() + IL_0027: nop + IL_0028: endfinally + } // end handler + IL_0029: nop + IL_002a: ret + } // end of method 'd__59`1'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__59`1'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__59`1'::.ctor + + .method private hidebysig instance void + '<>m__Finally5a'() cil managed + { + // Code size 45 (0x2d) + .maxstack 2 + .locals init (!T V_0) + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldc.i4.m1 + IL_0003: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0008: ldarg.0 + IL_0009: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::a + IL_000e: stloc.0 + IL_000f: ldloca.s V_0 + IL_0011: constrained. !T + IL_0017: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001c: nop + IL_001d: ldloca.s V_0 + IL_001f: constrained. !T + IL_0025: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_002a: nop + IL_002b: nop + IL_002c: ret + } // end of method 'd__59`1'::'<>m__Finally5a' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__59`1'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__59`1'::System.Collections.IEnumerator.Current + } // end of class 'd__59`1' + + .class auto ansi sealed nested private beforefieldinit 'd__5d`1'<.ctor T> + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private !T '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public !T '5__5e' + .field public int32 '5__5f' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 58 (0x3a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0034 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: stloc.1 + IL_0036: br.s IL_0038 + + IL_0038: ldloc.1 + IL_0039: ret + } // end of method 'd__5d`1'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__5d`1'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 151 (0x97) + .maxstack 3 + .locals init (bool V_0, + int32 V_1, + !T V_2, + bool V_3) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0019, + IL_0017) + IL_0015: br.s IL_001b + + IL_0017: br.s IL_006d + + IL_0019: br.s IL_001d + + IL_001b: br.s IL_0091 + + IL_001d: ldarg.0 + IL_001e: ldc.i4.m1 + IL_001f: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_0024: nop + IL_0025: ldarg.0 + IL_0026: ldloca.s V_2 + IL_0028: initobj !T + IL_002e: ldloc.2 + IL_002f: box !T + IL_0034: brfalse.s IL_0041 + + IL_0036: ldloca.s V_2 + IL_0038: initobj !T + IL_003e: ldloc.2 + IL_003f: br.s IL_0046 + + IL_0041: call !!0 [mscorlib]System.Activator::CreateInstance() + IL_0046: nop + IL_0047: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5e' + IL_004c: ldarg.0 + IL_004d: ldc.i4.0 + IL_004e: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5f' + IL_0053: br.s IL_0083 + + IL_0055: nop + IL_0056: ldarg.0 + IL_0057: ldarg.0 + IL_0058: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5e' + IL_005d: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>2__current' + IL_0062: ldarg.0 + IL_0063: ldc.i4.1 + IL_0064: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_0069: ldc.i4.1 + IL_006a: stloc.0 + IL_006b: br.s IL_0095 + + IL_006d: ldarg.0 + IL_006e: ldc.i4.m1 + IL_006f: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_0074: nop + IL_0075: ldarg.0 + IL_0076: dup + IL_0077: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5f' + IL_007c: ldc.i4.1 + IL_007d: add + IL_007e: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5f' + IL_0083: ldarg.0 + IL_0084: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5f' + IL_0089: ldc.i4.3 + IL_008a: clt + IL_008c: stloc.3 + IL_008d: ldloc.3 + IL_008e: brtrue.s IL_0055 + + IL_0090: nop + IL_0091: ldc.i4.0 + IL_0092: stloc.0 + IL_0093: br.s IL_0095 + + IL_0095: ldloc.0 + IL_0096: ret + } // end of method 'd__5d`1'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance !T 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (!T V_0) + IL_0000: ldarg.0 + IL_0001: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__5d`1'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__5d`1'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__5d`1'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>2__current' + IL_0006: box !T + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__5d`1'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__5d`1'::.ctor + + .property instance !T 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance !T ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__5d`1'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__5d`1'::System.Collections.IEnumerator.Current + } // end of class 'd__5d`1' + + .field private int32 fieldOnThis + .method public hidebysig specialname static + class [mscorlib]System.Collections.Generic.IEnumerable`1 + get_YieldChars() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::get_YieldChars + + .method assembly hidebysig static void + Print(string name, + class [mscorlib]System.Collections.Generic.IEnumerator`1 enumerator) cil managed + { + // Code size 61 (0x3d) + .maxstack 3 + .locals init (bool V_0) + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldstr ": Test start" + IL_0007: call string [mscorlib]System.String::Concat(string, + string) + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: nop + IL_0012: br.s IL_0032 + + IL_0014: nop + IL_0015: ldarg.0 + IL_0016: ldstr ": " + IL_001b: ldarg.1 + IL_001c: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_0021: box !!T + IL_0026: call string [mscorlib]System.String::Concat(object, + object, + object) + IL_002b: call void [mscorlib]System.Console::WriteLine(string) + IL_0030: nop + IL_0031: nop + IL_0032: ldarg.1 + IL_0033: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_0038: stloc.0 + IL_0039: ldloc.0 + IL_003a: brtrue.s IL_0014 + + IL_003c: ret + } // end of method YieldReturnPrettyTest::Print + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + SimpleYieldReturn() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::SimpleYieldReturn + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerator`1 + SimpleYieldReturnEnumerator() cil managed + { + // Code size 13 (0xd) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1) + IL_0000: ldc.i4.0 + IL_0001: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::.ctor(int32) + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: stloc.1 + IL_0009: br.s IL_000b + + IL_000b: ldloc.1 + IL_000c: ret + } // end of method YieldReturnPrettyTest::SimpleYieldReturnEnumerator + + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnParameters(int32 p) cil managed + { + // Code size 28 (0x1c) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>4__this' + IL_000f: ldloc.0 + IL_0010: ldarg.1 + IL_0011: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>3__p' + IL_0016: ldloc.0 + IL_0017: stloc.1 + IL_0018: br.s IL_001a + + IL_001a: ldloc.1 + IL_001b: ret + } // end of method YieldReturnPrettyTest::YieldReturnParameters + + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + YieldReturnParametersEnumerator(int32 p) cil managed + { + // Code size 27 (0x1b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1) + IL_0000: ldc.i4.0 + IL_0001: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::.ctor(int32) + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldarg.0 + IL_0009: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>4__this' + IL_000e: ldloc.0 + IL_000f: ldarg.1 + IL_0010: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::p + IL_0015: ldloc.0 + IL_0016: stloc.1 + IL_0017: br.s IL_0019 + + IL_0019: ldloc.1 + IL_001a: ret + } // end of method YieldReturnPrettyTest::YieldReturnParametersEnumerator + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnInLoop() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::YieldReturnInLoop + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithTryFinally() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithNestedTryFinally(bool breakInMiddle) cil managed + { + // Code size 21 (0x15) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>3__breakInMiddle' + IL_000f: ldloc.0 + IL_0010: stloc.1 + IL_0011: br.s IL_0013 + + IL_0013: ldloc.1 + IL_0014: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithNestedTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithTwoNonNestedFinallyBlocks(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + // Code size 21 (0x15) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>3__input' + IL_000f: ldloc.0 + IL_0010: stloc.1 + IL_0011: br.s IL_0013 + + IL_0013: ldloc.1 + IL_0014: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithTwoNonNestedFinallyBlocks + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1> + YieldReturnWithAnonymousMethods1(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + // Code size 21 (0x15) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1> V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>3__input' + IL_000f: ldloc.0 + IL_0010: stloc.1 + IL_0011: br.s IL_0013 + + IL_0013: ldloc.1 + IL_0014: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithAnonymousMethods1 + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1> + YieldReturnWithAnonymousMethods2(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + // Code size 21 (0x15) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1> V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>3__input' + IL_000f: ldloc.0 + IL_0010: stloc.1 + IL_0011: br.s IL_0013 + + IL_0013: ldloc.1 + IL_0014: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithAnonymousMethods2 + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + GetEvenNumbers(int32 n) cil managed + { + // Code size 21 (0x15) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>3__n' + IL_000f: ldloc.0 + IL_0010: stloc.1 + IL_0011: br.s IL_0013 + + IL_0013: ldloc.1 + IL_0014: ret + } // end of method YieldReturnPrettyTest::GetEvenNumbers + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + ExceptionHandling() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::ExceptionHandling + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInCatch() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::YieldBreakInCatch + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInCatchInTryFinally() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::YieldBreakInCatchInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInTryCatchInTryFinally() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::YieldBreakInTryCatchInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInTryFinallyInTryFinally(bool b) cil managed + { + // Code size 21 (0x15) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>3__b' + IL_000f: ldloc.0 + IL_0010: stloc.1 + IL_0011: br.s IL_0013 + + IL_0013: ldloc.1 + IL_0014: ret + } // end of method YieldReturnPrettyTest::YieldBreakInTryFinallyInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakOnly() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::YieldBreakOnly + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + UnconditionalThrowInTryFinally() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::UnconditionalThrowInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + NestedTryFinallyStartingOnSamePosition() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::NestedTryFinallyStartingOnSamePosition + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + LocalInFinally<([mscorlib]System.IDisposable) T>(!!T a) cil managed + { + // Code size 21 (0x15) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>3__a' + IL_000f: ldloc.0 + IL_0010: stloc.1 + IL_0011: br.s IL_0013 + + IL_0013: ldloc.1 + IL_0014: ret + } // end of method YieldReturnPrettyTest::LocalInFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + GenericYield<.ctor T>() cil managed + { + // Code size 14 (0xe) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ret + } // end of method YieldReturnPrettyTest::GenericYield + + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ret + } // end of method YieldReturnPrettyTest::.ctor + + .property class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldChars() + { + .get class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::get_YieldChars() + } // end of property YieldReturnPrettyTest::YieldChars +} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest + +.class private sequential ansi sealed beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + extends [mscorlib]System.ValueType +{ + .class auto ansi sealed nested private beforefieldinit 'd__0' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn '<>4__this' + .field public valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn '<>3__<>4__this' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 82 (0x52) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0' V_0, + class [mscorlib]System.Collections.Generic.IEnumerator`1 V_1, + bool V_2) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_001c + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: ceq + IL_0017: ldc.i4.0 + IL_0018: ceq + IL_001a: br.s IL_001d + + IL_001c: ldc.i4.1 + IL_001d: nop + IL_001e: stloc.2 + IL_001f: ldloc.2 + IL_0020: brtrue.s IL_002d + + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: stloc.0 + IL_002b: br.s IL_0040 + + IL_002d: ldc.i4.0 + IL_002e: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::.ctor(int32) + IL_0033: stloc.0 + IL_0034: ldloc.0 + IL_0035: ldarg.0 + IL_0036: ldfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>4__this' + IL_003b: stfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>4__this' + IL_0040: ldloc.0 + IL_0041: ldarg.0 + IL_0042: ldfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>3__<>4__this' + IL_0047: stfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>4__this' + IL_004c: ldloc.0 + IL_004d: stloc.1 + IL_004e: br.s IL_0050 + + IL_0050: ldloc.1 + IL_0051: ret + } // end of method 'd__0'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 11 (0xb) + .maxstack 1 + .locals init (class [mscorlib]System.Collections.IEnumerator V_0) + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__0'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 142 (0x8e) + .maxstack 4 + .locals init (bool V_0, + int32 V_1, + int32 V_2) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001f, + IL_001b, + IL_001d) + IL_0019: br.s IL_0021 + + IL_001b: br.s IL_0052 + + IL_001d: br.s IL_0080 + + IL_001f: br.s IL_0023 + + IL_0021: br.s IL_0088 + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_002a: nop + IL_002b: ldarg.0 + IL_002c: ldarg.0 + IL_002d: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>4__this' + IL_0032: dup + IL_0033: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_0038: dup + IL_0039: stloc.2 + IL_003a: ldc.i4.1 + IL_003b: add + IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_0041: ldloc.2 + IL_0042: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>2__current' + IL_0047: ldarg.0 + IL_0048: ldc.i4.1 + IL_0049: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_004e: ldc.i4.1 + IL_004f: stloc.0 + IL_0050: br.s IL_008c + + IL_0052: ldarg.0 + IL_0053: ldc.i4.m1 + IL_0054: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_0059: ldarg.0 + IL_005a: ldarg.0 + IL_005b: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>4__this' + IL_0060: dup + IL_0061: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_0066: dup + IL_0067: stloc.2 + IL_0068: ldc.i4.1 + IL_0069: add + IL_006a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_006f: ldloc.2 + IL_0070: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>2__current' + IL_0075: ldarg.0 + IL_0076: ldc.i4.2 + IL_0077: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_007c: ldc.i4.1 + IL_007d: stloc.0 + IL_007e: br.s IL_008c + + IL_0080: ldarg.0 + IL_0081: ldc.i4.m1 + IL_0082: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_0087: nop + IL_0088: ldc.i4.0 + IL_0089: stloc.0 + IL_008a: br.s IL_008c + + IL_008c: ldloc.0 + IL_008d: ret + } // end of method 'd__0'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 11 (0xb) + .maxstack 1 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>2__current' + IL_0006: stloc.0 + IL_0007: br.s IL_0009 + + IL_0009: ldloc.0 + IL_000a: ret + } // end of method 'd__0'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__0'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 2 (0x2) + .maxstack 8 + IL_0000: nop + IL_0001: ret + } // end of method 'd__0'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 16 (0x10) + .maxstack 1 + .locals init (object V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: stloc.0 + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ret + } // end of method 'd__0'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__0'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__0'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__0'::System.Collections.IEnumerator.Current + } // end of class 'd__0' + + .field private int32 val + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerable`1 + Count() cil managed + { + // Code size 26 (0x1a) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: ldobj ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + IL_000f: stfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>3__<>4__this' + IL_0014: ldloc.0 + IL_0015: stloc.1 + IL_0016: br.s IL_0018 + + IL_0018: ldloc.1 + IL_0019: ret + } // end of method StructWithYieldReturn::Count + +} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + + +// ============================================================= + +// *********** DISASSEMBLY COMPLETE *********************** diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.opt.il b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.opt.il new file mode 100644 index 000000000..a39d36a7f --- /dev/null +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.opt.il @@ -0,0 +1,5897 @@ + + + + +// Metadata version: v4.0.30319 +.assembly extern mscorlib +{ + .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. + .ver 4:0:0:0 +} +.assembly YieldReturn.opt +{ + .custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx + 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows. + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) + .permissionset reqmin + = {[mscorlib]System.Security.Permissions.SecurityPermissionAttribute = {property bool 'SkipVerification' = bool(true)}} + .hash algorithm 0x00008004 + .ver 0:0:0:0 +} +.module YieldReturn.opt.dll +.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) +.imagebase 0x10000000 +.file alignment 0x00000200 +.stackreserve 0x00100000 +.subsystem 0x0003 // WINDOWS_CUI +.corflags 0x00000001 // ILONLY + + +// =============== CLASS MEMBERS DECLARATION =================== + +.class public auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest + extends [mscorlib]System.Object +{ + .class auto ansi sealed nested private beforefieldinit 'd__0' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private char '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__0'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__0'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 112 (0x70) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001f, + IL_0037, + IL_004f, + IL_0067) + IL_001d: br.s IL_006e + + IL_001f: ldarg.0 + IL_0020: ldc.i4.m1 + IL_0021: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0026: ldarg.0 + IL_0027: ldc.i4.s 97 + IL_0029: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>2__current' + IL_002e: ldarg.0 + IL_002f: ldc.i4.1 + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0035: ldc.i4.1 + IL_0036: ret + + IL_0037: ldarg.0 + IL_0038: ldc.i4.m1 + IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_003e: ldarg.0 + IL_003f: ldc.i4.s 98 + IL_0041: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>2__current' + IL_0046: ldarg.0 + IL_0047: ldc.i4.2 + IL_0048: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_004d: ldc.i4.1 + IL_004e: ret + + IL_004f: ldarg.0 + IL_0050: ldc.i4.m1 + IL_0051: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0056: ldarg.0 + IL_0057: ldc.i4.s 99 + IL_0059: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>2__current' + IL_005e: ldarg.0 + IL_005f: ldc.i4.3 + IL_0060: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_0065: ldc.i4.1 + IL_0066: ret + + IL_0067: ldarg.0 + IL_0068: ldc.i4.m1 + IL_0069: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_006e: ldc.i4.0 + IL_006f: ret + } // end of method 'd__0'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance char 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>2__current' + IL_0006: ret + } // end of method 'd__0'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__0'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__0'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>2__current' + IL_0006: box [mscorlib]System.Char + IL_000b: ret + } // end of method 'd__0'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__0'::.ctor + + .property instance char 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__0'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__0'::System.Collections.IEnumerator.Current + } // end of class 'd__0' + + .class auto ansi sealed nested private beforefieldinit 'd__3' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private string '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__3'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__3'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 121 (0x79) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001f, + IL_003a, + IL_0055, + IL_0070) + IL_001d: br.s IL_0077 + + IL_001f: ldarg.0 + IL_0020: ldc.i4.m1 + IL_0021: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0026: ldarg.0 + IL_0027: ldstr "A" + IL_002c: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>2__current' + IL_0031: ldarg.0 + IL_0032: ldc.i4.1 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0038: ldc.i4.1 + IL_0039: ret + + IL_003a: ldarg.0 + IL_003b: ldc.i4.m1 + IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0041: ldarg.0 + IL_0042: ldstr "B" + IL_0047: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>2__current' + IL_004c: ldarg.0 + IL_004d: ldc.i4.2 + IL_004e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0053: ldc.i4.1 + IL_0054: ret + + IL_0055: ldarg.0 + IL_0056: ldc.i4.m1 + IL_0057: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_005c: ldarg.0 + IL_005d: ldstr "C" + IL_0062: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>2__current' + IL_0067: ldarg.0 + IL_0068: ldc.i4.3 + IL_0069: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_006e: ldc.i4.1 + IL_006f: ret + + IL_0070: ldarg.0 + IL_0071: ldc.i4.m1 + IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_0077: ldc.i4.0 + IL_0078: ret + } // end of method 'd__3'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>2__current' + IL_0006: ret + } // end of method 'd__3'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__3'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__3'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>2__current' + IL_0006: ret + } // end of method 'd__3'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__3'::.ctor + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__3'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__3'::System.Collections.IEnumerator.Current + } // end of class 'd__3' + + .class auto ansi sealed nested private beforefieldinit 'd__6' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private string '<>2__current' + .field private int32 '<>1__state' + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 121 (0x79) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001f, + IL_003a, + IL_0055, + IL_0070) + IL_001d: br.s IL_0077 + + IL_001f: ldarg.0 + IL_0020: ldc.i4.m1 + IL_0021: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0026: ldarg.0 + IL_0027: ldstr "A" + IL_002c: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0031: ldarg.0 + IL_0032: ldc.i4.1 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0038: ldc.i4.1 + IL_0039: ret + + IL_003a: ldarg.0 + IL_003b: ldc.i4.m1 + IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0041: ldarg.0 + IL_0042: ldstr "B" + IL_0047: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_004c: ldarg.0 + IL_004d: ldc.i4.2 + IL_004e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0053: ldc.i4.1 + IL_0054: ret + + IL_0055: ldarg.0 + IL_0056: ldc.i4.m1 + IL_0057: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_005c: ldarg.0 + IL_005d: ldstr "C" + IL_0062: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0067: ldarg.0 + IL_0068: ldc.i4.3 + IL_0069: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_006e: ldc.i4.1 + IL_006f: ret + + IL_0070: ldarg.0 + IL_0071: ldc.i4.m1 + IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0077: ldc.i4.0 + IL_0078: ret + } // end of method 'd__6'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0006: ret + } // end of method 'd__6'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__6'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__6'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0006: ret + } // end of method 'd__6'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 14 (0xe) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_000d: ret + } // end of method 'd__6'::.ctor + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__6'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__6'::System.Collections.IEnumerator.Current + } // end of class 'd__6' + + .class auto ansi sealed nested private beforefieldinit 'd__8' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest '<>4__this' + .field public int32 p + .field public int32 '<>3__p' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 67 (0x43) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0035 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>4__this' + IL_0030: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>4__this' + IL_0035: ldloc.0 + IL_0036: ldarg.0 + IL_0037: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>3__p' + IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::p + IL_0041: ldloc.0 + IL_0042: ret + } // end of method 'd__8'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__8'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 97 (0x61) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001b, + IL_0037, + IL_0058) + IL_0019: br.s IL_005f + + IL_001b: ldarg.0 + IL_001c: ldc.i4.m1 + IL_001d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0022: ldarg.0 + IL_0023: ldarg.0 + IL_0024: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::p + IL_0029: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_002e: ldarg.0 + IL_002f: ldc.i4.1 + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0035: ldc.i4.1 + IL_0036: ret + + IL_0037: ldarg.0 + IL_0038: ldc.i4.m1 + IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_003e: ldarg.0 + IL_003f: ldarg.0 + IL_0040: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>4__this' + IL_0045: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::fieldOnThis + IL_004a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_004f: ldarg.0 + IL_0050: ldc.i4.2 + IL_0051: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0056: ldc.i4.1 + IL_0057: ret + + IL_0058: ldarg.0 + IL_0059: ldc.i4.m1 + IL_005a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_005f: ldc.i4.0 + IL_0060: ret + } // end of method 'd__8'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_0006: ret + } // end of method 'd__8'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__8'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__8'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__8'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__8'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__8'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__8'::System.Collections.IEnumerator.Current + } // end of class 'd__8' + + .class auto ansi sealed nested private beforefieldinit 'd__b' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest '<>4__this' + .field public int32 p + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 97 (0x61) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001b, + IL_0037, + IL_0058) + IL_0019: br.s IL_005f + + IL_001b: ldarg.0 + IL_001c: ldc.i4.m1 + IL_001d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_0022: ldarg.0 + IL_0023: ldarg.0 + IL_0024: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::p + IL_0029: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>2__current' + IL_002e: ldarg.0 + IL_002f: ldc.i4.1 + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_0035: ldc.i4.1 + IL_0036: ret + + IL_0037: ldarg.0 + IL_0038: ldc.i4.m1 + IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_003e: ldarg.0 + IL_003f: ldarg.0 + IL_0040: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>4__this' + IL_0045: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::fieldOnThis + IL_004a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>2__current' + IL_004f: ldarg.0 + IL_0050: ldc.i4.2 + IL_0051: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_0056: ldc.i4.1 + IL_0057: ret + + IL_0058: ldarg.0 + IL_0059: ldc.i4.m1 + IL_005a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_005f: ldc.i4.0 + IL_0060: ret + } // end of method 'd__b'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>2__current' + IL_0006: ret + } // end of method 'd__b'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__b'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__b'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__b'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 14 (0xe) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>1__state' + IL_000d: ret + } // end of method 'd__b'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__b'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__b'::System.Collections.IEnumerator.Current + } // end of class 'd__b' + + .class auto ansi sealed nested private beforefieldinit 'd__d' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public int32 '5__e' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__d'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__d'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 93 (0x5d) + .maxstack 3 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_0017, + IL_003c) + IL_0015: br.s IL_005b + + IL_0017: ldarg.0 + IL_0018: ldc.i4.m1 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: ldc.i4.0 + IL_0020: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'5__e' + IL_0025: br.s IL_0051 + + IL_0027: ldarg.0 + IL_0028: ldarg.0 + IL_0029: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'5__e' + IL_002e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>2__current' + IL_0033: ldarg.0 + IL_0034: ldc.i4.1 + IL_0035: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_003a: ldc.i4.1 + IL_003b: ret + + IL_003c: ldarg.0 + IL_003d: ldc.i4.m1 + IL_003e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_0043: ldarg.0 + IL_0044: dup + IL_0045: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'5__e' + IL_004a: ldc.i4.1 + IL_004b: add + IL_004c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'5__e' + IL_0051: ldarg.0 + IL_0052: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'5__e' + IL_0057: ldc.i4.s 100 + IL_0059: blt.s IL_0027 + + IL_005b: ldc.i4.0 + IL_005c: ret + } // end of method 'd__d'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>2__current' + IL_0006: ret + } // end of method 'd__d'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__d'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__d'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__d'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__d'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__d'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__d'::System.Collections.IEnumerator.Current + } // end of class 'd__d' + + .class auto ansi sealed nested private beforefieldinit 'd__11' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__11'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__11'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 143 (0x8f) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0023, + IL_003c, + IL_0082, + IL_005c, + IL_007b) + IL_0021: br.s IL_0082 + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_002a: ldarg.0 + IL_002b: ldc.i4.0 + IL_002c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0031: ldarg.0 + IL_0032: ldc.i4.1 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0038: ldc.i4.1 + IL_0039: stloc.0 + IL_003a: leave.s IL_008d + + IL_003c: ldarg.0 + IL_003d: ldc.i4.m1 + IL_003e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0043: ldarg.0 + IL_0044: ldc.i4.2 + IL_0045: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_004a: ldarg.0 + IL_004b: ldc.i4.1 + IL_004c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0051: ldarg.0 + IL_0052: ldc.i4.3 + IL_0053: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0058: ldc.i4.1 + IL_0059: stloc.0 + IL_005a: leave.s IL_008d + + IL_005c: ldarg.0 + IL_005d: ldc.i4.2 + IL_005e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0063: ldarg.0 + IL_0064: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally12'() + IL_0069: ldarg.0 + IL_006a: ldc.i4.2 + IL_006b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0070: ldarg.0 + IL_0071: ldc.i4.4 + IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0077: ldc.i4.1 + IL_0078: stloc.0 + IL_0079: leave.s IL_008d + + IL_007b: ldarg.0 + IL_007c: ldc.i4.m1 + IL_007d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0082: ldc.i4.0 + IL_0083: stloc.0 + IL_0084: leave.s IL_008d + + } // end .try + fault + { + IL_0086: ldarg.0 + IL_0087: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::System.IDisposable.Dispose() + IL_008c: endfinally + } // end handler + IL_008d: ldloc.0 + IL_008e: ret + } // end of method 'd__11'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0006: ret + } // end of method 'd__11'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__11'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 34 (0x22) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.2 + IL_0009: sub + IL_000a: switch ( + IL_0018, + IL_0018) + IL_0017: ret + + .try + { + IL_0018: leave.s IL_0021 + + } // end .try + finally + { + IL_001a: ldarg.0 + IL_001b: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally12'() + IL_0020: endfinally + } // end handler + IL_0021: ret + } // end of method 'd__11'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__11'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__11'::.ctor + + .method private hidebysig instance void + '<>m__Finally12'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0007: ldstr "Finally!" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__11'::'<>m__Finally12' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__11'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__11'::System.Collections.IEnumerator.Current + } // end of class 'd__11' + + .class auto ansi sealed nested private beforefieldinit 'd__15' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private string '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public bool breakInMiddle + .field public bool '<>3__breakInMiddle' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>3__breakInMiddle' + IL_0030: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::breakInMiddle + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__15'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__15'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 435 (0x1b3) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0036, + IL_0060, + IL_01a6, + IL_009b, + IL_01a6, + IL_00d6, + IL_0127, + IL_015e, + IL_0195) + IL_0031: br IL_01a6 + + IL_0036: ldarg.0 + IL_0037: ldc.i4.m1 + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_003d: ldstr "Start of method - 1" + IL_0042: call void [mscorlib]System.Console::WriteLine(string) + IL_0047: ldarg.0 + IL_0048: ldstr "Start of method" + IL_004d: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0052: ldarg.0 + IL_0053: ldc.i4.1 + IL_0054: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0059: ldc.i4.1 + IL_005a: stloc.0 + IL_005b: leave IL_01b1 + + IL_0060: ldarg.0 + IL_0061: ldc.i4.m1 + IL_0062: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0067: ldstr "Start of method - 2" + IL_006c: call void [mscorlib]System.Console::WriteLine(string) + IL_0071: ldarg.0 + IL_0072: ldc.i4.2 + IL_0073: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0078: ldstr "Within outer try - 1" + IL_007d: call void [mscorlib]System.Console::WriteLine(string) + IL_0082: ldarg.0 + IL_0083: ldstr "Within outer try" + IL_0088: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_008d: ldarg.0 + IL_008e: ldc.i4.3 + IL_008f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0094: ldc.i4.1 + IL_0095: stloc.0 + IL_0096: leave IL_01b1 + + IL_009b: ldarg.0 + IL_009c: ldc.i4.2 + IL_009d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00a2: ldstr "Within outer try - 2" + IL_00a7: call void [mscorlib]System.Console::WriteLine(string) + IL_00ac: ldarg.0 + IL_00ad: ldc.i4.4 + IL_00ae: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00b3: ldstr "Within inner try - 1" + IL_00b8: call void [mscorlib]System.Console::WriteLine(string) + IL_00bd: ldarg.0 + IL_00be: ldstr "Within inner try" + IL_00c3: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_00c8: ldarg.0 + IL_00c9: ldc.i4.5 + IL_00ca: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00cf: ldc.i4.1 + IL_00d0: stloc.0 + IL_00d1: leave IL_01b1 + + IL_00d6: ldarg.0 + IL_00d7: ldc.i4.4 + IL_00d8: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00dd: ldstr "Within inner try - 2" + IL_00e2: call void [mscorlib]System.Console::WriteLine(string) + IL_00e7: ldarg.0 + IL_00e8: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::breakInMiddle + IL_00ed: brfalse.s IL_0104 + + IL_00ef: ldstr "Breaking..." + IL_00f4: call void [mscorlib]System.Console::WriteLine(string) + IL_00f9: ldarg.0 + IL_00fa: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::System.IDisposable.Dispose() + IL_00ff: leave IL_01a6 + + IL_0104: ldstr "End of inner try - 1" + IL_0109: call void [mscorlib]System.Console::WriteLine(string) + IL_010e: ldarg.0 + IL_010f: ldstr "End of inner try" + IL_0114: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0119: ldarg.0 + IL_011a: ldc.i4.6 + IL_011b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0120: ldc.i4.1 + IL_0121: stloc.0 + IL_0122: leave IL_01b1 + + IL_0127: ldarg.0 + IL_0128: ldc.i4.4 + IL_0129: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_012e: ldstr "End of inner try - 2" + IL_0133: call void [mscorlib]System.Console::WriteLine(string) + IL_0138: ldarg.0 + IL_0139: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally17'() + IL_013e: ldstr "End of outer try - 1" + IL_0143: call void [mscorlib]System.Console::WriteLine(string) + IL_0148: ldarg.0 + IL_0149: ldstr "End of outer try" + IL_014e: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0153: ldarg.0 + IL_0154: ldc.i4.7 + IL_0155: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_015a: ldc.i4.1 + IL_015b: stloc.0 + IL_015c: leave.s IL_01b1 + + IL_015e: ldarg.0 + IL_015f: ldc.i4.2 + IL_0160: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0165: ldstr "End of outer try - 2" + IL_016a: call void [mscorlib]System.Console::WriteLine(string) + IL_016f: ldarg.0 + IL_0170: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally16'() + IL_0175: ldstr "End of method - 1" + IL_017a: call void [mscorlib]System.Console::WriteLine(string) + IL_017f: ldarg.0 + IL_0180: ldstr "End of method" + IL_0185: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_018a: ldarg.0 + IL_018b: ldc.i4.8 + IL_018c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0191: ldc.i4.1 + IL_0192: stloc.0 + IL_0193: leave.s IL_01b1 + + IL_0195: ldarg.0 + IL_0196: ldc.i4.m1 + IL_0197: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_019c: ldstr "End of method - 2" + IL_01a1: call void [mscorlib]System.Console::WriteLine(string) + IL_01a6: ldc.i4.0 + IL_01a7: stloc.0 + IL_01a8: leave.s IL_01b1 + + } // end .try + fault + { + IL_01aa: ldarg.0 + IL_01ab: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::System.IDisposable.Dispose() + IL_01b0: endfinally + } // end handler + IL_01b1: ldloc.0 + IL_01b2: ret + } // end of method 'd__15'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0006: ret + } // end of method 'd__15'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__15'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 88 (0x58) + .maxstack 2 + .locals init (int32 V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.2 + IL_0009: sub + IL_000a: switch ( + IL_0028, + IL_0028, + IL_0028, + IL_0028, + IL_0028, + IL_0028) + IL_0027: ret + + .try + { + IL_0028: ldarg.0 + IL_0029: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_002e: stloc.1 + IL_002f: ldloc.1 + IL_0030: ldc.i4.4 + IL_0031: sub + IL_0032: switch ( + IL_0045, + IL_0045, + IL_0045) + IL_0043: br.s IL_004e + + .try + { + IL_0045: leave.s IL_004e + + } // end .try + finally + { + IL_0047: ldarg.0 + IL_0048: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally17'() + IL_004d: endfinally + } // end handler + IL_004e: leave.s IL_0057 + + } // end .try + finally + { + IL_0050: ldarg.0 + IL_0051: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally16'() + IL_0056: endfinally + } // end handler + IL_0057: ret + } // end of method 'd__15'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0006: ret + } // end of method 'd__15'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__15'::.ctor + + .method private hidebysig instance void + '<>m__Finally16'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0007: ldstr "Outer Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__15'::'<>m__Finally16' + + .method private hidebysig instance void + '<>m__Finally17'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.2 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0007: ldstr "Inner Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__15'::'<>m__Finally17' + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__15'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__15'::System.Collections.IEnumerator.Current + } // end of class 'd__15' + + .class auto ansi sealed nested private beforefieldinit 'd__1a' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private string '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field public string '5__1b' + .field public string '5__1c' + .field public class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap1d' + .field public class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap20' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>3__input' + IL_0030: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::input + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__1a'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__1a'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 484 (0x1e4) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0042, + IL_01d7, + IL_01d7, + IL_0095, + IL_00ce, + IL_00ee, + IL_010e, + IL_012e, + IL_014e, + IL_016c, + IL_01d7, + IL_01bc) + IL_003d: br IL_01d7 + + IL_0042: ldarg.0 + IL_0043: ldc.i4.m1 + IL_0044: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0049: ldarg.0 + IL_004a: ldarg.0 + IL_004b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::input + IL_0050: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0055: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap1d' + IL_005a: ldarg.0 + IL_005b: ldc.i4.1 + IL_005c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0061: br.s IL_00a2 + + IL_0063: ldarg.0 + IL_0064: ldarg.0 + IL_0065: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap1d' + IL_006a: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_006f: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'5__1b' + IL_0074: ldarg.0 + IL_0075: ldc.i4.2 + IL_0076: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_007b: ldarg.0 + IL_007c: ldarg.0 + IL_007d: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'5__1b' + IL_0082: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0087: ldarg.0 + IL_0088: ldc.i4.3 + IL_0089: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_008e: ldc.i4.1 + IL_008f: stloc.0 + IL_0090: leave IL_01e2 + + IL_0095: ldarg.0 + IL_0096: ldc.i4.2 + IL_0097: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_009c: ldarg.0 + IL_009d: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally1f'() + IL_00a2: ldarg.0 + IL_00a3: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap1d' + IL_00a8: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_00ad: brtrue.s IL_0063 + + IL_00af: ldarg.0 + IL_00b0: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally1e'() + IL_00b5: ldarg.0 + IL_00b6: ldstr "A" + IL_00bb: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_00c0: ldarg.0 + IL_00c1: ldc.i4.4 + IL_00c2: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_00c7: ldc.i4.1 + IL_00c8: stloc.0 + IL_00c9: leave IL_01e2 + + IL_00ce: ldarg.0 + IL_00cf: ldc.i4.m1 + IL_00d0: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_00d5: ldarg.0 + IL_00d6: ldstr "B" + IL_00db: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_00e0: ldarg.0 + IL_00e1: ldc.i4.5 + IL_00e2: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_00e7: ldc.i4.1 + IL_00e8: stloc.0 + IL_00e9: leave IL_01e2 + + IL_00ee: ldarg.0 + IL_00ef: ldc.i4.m1 + IL_00f0: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_00f5: ldarg.0 + IL_00f6: ldstr "C" + IL_00fb: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0100: ldarg.0 + IL_0101: ldc.i4.6 + IL_0102: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0107: ldc.i4.1 + IL_0108: stloc.0 + IL_0109: leave IL_01e2 + + IL_010e: ldarg.0 + IL_010f: ldc.i4.m1 + IL_0110: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0115: ldarg.0 + IL_0116: ldstr "D" + IL_011b: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0120: ldarg.0 + IL_0121: ldc.i4.7 + IL_0122: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0127: ldc.i4.1 + IL_0128: stloc.0 + IL_0129: leave IL_01e2 + + IL_012e: ldarg.0 + IL_012f: ldc.i4.m1 + IL_0130: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0135: ldarg.0 + IL_0136: ldstr "E" + IL_013b: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0140: ldarg.0 + IL_0141: ldc.i4.8 + IL_0142: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0147: ldc.i4.1 + IL_0148: stloc.0 + IL_0149: leave IL_01e2 + + IL_014e: ldarg.0 + IL_014f: ldc.i4.m1 + IL_0150: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0155: ldarg.0 + IL_0156: ldstr "F" + IL_015b: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0160: ldarg.0 + IL_0161: ldc.i4.s 9 + IL_0163: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0168: ldc.i4.1 + IL_0169: stloc.0 + IL_016a: leave.s IL_01e2 + + IL_016c: ldarg.0 + IL_016d: ldc.i4.m1 + IL_016e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0173: ldarg.0 + IL_0174: ldarg.0 + IL_0175: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::input + IL_017a: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_017f: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap20' + IL_0184: ldarg.0 + IL_0185: ldc.i4.s 10 + IL_0187: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_018c: br.s IL_01c4 + + IL_018e: ldarg.0 + IL_018f: ldarg.0 + IL_0190: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap20' + IL_0195: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_019a: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'5__1c' + IL_019f: ldarg.0 + IL_01a0: ldarg.0 + IL_01a1: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'5__1c' + IL_01a6: callvirt instance string [mscorlib]System.String::ToUpper() + IL_01ab: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_01b0: ldarg.0 + IL_01b1: ldc.i4.s 11 + IL_01b3: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_01b8: ldc.i4.1 + IL_01b9: stloc.0 + IL_01ba: leave.s IL_01e2 + + IL_01bc: ldarg.0 + IL_01bd: ldc.i4.s 10 + IL_01bf: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_01c4: ldarg.0 + IL_01c5: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap20' + IL_01ca: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_01cf: brtrue.s IL_018e + + IL_01d1: ldarg.0 + IL_01d2: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally21'() + IL_01d7: ldc.i4.0 + IL_01d8: stloc.0 + IL_01d9: leave.s IL_01e2 + + } // end .try + fault + { + IL_01db: ldarg.0 + IL_01dc: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::System.IDisposable.Dispose() + IL_01e1: endfinally + } // end handler + IL_01e2: ldloc.0 + IL_01e3: ret + } // end of method 'd__1a'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0006: ret + } // end of method 'd__1a'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__1a'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 107 (0x6b) + .maxstack 2 + .locals init (int32 V_0, + int32 V_1, + int32 V_2) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_001d, + IL_001d, + IL_001d) + IL_001b: br.s IL_0048 + + .try + { + IL_001d: ldarg.0 + IL_001e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0023: stloc.1 + IL_0024: ldloc.1 + IL_0025: ldc.i4.2 + IL_0026: sub + IL_0027: switch ( + IL_0036, + IL_0036) + IL_0034: br.s IL_003f + + .try + { + IL_0036: leave.s IL_003f + + } // end .try + finally + { + IL_0038: ldarg.0 + IL_0039: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally1f'() + IL_003e: endfinally + } // end handler + IL_003f: leave.s IL_0048 + + } // end .try + finally + { + IL_0041: ldarg.0 + IL_0042: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally1e'() + IL_0047: endfinally + } // end handler + IL_0048: ldarg.0 + IL_0049: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_004e: stloc.2 + IL_004f: ldloc.2 + IL_0050: ldc.i4.s 10 + IL_0052: sub + IL_0053: switch ( + IL_0061, + IL_0061) + IL_0060: ret + + .try + { + IL_0061: leave.s IL_006a + + } // end .try + finally + { + IL_0063: ldarg.0 + IL_0064: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>m__Finally21'() + IL_0069: endfinally + } // end handler + IL_006a: ret + } // end of method 'd__1a'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>2__current' + IL_0006: ret + } // end of method 'd__1a'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__1a'::.ctor + + .method private hidebysig instance void + '<>m__Finally1e'() cil managed + { + // Code size 27 (0x1b) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap1d' + IL_000d: brfalse.s IL_001a + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap1d' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: ret + } // end of method 'd__1a'::'<>m__Finally1e' + + .method private hidebysig instance void + '<>m__Finally1f'() cil managed + { + // Code size 29 (0x1d) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0007: ldstr "Processed " + IL_000c: ldarg.0 + IL_000d: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'5__1b' + IL_0012: call string [mscorlib]System.String::Concat(string, + string) + IL_0017: call void [mscorlib]System.Console::WriteLine(string) + IL_001c: ret + } // end of method 'd__1a'::'<>m__Finally1f' + + .method private hidebysig instance void + '<>m__Finally21'() cil managed + { + // Code size 27 (0x1b) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap20' + IL_000d: brfalse.s IL_001a + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>7__wrap20' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: ret + } // end of method 'd__1a'::'<>m__Finally21' + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__1a'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__1a'::System.Collections.IEnumerator.Current + } // end of class 'd__1a' + + .class auto ansi sealed nested private beforefieldinit '<>c__DisplayClass26' + extends [mscorlib]System.Object + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field public string line + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ret + } // end of method '<>c__DisplayClass26'::.ctor + + .method public hidebysig instance string + 'b__24'() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26'::line + IL_0006: ret + } // end of method '<>c__DisplayClass26'::'b__24' + + } // end of class '<>c__DisplayClass26' + + .class auto ansi sealed nested private beforefieldinit 'd__28' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1>, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1>, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private class [mscorlib]System.Func`1 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field public class [mscorlib]System.Func`1 'CS$<>9__CachedAnonymousMethodDelegate25' + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26' 'CS$<>8__locals27' + .field public class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap29' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1> + 'System.Collections.Generic.IEnumerable>.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1>::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>3__input' + IL_0030: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::input + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__28'::'System.Collections.Generic.IEnumerable>.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1> ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'System.Collections.Generic.IEnumerable>.GetEnumerator'() + IL_0006: ret + } // end of method 'd__28'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 196 (0xc4) + .maxstack 4 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001e, + IL_00b7, + IL_009d) + IL_0019: br IL_00b7 + + IL_001e: ldarg.0 + IL_001f: ldc.i4.m1 + IL_0020: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0025: ldarg.0 + IL_0026: ldarg.0 + IL_0027: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::input + IL_002c: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0031: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>7__wrap29' + IL_0036: ldarg.0 + IL_0037: ldc.i4.1 + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_003d: br.s IL_00a4 + + IL_003f: ldarg.0 + IL_0040: ldnull + IL_0041: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>9__CachedAnonymousMethodDelegate25' + IL_0046: ldarg.0 + IL_0047: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26'::.ctor() + IL_004c: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>8__locals27' + IL_0051: ldarg.0 + IL_0052: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>8__locals27' + IL_0057: ldarg.0 + IL_0058: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>7__wrap29' + IL_005d: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_0062: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26'::line + IL_0067: ldarg.0 + IL_0068: ldarg.0 + IL_0069: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>9__CachedAnonymousMethodDelegate25' + IL_006e: brtrue.s IL_0087 + + IL_0070: ldarg.0 + IL_0071: ldarg.0 + IL_0072: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>8__locals27' + IL_0077: ldftn instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass26'::'b__24'() + IL_007d: newobj instance void class [mscorlib]System.Func`1::.ctor(object, + native int) + IL_0082: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>9__CachedAnonymousMethodDelegate25' + IL_0087: ldarg.0 + IL_0088: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'CS$<>9__CachedAnonymousMethodDelegate25' + IL_008d: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>2__current' + IL_0092: ldarg.0 + IL_0093: ldc.i4.2 + IL_0094: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0099: ldc.i4.1 + IL_009a: stloc.0 + IL_009b: leave.s IL_00c2 + + IL_009d: ldarg.0 + IL_009e: ldc.i4.1 + IL_009f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_00a4: ldarg.0 + IL_00a5: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>7__wrap29' + IL_00aa: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_00af: brtrue.s IL_003f + + IL_00b1: ldarg.0 + IL_00b2: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>m__Finally2a'() + IL_00b7: ldc.i4.0 + IL_00b8: stloc.0 + IL_00b9: leave.s IL_00c2 + + } // end .try + fault + { + IL_00bb: ldarg.0 + IL_00bc: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::System.IDisposable.Dispose() + IL_00c1: endfinally + } // end handler + IL_00c2: ldloc.0 + IL_00c3: ret + } // end of method 'd__28'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1>::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>2__current' + IL_0006: ret + } // end of method 'd__28'::'System.Collections.Generic.IEnumerator>.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__28'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 34 (0x22) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0018, + IL_0018) + IL_0017: ret + + .try + { + IL_0018: leave.s IL_0021 + + } // end .try + finally + { + IL_001a: ldarg.0 + IL_001b: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>m__Finally2a'() + IL_0020: endfinally + } // end handler + IL_0021: ret + } // end of method 'd__28'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>2__current' + IL_0006: ret + } // end of method 'd__28'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__28'::.ctor + + .method private hidebysig instance void + '<>m__Finally2a'() cil managed + { + // Code size 27 (0x1b) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>7__wrap29' + IL_000d: brfalse.s IL_001a + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>7__wrap29' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: ret + } // end of method 'd__28'::'<>m__Finally2a' + + .property instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.Current'() + { + .get instance class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'System.Collections.Generic.IEnumerator>.get_Current'() + } // end of property 'd__28'::'System.Collections.Generic.IEnumerator>.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__28'::System.Collections.IEnumerator.Current + } // end of class 'd__28' + + .class auto ansi sealed nested private beforefieldinit '<>c__DisplayClass2e' + extends [mscorlib]System.Object + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field public string copy + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ret + } // end of method '<>c__DisplayClass2e'::.ctor + + .method public hidebysig instance string + 'b__2d'() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e'::copy + IL_0006: ret + } // end of method '<>c__DisplayClass2e'::'b__2d' + + } // end of class '<>c__DisplayClass2e' + + .class auto ansi sealed nested private beforefieldinit 'd__30' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1>, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1>, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private class [mscorlib]System.Func`1 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field public string '5__31' + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e' 'CS$<>8__locals2f' + .field public class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap32' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1> + 'System.Collections.Generic.IEnumerable>.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1>::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>3__input' + IL_0030: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::input + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__30'::'System.Collections.Generic.IEnumerable>.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1> ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'System.Collections.Generic.IEnumerable>.GetEnumerator'() + IL_0006: ret + } // end of method 'd__30'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 181 (0xb5) + .maxstack 3 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001e, + IL_00a8, + IL_008e) + IL_0019: br IL_00a8 + + IL_001e: ldarg.0 + IL_001f: ldc.i4.m1 + IL_0020: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0025: ldarg.0 + IL_0026: ldarg.0 + IL_0027: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::input + IL_002c: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0031: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>7__wrap32' + IL_0036: ldarg.0 + IL_0037: ldc.i4.1 + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_003d: br.s IL_0095 + + IL_003f: ldarg.0 + IL_0040: ldarg.0 + IL_0041: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>7__wrap32' + IL_0046: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_004b: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'5__31' + IL_0050: ldarg.0 + IL_0051: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e'::.ctor() + IL_0056: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'CS$<>8__locals2f' + IL_005b: ldarg.0 + IL_005c: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'CS$<>8__locals2f' + IL_0061: ldarg.0 + IL_0062: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'5__31' + IL_0067: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e'::copy + IL_006c: ldarg.0 + IL_006d: ldarg.0 + IL_006e: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'CS$<>8__locals2f' + IL_0073: ldftn instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass2e'::'b__2d'() + IL_0079: newobj instance void class [mscorlib]System.Func`1::.ctor(object, + native int) + IL_007e: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>2__current' + IL_0083: ldarg.0 + IL_0084: ldc.i4.2 + IL_0085: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_008a: ldc.i4.1 + IL_008b: stloc.0 + IL_008c: leave.s IL_00b3 + + IL_008e: ldarg.0 + IL_008f: ldc.i4.1 + IL_0090: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0095: ldarg.0 + IL_0096: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>7__wrap32' + IL_009b: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_00a0: brtrue.s IL_003f + + IL_00a2: ldarg.0 + IL_00a3: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>m__Finally33'() + IL_00a8: ldc.i4.0 + IL_00a9: stloc.0 + IL_00aa: leave.s IL_00b3 + + } // end .try + fault + { + IL_00ac: ldarg.0 + IL_00ad: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::System.IDisposable.Dispose() + IL_00b2: endfinally + } // end handler + IL_00b3: ldloc.0 + IL_00b4: ret + } // end of method 'd__30'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1>::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>2__current' + IL_0006: ret + } // end of method 'd__30'::'System.Collections.Generic.IEnumerator>.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__30'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 34 (0x22) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0018, + IL_0018) + IL_0017: ret + + .try + { + IL_0018: leave.s IL_0021 + + } // end .try + finally + { + IL_001a: ldarg.0 + IL_001b: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>m__Finally33'() + IL_0020: endfinally + } // end handler + IL_0021: ret + } // end of method 'd__30'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>2__current' + IL_0006: ret + } // end of method 'd__30'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__30'::.ctor + + .method private hidebysig instance void + '<>m__Finally33'() cil managed + { + // Code size 27 (0x1b) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>7__wrap32' + IL_000d: brfalse.s IL_001a + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>7__wrap32' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: ret + } // end of method 'd__30'::'<>m__Finally33' + + .property instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.Current'() + { + .get instance class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'System.Collections.Generic.IEnumerator>.get_Current'() + } // end of property 'd__30'::'System.Collections.Generic.IEnumerator>.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__30'::System.Collections.IEnumerator.Current + } // end of class 'd__30' + + .class auto ansi sealed nested private beforefieldinit 'd__36' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public int32 n + .field public int32 '<>3__n' + .field public int32 '5__37' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>3__n' + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::n + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__36'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__36'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 107 (0x6b) + .maxstack 3 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_0017, + IL_0046) + IL_0015: br.s IL_0069 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.m1 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: ldc.i4.0 + IL_0020: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_0025: br.s IL_005b + + IL_0027: ldarg.0 + IL_0028: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_002d: ldc.i4.2 + IL_002e: rem + IL_002f: brtrue.s IL_004d + + IL_0031: ldarg.0 + IL_0032: ldarg.0 + IL_0033: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>2__current' + IL_003d: ldarg.0 + IL_003e: ldc.i4.1 + IL_003f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_0044: ldc.i4.1 + IL_0045: ret + + IL_0046: ldarg.0 + IL_0047: ldc.i4.m1 + IL_0048: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_004d: ldarg.0 + IL_004e: dup + IL_004f: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_0054: ldc.i4.1 + IL_0055: add + IL_0056: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_005b: ldarg.0 + IL_005c: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'5__37' + IL_0061: ldarg.0 + IL_0062: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::n + IL_0067: blt.s IL_0027 + + IL_0069: ldc.i4.0 + IL_006a: ret + } // end of method 'd__36'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>2__current' + IL_0006: ret + } // end of method 'd__36'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__36'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__36'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__36'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__36'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__36'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__36'::System.Collections.IEnumerator.Current + } // end of class 'd__36' + + .class auto ansi sealed nested private beforefieldinit 'd__3a' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private char '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__3a'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__3a'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 208 (0xd0) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_002e, + IL_004b, + IL_00c3, + IL_007e, + IL_00c3, + IL_00c3, + IL_00b6) + IL_0029: br IL_00c3 + + IL_002e: ldarg.0 + IL_002f: ldc.i4.m1 + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0035: ldarg.0 + IL_0036: ldc.i4.s 97 + IL_0038: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>2__current' + IL_003d: ldarg.0 + IL_003e: ldc.i4.1 + IL_003f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0044: ldc.i4.1 + IL_0045: stloc.0 + IL_0046: leave IL_00ce + + IL_004b: ldarg.0 + IL_004c: ldc.i4.m1 + IL_004d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + .try + { + IL_0052: ldstr "1 - try" + IL_0057: call void [mscorlib]System.Console::WriteLine(string) + IL_005c: leave.s IL_006b + + } // end .try + catch [mscorlib]System.Exception + { + IL_005e: pop + IL_005f: ldstr "1 - catch" + IL_0064: call void [mscorlib]System.Console::WriteLine(string) + IL_0069: leave.s IL_006b + + } // end handler + IL_006b: ldarg.0 + IL_006c: ldc.i4.s 98 + IL_006e: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>2__current' + IL_0073: ldarg.0 + IL_0074: ldc.i4.3 + IL_0075: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_007a: ldc.i4.1 + IL_007b: stloc.0 + IL_007c: leave.s IL_00ce + + IL_007e: ldarg.0 + IL_007f: ldc.i4.m1 + IL_0080: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0085: ldarg.0 + IL_0086: ldc.i4.4 + IL_0087: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + .try + { + IL_008c: ldstr "2 - try" + IL_0091: call void [mscorlib]System.Console::WriteLine(string) + IL_0096: leave.s IL_00a3 + + } // end .try + finally + { + IL_0098: ldstr "2 - finally" + IL_009d: call void [mscorlib]System.Console::WriteLine(string) + IL_00a2: endfinally + } // end handler + IL_00a3: ldarg.0 + IL_00a4: ldc.i4.s 99 + IL_00a6: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>2__current' + IL_00ab: ldarg.0 + IL_00ac: ldc.i4.6 + IL_00ad: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_00b2: ldc.i4.1 + IL_00b3: stloc.0 + IL_00b4: leave.s IL_00ce + + IL_00b6: ldarg.0 + IL_00b7: ldc.i4.4 + IL_00b8: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_00bd: ldarg.0 + IL_00be: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>m__Finally3b'() + IL_00c3: ldc.i4.0 + IL_00c4: stloc.0 + IL_00c5: leave.s IL_00ce + + } // end .try + fault + { + IL_00c7: ldarg.0 + IL_00c8: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::System.IDisposable.Dispose() + IL_00cd: endfinally + } // end handler + IL_00ce: ldloc.0 + IL_00cf: ret + } // end of method 'd__3a'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance char 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>2__current' + IL_0006: ret + } // end of method 'd__3a'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__3a'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 38 (0x26) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.4 + IL_0009: sub + IL_000a: switch ( + IL_001c, + IL_0025, + IL_001c) + IL_001b: ret + + .try + { + IL_001c: leave.s IL_0025 + + } // end .try + finally + { + IL_001e: ldarg.0 + IL_001f: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>m__Finally3b'() + IL_0024: endfinally + } // end handler + IL_0025: ret + } // end of method 'd__3a'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>2__current' + IL_0006: box [mscorlib]System.Char + IL_000b: ret + } // end of method 'd__3a'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__3a'::.ctor + + .method private hidebysig instance void + '<>m__Finally3b'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'<>1__state' + IL_0007: ldstr "outer finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__3a'::'<>m__Finally3b' + + .property instance char 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__3a'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__3a'::System.Collections.IEnumerator.Current + } // end of class 'd__3a' + + .class auto ansi sealed nested private beforefieldinit 'd__3e' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__3e'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__3e'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 101 (0x65) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001f, + IL_0036, + IL_0063, + IL_005c) + IL_001d: br.s IL_0063 + + IL_001f: ldarg.0 + IL_0020: ldc.i4.m1 + IL_0021: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_0026: ldarg.0 + IL_0027: ldc.i4.0 + IL_0028: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>2__current' + IL_002d: ldarg.0 + IL_002e: ldc.i4.1 + IL_002f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_0034: ldc.i4.1 + IL_0035: ret + + IL_0036: ldarg.0 + IL_0037: ldc.i4.m1 + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + .try + { + IL_003d: ldstr "In Try" + IL_0042: call void [mscorlib]System.Console::WriteLine(string) + IL_0047: leave.s IL_004c + + } // end .try + catch [mscorlib]System.Object + { + IL_0049: pop + IL_004a: leave.s IL_0063 + + } // end handler + IL_004c: ldarg.0 + IL_004d: ldc.i4.1 + IL_004e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>2__current' + IL_0053: ldarg.0 + IL_0054: ldc.i4.3 + IL_0055: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_005a: ldc.i4.1 + IL_005b: ret + + IL_005c: ldarg.0 + IL_005d: ldc.i4.m1 + IL_005e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_0063: ldc.i4.0 + IL_0064: ret + } // end of method 'd__3e'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>2__current' + IL_0006: ret + } // end of method 'd__3e'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__3e'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__3e'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__3e'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__3e'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__3e'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__3e'::System.Collections.IEnumerator.Current + } // end of class 'd__3e' + + .class auto ansi sealed nested private beforefieldinit 'd__41' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__41'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__41'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 139 (0x8b) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0023, + IL_007e, + IL_0043, + IL_007e, + IL_0071) + IL_0021: br.s IL_007e + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_002a: ldarg.0 + IL_002b: ldc.i4.1 + IL_002c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0031: ldarg.0 + IL_0032: ldc.i4.0 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>2__current' + IL_0038: ldarg.0 + IL_0039: ldc.i4.2 + IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_003f: ldc.i4.1 + IL_0040: stloc.0 + IL_0041: leave.s IL_0089 + + IL_0043: ldarg.0 + IL_0044: ldc.i4.1 + IL_0045: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + .try + { + IL_004a: ldstr "In Try" + IL_004f: call void [mscorlib]System.Console::WriteLine(string) + IL_0054: leave.s IL_005f + + } // end .try + catch [mscorlib]System.Object + { + IL_0056: pop + IL_0057: ldarg.0 + IL_0058: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::System.IDisposable.Dispose() + IL_005d: leave.s IL_007e + + } // end handler + IL_005f: ldarg.0 + IL_0060: ldc.i4.1 + IL_0061: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>2__current' + IL_0066: ldarg.0 + IL_0067: ldc.i4.4 + IL_0068: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_006d: ldc.i4.1 + IL_006e: stloc.0 + IL_006f: leave.s IL_0089 + + IL_0071: ldarg.0 + IL_0072: ldc.i4.1 + IL_0073: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0078: ldarg.0 + IL_0079: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>m__Finally42'() + IL_007e: ldc.i4.0 + IL_007f: stloc.0 + IL_0080: leave.s IL_0089 + + } // end .try + fault + { + IL_0082: ldarg.0 + IL_0083: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::System.IDisposable.Dispose() + IL_0088: endfinally + } // end handler + IL_0089: ldloc.0 + IL_008a: ret + } // end of method 'd__41'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>2__current' + IL_0006: ret + } // end of method 'd__41'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__41'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 42 (0x2a) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0020, + IL_0020, + IL_0029, + IL_0020) + IL_001f: ret + + .try + { + IL_0020: leave.s IL_0029 + + } // end .try + finally + { + IL_0022: ldarg.0 + IL_0023: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>m__Finally42'() + IL_0028: endfinally + } // end handler + IL_0029: ret + } // end of method 'd__41'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__41'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__41'::.ctor + + .method private hidebysig instance void + '<>m__Finally42'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'<>1__state' + IL_0007: ldstr "Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__41'::'<>m__Finally42' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__41'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__41'::System.Collections.IEnumerator.Current + } // end of class 'd__41' + + .class auto ansi sealed nested private beforefieldinit 'd__45' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__45'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__45'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 149 (0x95) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0023, + IL_0088, + IL_0043, + IL_0088, + IL_007b) + IL_0021: br.s IL_0088 + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_002a: ldarg.0 + IL_002b: ldc.i4.1 + IL_002c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0031: ldarg.0 + IL_0032: ldc.i4.0 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>2__current' + IL_0038: ldarg.0 + IL_0039: ldc.i4.2 + IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_003f: ldc.i4.1 + IL_0040: stloc.0 + IL_0041: leave.s IL_0093 + + IL_0043: ldarg.0 + IL_0044: ldc.i4.1 + IL_0045: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + .try + { + IL_004a: ldstr "In Try" + IL_004f: call void [mscorlib]System.Console::WriteLine(string) + IL_0054: ldarg.0 + IL_0055: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::System.IDisposable.Dispose() + IL_005a: leave.s IL_0088 + + } // end .try + catch [mscorlib]System.Object + { + IL_005c: pop + IL_005d: ldstr "Catch" + IL_0062: call void [mscorlib]System.Console::WriteLine(string) + IL_0067: leave.s IL_0069 + + } // end handler + IL_0069: ldarg.0 + IL_006a: ldc.i4.1 + IL_006b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>2__current' + IL_0070: ldarg.0 + IL_0071: ldc.i4.4 + IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0077: ldc.i4.1 + IL_0078: stloc.0 + IL_0079: leave.s IL_0093 + + IL_007b: ldarg.0 + IL_007c: ldc.i4.1 + IL_007d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0082: ldarg.0 + IL_0083: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>m__Finally46'() + IL_0088: ldc.i4.0 + IL_0089: stloc.0 + IL_008a: leave.s IL_0093 + + } // end .try + fault + { + IL_008c: ldarg.0 + IL_008d: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::System.IDisposable.Dispose() + IL_0092: endfinally + } // end handler + IL_0093: ldloc.0 + IL_0094: ret + } // end of method 'd__45'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>2__current' + IL_0006: ret + } // end of method 'd__45'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__45'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 42 (0x2a) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0020, + IL_0020, + IL_0029, + IL_0020) + IL_001f: ret + + .try + { + IL_0020: leave.s IL_0029 + + } // end .try + finally + { + IL_0022: ldarg.0 + IL_0023: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>m__Finally46'() + IL_0028: endfinally + } // end handler + IL_0029: ret + } // end of method 'd__45'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__45'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__45'::.ctor + + .method private hidebysig instance void + '<>m__Finally46'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'<>1__state' + IL_0007: ldstr "Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__45'::'<>m__Finally46' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__45'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__45'::System.Collections.IEnumerator.Current + } // end of class 'd__45' + + .class auto ansi sealed nested private beforefieldinit 'd__49' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public bool b + .field public bool '<>3__b' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>3__b' + IL_0030: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::b + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__49'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__49'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 157 (0x9d) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0023, + IL_0090, + IL_0043, + IL_0090, + IL_0083) + IL_0021: br.s IL_0090 + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_002a: ldarg.0 + IL_002b: ldc.i4.1 + IL_002c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0031: ldarg.0 + IL_0032: ldc.i4.0 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>2__current' + IL_0038: ldarg.0 + IL_0039: ldc.i4.2 + IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_003f: ldc.i4.1 + IL_0040: stloc.0 + IL_0041: leave.s IL_009b + + IL_0043: ldarg.0 + IL_0044: ldc.i4.1 + IL_0045: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + .try + { + IL_004a: ldstr "In Try" + IL_004f: call void [mscorlib]System.Console::WriteLine(string) + IL_0054: ldarg.0 + IL_0055: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::b + IL_005a: brfalse.s IL_0064 + + IL_005c: ldarg.0 + IL_005d: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::System.IDisposable.Dispose() + IL_0062: leave.s IL_0090 + + IL_0064: leave.s IL_0071 + + } // end .try + finally + { + IL_0066: ldstr "Inner Finally" + IL_006b: call void [mscorlib]System.Console::WriteLine(string) + IL_0070: endfinally + } // end handler + IL_0071: ldarg.0 + IL_0072: ldc.i4.1 + IL_0073: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>2__current' + IL_0078: ldarg.0 + IL_0079: ldc.i4.4 + IL_007a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_007f: ldc.i4.1 + IL_0080: stloc.0 + IL_0081: leave.s IL_009b + + IL_0083: ldarg.0 + IL_0084: ldc.i4.1 + IL_0085: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_008a: ldarg.0 + IL_008b: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>m__Finally4a'() + IL_0090: ldc.i4.0 + IL_0091: stloc.0 + IL_0092: leave.s IL_009b + + } // end .try + fault + { + IL_0094: ldarg.0 + IL_0095: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::System.IDisposable.Dispose() + IL_009a: endfinally + } // end handler + IL_009b: ldloc.0 + IL_009c: ret + } // end of method 'd__49'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>2__current' + IL_0006: ret + } // end of method 'd__49'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__49'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 42 (0x2a) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0020, + IL_0020, + IL_0029, + IL_0020) + IL_001f: ret + + .try + { + IL_0020: leave.s IL_0029 + + } // end .try + finally + { + IL_0022: ldarg.0 + IL_0023: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>m__Finally4a'() + IL_0028: endfinally + } // end handler + IL_0029: ret + } // end of method 'd__49'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__49'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__49'::.ctor + + .method private hidebysig instance void + '<>m__Finally4a'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>1__state' + IL_0007: ldstr "Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__49'::'<>m__Finally4a' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__49'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__49'::System.Collections.IEnumerator.Current + } // end of class 'd__49' + + .class auto ansi sealed nested private beforefieldinit 'd__4d' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__4d'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__4d'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 20 (0x14) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.0 + IL_0009: bne.un.s IL_0012 + + IL_000b: ldarg.0 + IL_000c: ldc.i4.m1 + IL_000d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>1__state' + IL_0012: ldc.i4.0 + IL_0013: ret + } // end of method 'd__4d'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>2__current' + IL_0006: ret + } // end of method 'd__4d'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__4d'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__4d'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__4d'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__4d'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__4d'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__4d'::System.Collections.IEnumerator.Current + } // end of class 'd__4d' + + .class auto ansi sealed nested private beforefieldinit 'd__50' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__50'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__50'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 85 (0x55) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001b, + IL_0048, + IL_003b) + IL_0019: br.s IL_0048 + + IL_001b: ldarg.0 + IL_001c: ldc.i4.m1 + IL_001d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0022: ldarg.0 + IL_0023: ldc.i4.1 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: ldc.i4.0 + IL_002b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>2__current' + IL_0030: ldarg.0 + IL_0031: ldc.i4.2 + IL_0032: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0037: ldc.i4.1 + IL_0038: stloc.0 + IL_0039: leave.s IL_0053 + + IL_003b: ldarg.0 + IL_003c: ldc.i4.1 + IL_003d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0042: newobj instance void [mscorlib]System.NotImplementedException::.ctor() + IL_0047: throw + + IL_0048: ldc.i4.0 + IL_0049: stloc.0 + IL_004a: leave.s IL_0053 + + } // end .try + fault + { + IL_004c: ldarg.0 + IL_004d: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::System.IDisposable.Dispose() + IL_0052: endfinally + } // end handler + IL_0053: ldloc.0 + IL_0054: ret + } // end of method 'd__50'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>2__current' + IL_0006: ret + } // end of method 'd__50'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__50'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 34 (0x22) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_0018, + IL_0018) + IL_0017: ret + + .try + { + IL_0018: leave.s IL_0021 + + } // end .try + finally + { + IL_001a: ldarg.0 + IL_001b: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>m__Finally51'() + IL_0020: endfinally + } // end handler + IL_0021: ret + } // end of method 'd__50'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__50'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__50'::.ctor + + .method private hidebysig instance void + '<>m__Finally51'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'<>1__state' + IL_0007: ldstr "Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__50'::'<>m__Finally51' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__50'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__50'::System.Collections.IEnumerator.Current + } // end of class 'd__50' + + .class auto ansi sealed nested private beforefieldinit 'd__54' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__54'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__54'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 88 (0x58) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: ldc.i4.0 + IL_0009: beq.s IL_0011 + + IL_000b: ldloc.1 + IL_000c: ldc.i4.3 + IL_000d: beq.s IL_0038 + + IL_000f: br.s IL_004b + + IL_0011: ldarg.0 + IL_0012: ldc.i4.m1 + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0018: ldarg.0 + IL_0019: ldc.i4.1 + IL_001a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_001f: ldarg.0 + IL_0020: ldc.i4.2 + IL_0021: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0026: ldarg.0 + IL_0027: ldc.i4.0 + IL_0028: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>2__current' + IL_002d: ldarg.0 + IL_002e: ldc.i4.3 + IL_002f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0034: ldc.i4.1 + IL_0035: stloc.0 + IL_0036: leave.s IL_0056 + + IL_0038: ldarg.0 + IL_0039: ldc.i4.2 + IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_003f: ldarg.0 + IL_0040: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>m__Finally56'() + IL_0045: ldarg.0 + IL_0046: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>m__Finally55'() + IL_004b: ldc.i4.0 + IL_004c: stloc.0 + IL_004d: leave.s IL_0056 + + } // end .try + fault + { + IL_004f: ldarg.0 + IL_0050: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::System.IDisposable.Dispose() + IL_0055: endfinally + } // end handler + IL_0056: ldloc.0 + IL_0057: ret + } // end of method 'd__54'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>2__current' + IL_0006: ret + } // end of method 'd__54'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__54'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 72 (0x48) + .maxstack 2 + .locals init (int32 V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.1 + IL_0009: sub + IL_000a: switch ( + IL_001c, + IL_001c, + IL_001c) + IL_001b: ret + + .try + { + IL_001c: ldarg.0 + IL_001d: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0022: stloc.1 + IL_0023: ldloc.1 + IL_0024: ldc.i4.2 + IL_0025: sub + IL_0026: switch ( + IL_0035, + IL_0035) + IL_0033: br.s IL_003e + + .try + { + IL_0035: leave.s IL_003e + + } // end .try + finally + { + IL_0037: ldarg.0 + IL_0038: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>m__Finally56'() + IL_003d: endfinally + } // end handler + IL_003e: leave.s IL_0047 + + } // end .try + finally + { + IL_0040: ldarg.0 + IL_0041: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>m__Finally55'() + IL_0046: endfinally + } // end handler + IL_0047: ret + } // end of method 'd__54'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__54'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__54'::.ctor + + .method private hidebysig instance void + '<>m__Finally55'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0007: ldstr "Outer Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__54'::'<>m__Finally55' + + .method private hidebysig instance void + '<>m__Finally56'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'<>1__state' + IL_0007: ldstr "Inner Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__54'::'<>m__Finally56' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__54'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__54'::System.Collections.IEnumerator.Current + } // end of class 'd__54' + + .class auto ansi sealed nested private beforefieldinit 'd__59`1'<([mscorlib]System.IDisposable) T> + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public !T a + .field public !T '<>3__a' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>3__a' + IL_0030: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::a + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__59`1'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__59`1'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 143 (0x8f) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0023, + IL_003c, + IL_0082, + IL_005c, + IL_007b) + IL_0021: br.s IL_0082 + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_002a: ldarg.0 + IL_002b: ldc.i4.1 + IL_002c: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>2__current' + IL_0031: ldarg.0 + IL_0032: ldc.i4.1 + IL_0033: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0038: ldc.i4.1 + IL_0039: stloc.0 + IL_003a: leave.s IL_008d + + IL_003c: ldarg.0 + IL_003d: ldc.i4.m1 + IL_003e: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0043: ldarg.0 + IL_0044: ldc.i4.2 + IL_0045: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_004a: ldarg.0 + IL_004b: ldc.i4.2 + IL_004c: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>2__current' + IL_0051: ldarg.0 + IL_0052: ldc.i4.3 + IL_0053: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0058: ldc.i4.1 + IL_0059: stloc.0 + IL_005a: leave.s IL_008d + + IL_005c: ldarg.0 + IL_005d: ldc.i4.2 + IL_005e: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0063: ldarg.0 + IL_0064: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>m__Finally5a'() + IL_0069: ldarg.0 + IL_006a: ldc.i4.3 + IL_006b: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>2__current' + IL_0070: ldarg.0 + IL_0071: ldc.i4.4 + IL_0072: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0077: ldc.i4.1 + IL_0078: stloc.0 + IL_0079: leave.s IL_008d + + IL_007b: ldarg.0 + IL_007c: ldc.i4.m1 + IL_007d: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0082: ldc.i4.0 + IL_0083: stloc.0 + IL_0084: leave.s IL_008d + + } // end .try + fault + { + IL_0086: ldarg.0 + IL_0087: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::System.IDisposable.Dispose() + IL_008c: endfinally + } // end handler + IL_008d: ldloc.0 + IL_008e: ret + } // end of method 'd__59`1'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>2__current' + IL_0006: ret + } // end of method 'd__59`1'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__59`1'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 34 (0x22) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.2 + IL_0009: sub + IL_000a: switch ( + IL_0018, + IL_0018) + IL_0017: ret + + .try + { + IL_0018: leave.s IL_0021 + + } // end .try + finally + { + IL_001a: ldarg.0 + IL_001b: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>m__Finally5a'() + IL_0020: endfinally + } // end handler + IL_0021: ret + } // end of method 'd__59`1'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__59`1'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__59`1'::.ctor + + .method private hidebysig instance void + '<>m__Finally5a'() cil managed + { + // Code size 41 (0x29) + .maxstack 2 + .locals init (!T V_0) + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::a + IL_000d: stloc.0 + IL_000e: ldloca.s V_0 + IL_0010: constrained. !T + IL_0016: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001b: ldloca.s V_0 + IL_001d: constrained. !T + IL_0023: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_0028: ret + } // end of method 'd__59`1'::'<>m__Finally5a' + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__59`1'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__59`1'::System.Collections.IEnumerator.Current + } // end of class 'd__59`1' + + .class auto ansi sealed nested private beforefieldinit 'd__5d`1'<.ctor T> + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private !T '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public !T '5__5e' + .field public int32 '5__5f' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__5d`1'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__5d`1'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 130 (0x82) + .maxstack 3 + .locals init (int32 V_0, + !T V_1, + !T V_2) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_0017, + IL_0062) + IL_0015: br.s IL_0080 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.m1 + IL_0019: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: ldloca.s V_1 + IL_0021: initobj !T + IL_0027: ldloc.1 + IL_0028: box !T + IL_002d: brfalse.s IL_003a + + IL_002f: ldloca.s V_2 + IL_0031: initobj !T + IL_0037: ldloc.2 + IL_0038: br.s IL_003f + + IL_003a: call !!0 [mscorlib]System.Activator::CreateInstance() + IL_003f: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5e' + IL_0044: ldarg.0 + IL_0045: ldc.i4.0 + IL_0046: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5f' + IL_004b: br.s IL_0077 + + IL_004d: ldarg.0 + IL_004e: ldarg.0 + IL_004f: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5e' + IL_0054: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>2__current' + IL_0059: ldarg.0 + IL_005a: ldc.i4.1 + IL_005b: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_0060: ldc.i4.1 + IL_0061: ret + + IL_0062: ldarg.0 + IL_0063: ldc.i4.m1 + IL_0064: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_0069: ldarg.0 + IL_006a: dup + IL_006b: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5f' + IL_0070: ldc.i4.1 + IL_0071: add + IL_0072: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5f' + IL_0077: ldarg.0 + IL_0078: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'5__5f' + IL_007d: ldc.i4.3 + IL_007e: blt.s IL_004d + + IL_0080: ldc.i4.0 + IL_0081: ret + } // end of method 'd__5d`1'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance !T 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>2__current' + IL_0006: ret + } // end of method 'd__5d`1'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__5d`1'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__5d`1'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>2__current' + IL_0006: box !T + IL_000b: ret + } // end of method 'd__5d`1'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__5d`1'::.ctor + + .property instance !T 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance !T ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__5d`1'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__5d`1'::System.Collections.IEnumerator.Current + } // end of class 'd__5d`1' + + .field private int32 fieldOnThis + .method public hidebysig specialname static + class [mscorlib]System.Collections.Generic.IEnumerable`1 + get_YieldChars() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__0'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::get_YieldChars + + .method assembly hidebysig static void + Print(string name, + class [mscorlib]System.Collections.Generic.IEnumerator`1 enumerator) cil managed + { + // Code size 54 (0x36) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldstr ": Test start" + IL_0006: call string [mscorlib]System.String::Concat(string, + string) + IL_000b: call void [mscorlib]System.Console::WriteLine(string) + IL_0010: br.s IL_002d + + IL_0012: ldarg.0 + IL_0013: ldstr ": " + IL_0018: ldarg.1 + IL_0019: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_001e: box !!T + IL_0023: call string [mscorlib]System.String::Concat(object, + object, + object) + IL_0028: call void [mscorlib]System.Console::WriteLine(string) + IL_002d: ldarg.1 + IL_002e: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_0033: brtrue.s IL_0012 + + IL_0035: ret + } // end of method YieldReturnPrettyTest::Print + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + SimpleYieldReturn() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::SimpleYieldReturn + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerator`1 + SimpleYieldReturnEnumerator() cil managed + { + // Code size 9 (0x9) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6' V_0) + IL_0000: ldc.i4.0 + IL_0001: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::.ctor(int32) + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ret + } // end of method YieldReturnPrettyTest::SimpleYieldReturnEnumerator + + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnParameters(int32 p) cil managed + { + // Code size 24 (0x18) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>4__this' + IL_000f: ldloc.0 + IL_0010: ldarg.1 + IL_0011: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>3__p' + IL_0016: ldloc.0 + IL_0017: ret + } // end of method YieldReturnPrettyTest::YieldReturnParameters + + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + YieldReturnParametersEnumerator(int32 p) cil managed + { + // Code size 23 (0x17) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b' V_0) + IL_0000: ldc.i4.0 + IL_0001: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::.ctor(int32) + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldarg.0 + IL_0009: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::'<>4__this' + IL_000e: ldloc.0 + IL_000f: ldarg.1 + IL_0010: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__b'::p + IL_0015: ldloc.0 + IL_0016: ret + } // end of method YieldReturnPrettyTest::YieldReturnParametersEnumerator + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnInLoop() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__d'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::YieldReturnInLoop + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithTryFinally() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithNestedTryFinally(bool breakInMiddle) cil managed + { + // Code size 17 (0x11) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>3__breakInMiddle' + IL_000f: ldloc.0 + IL_0010: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithNestedTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithTwoNonNestedFinallyBlocks(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + // Code size 17 (0x11) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__1a'::'<>3__input' + IL_000f: ldloc.0 + IL_0010: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithTwoNonNestedFinallyBlocks + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1> + YieldReturnWithAnonymousMethods1(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + // Code size 17 (0x11) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__28'::'<>3__input' + IL_000f: ldloc.0 + IL_0010: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithAnonymousMethods1 + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1> + YieldReturnWithAnonymousMethods2(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + // Code size 17 (0x11) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__30'::'<>3__input' + IL_000f: ldloc.0 + IL_0010: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithAnonymousMethods2 + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + GetEvenNumbers(int32 n) cil managed + { + // Code size 17 (0x11) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__36'::'<>3__n' + IL_000f: ldloc.0 + IL_0010: ret + } // end of method YieldReturnPrettyTest::GetEvenNumbers + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + ExceptionHandling() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3a'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::ExceptionHandling + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInCatch() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__3e'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::YieldBreakInCatch + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInCatchInTryFinally() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__41'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::YieldBreakInCatchInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInTryCatchInTryFinally() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__45'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::YieldBreakInTryCatchInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInTryFinallyInTryFinally(bool b) cil managed + { + // Code size 17 (0x11) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__49'::'<>3__b' + IL_000f: ldloc.0 + IL_0010: ret + } // end of method YieldReturnPrettyTest::YieldBreakInTryFinallyInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakOnly() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4d'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::YieldBreakOnly + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + UnconditionalThrowInTryFinally() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__50'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::UnconditionalThrowInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + NestedTryFinallyStartingOnSamePosition() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__54'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::NestedTryFinallyStartingOnSamePosition + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + LocalInFinally<([mscorlib]System.IDisposable) T>(!!T a) cil managed + { + // Code size 17 (0x11) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__59`1'::'<>3__a' + IL_000f: ldloc.0 + IL_0010: ret + } // end of method YieldReturnPrettyTest::LocalInFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + GenericYield<.ctor T>() cil managed + { + // Code size 10 (0xa) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5d`1'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ret + } // end of method YieldReturnPrettyTest::GenericYield + + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ret + } // end of method YieldReturnPrettyTest::.ctor + + .property class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldChars() + { + .get class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::get_YieldChars() + } // end of property YieldReturnPrettyTest::YieldChars +} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest + +.class private sequential ansi sealed beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + extends [mscorlib]System.ValueType +{ + .class auto ansi sealed nested private beforefieldinit 'd__0' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.Collections.IEnumerator, + [mscorlib]System.IDisposable + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>2__current' + .field private int32 '<>1__state' + .field private int32 '<>l__initialThreadId' + .field public valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn '<>4__this' + .field public valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn '<>3__<>4__this' + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 67 (0x43) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0' V_0) + IL_0000: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0005: ldarg.0 + IL_0006: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>l__initialThreadId' + IL_000b: bne.un.s IL_0022 + + IL_000d: ldarg.0 + IL_000e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_0013: ldc.i4.s -2 + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0035 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>4__this' + IL_0030: stfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>4__this' + IL_0035: ldloc.0 + IL_0036: ldarg.0 + IL_0037: ldfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>3__<>4__this' + IL_003c: stfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>4__this' + IL_0041: ldloc.0 + IL_0042: ret + } // end of method 'd__0'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__0'::System.Collections.IEnumerable.GetEnumerator + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 124 (0x7c) + .maxstack 4 + .locals init (int32 V_0, + int32 V_1, + int32 V_2) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001b, + IL_0047, + IL_0073) + IL_0019: br.s IL_007a + + IL_001b: ldarg.0 + IL_001c: ldc.i4.m1 + IL_001d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_0022: ldarg.0 + IL_0023: ldarg.0 + IL_0024: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>4__this' + IL_0029: dup + IL_002a: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_002f: dup + IL_0030: stloc.1 + IL_0031: ldc.i4.1 + IL_0032: add + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_0038: ldloc.1 + IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>2__current' + IL_003e: ldarg.0 + IL_003f: ldc.i4.1 + IL_0040: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_0045: ldc.i4.1 + IL_0046: ret + + IL_0047: ldarg.0 + IL_0048: ldc.i4.m1 + IL_0049: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_004e: ldarg.0 + IL_004f: ldarg.0 + IL_0050: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>4__this' + IL_0055: dup + IL_0056: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_005b: dup + IL_005c: stloc.2 + IL_005d: ldc.i4.1 + IL_005e: add + IL_005f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_0064: ldloc.2 + IL_0065: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>2__current' + IL_006a: ldarg.0 + IL_006b: ldc.i4.2 + IL_006c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_0071: ldc.i4.1 + IL_0072: ret + + IL_0073: ldarg.0 + IL_0074: ldc.i4.m1 + IL_0075: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_007a: ldc.i4.0 + IL_007b: ret + } // end of method 'd__0'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>2__current' + IL_0006: ret + } // end of method 'd__0'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__0'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__0'::System.IDisposable.Dispose + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__0'::System.Collections.IEnumerator.get_Current + + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__0'::.ctor + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__0'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__0'::System.Collections.IEnumerator.Current + } // end of class 'd__0' + + .field private int32 val + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerable`1 + Count() cil managed + { + // Code size 22 (0x16) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0' V_0) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: ldarg.0 + IL_000a: ldobj ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + IL_000f: stfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__0'::'<>3__<>4__this' + IL_0014: ldloc.0 + IL_0015: ret + } // end of method StructWithYieldReturn::Count + +} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + + +// ============================================================= + +// *********** DISASSEMBLY COMPLETE *********************** diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.opt.roslyn.il b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.opt.roslyn.il new file mode 100644 index 000000000..0b5d5001c --- /dev/null +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.opt.roslyn.il @@ -0,0 +1,6068 @@ + + + + +// Metadata version: v4.0.30319 +.assembly extern mscorlib +{ + .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. + .ver 4:0:0:0 +} +.assembly YieldReturn +{ + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) + .custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx + 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows. + + // --- The following custom attribute is added automatically, do not uncomment ------- + // .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 02 00 00 00 00 00 ) + + .permissionset reqmin + = {[mscorlib]System.Security.Permissions.SecurityPermissionAttribute = {property bool 'SkipVerification' = bool(true)}} + .hash algorithm 0x00008004 + .ver 0:0:0:0 +} +.module YieldReturn.dll +.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) +.imagebase 0x10000000 +.file alignment 0x00000200 +.stackreserve 0x00100000 +.subsystem 0x0003 // WINDOWS_CUI +.corflags 0x00000001 // ILONLY + + +// =============== CLASS MEMBERS DECLARATION =================== + +.class public auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest + extends [mscorlib]System.Object +{ + .class auto ansi sealed nested private beforefieldinit 'd__2' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private char '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__2'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__2'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 112 (0x70) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001f, + IL_0037, + IL_004f, + IL_0067) + IL_001d: ldc.i4.0 + IL_001e: ret + + IL_001f: ldarg.0 + IL_0020: ldc.i4.m1 + IL_0021: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0026: ldarg.0 + IL_0027: ldc.i4.s 97 + IL_0029: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>2__current' + IL_002e: ldarg.0 + IL_002f: ldc.i4.1 + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0035: ldc.i4.1 + IL_0036: ret + + IL_0037: ldarg.0 + IL_0038: ldc.i4.m1 + IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_003e: ldarg.0 + IL_003f: ldc.i4.s 98 + IL_0041: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>2__current' + IL_0046: ldarg.0 + IL_0047: ldc.i4.2 + IL_0048: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_004d: ldc.i4.1 + IL_004e: ret + + IL_004f: ldarg.0 + IL_0050: ldc.i4.m1 + IL_0051: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0056: ldarg.0 + IL_0057: ldc.i4.s 99 + IL_0059: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>2__current' + IL_005e: ldarg.0 + IL_005f: ldc.i4.3 + IL_0060: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0065: ldc.i4.1 + IL_0066: ret + + IL_0067: ldarg.0 + IL_0068: ldc.i4.m1 + IL_0069: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_006e: ldc.i4.0 + IL_006f: ret + } // end of method 'd__2'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance char 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>2__current' + IL_0006: ret + } // end of method 'd__2'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__2'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>2__current' + IL_0006: box [mscorlib]System.Char + IL_000b: ret + } // end of method 'd__2'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__2'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__2'::System.Collections.IEnumerable.GetEnumerator + + .property instance char 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__2'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__2'::System.Collections.IEnumerator.Current + } // end of class 'd__2' + + .class auto ansi sealed nested private beforefieldinit 'd__4' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private string '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__4'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__4'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 121 (0x79) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001f, + IL_003a, + IL_0055, + IL_0070) + IL_001d: ldc.i4.0 + IL_001e: ret + + IL_001f: ldarg.0 + IL_0020: ldc.i4.m1 + IL_0021: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0026: ldarg.0 + IL_0027: ldstr "A" + IL_002c: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>2__current' + IL_0031: ldarg.0 + IL_0032: ldc.i4.1 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0038: ldc.i4.1 + IL_0039: ret + + IL_003a: ldarg.0 + IL_003b: ldc.i4.m1 + IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0041: ldarg.0 + IL_0042: ldstr "B" + IL_0047: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>2__current' + IL_004c: ldarg.0 + IL_004d: ldc.i4.2 + IL_004e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0053: ldc.i4.1 + IL_0054: ret + + IL_0055: ldarg.0 + IL_0056: ldc.i4.m1 + IL_0057: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_005c: ldarg.0 + IL_005d: ldstr "C" + IL_0062: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>2__current' + IL_0067: ldarg.0 + IL_0068: ldc.i4.3 + IL_0069: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_006e: ldc.i4.1 + IL_006f: ret + + IL_0070: ldarg.0 + IL_0071: ldc.i4.m1 + IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0077: ldc.i4.0 + IL_0078: ret + } // end of method 'd__4'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>2__current' + IL_0006: ret + } // end of method 'd__4'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__4'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>2__current' + IL_0006: ret + } // end of method 'd__4'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__4'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__4'::System.Collections.IEnumerable.GetEnumerator + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__4'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__4'::System.Collections.IEnumerator.Current + } // end of class 'd__4' + + .class auto ansi sealed nested private beforefieldinit 'd__5' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private string '<>2__current' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 14 (0xe) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_000d: ret + } // end of method 'd__5'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__5'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 121 (0x79) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001f, + IL_003a, + IL_0055, + IL_0070) + IL_001d: ldc.i4.0 + IL_001e: ret + + IL_001f: ldarg.0 + IL_0020: ldc.i4.m1 + IL_0021: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0026: ldarg.0 + IL_0027: ldstr "A" + IL_002c: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>2__current' + IL_0031: ldarg.0 + IL_0032: ldc.i4.1 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0038: ldc.i4.1 + IL_0039: ret + + IL_003a: ldarg.0 + IL_003b: ldc.i4.m1 + IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0041: ldarg.0 + IL_0042: ldstr "B" + IL_0047: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>2__current' + IL_004c: ldarg.0 + IL_004d: ldc.i4.2 + IL_004e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0053: ldc.i4.1 + IL_0054: ret + + IL_0055: ldarg.0 + IL_0056: ldc.i4.m1 + IL_0057: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_005c: ldarg.0 + IL_005d: ldstr "C" + IL_0062: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>2__current' + IL_0067: ldarg.0 + IL_0068: ldc.i4.3 + IL_0069: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_006e: ldc.i4.1 + IL_006f: ret + + IL_0070: ldarg.0 + IL_0071: ldc.i4.m1 + IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0077: ldc.i4.0 + IL_0078: ret + } // end of method 'd__5'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>2__current' + IL_0006: ret + } // end of method 'd__5'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__5'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>2__current' + IL_0006: ret + } // end of method 'd__5'::System.Collections.IEnumerator.get_Current + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__5'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__5'::System.Collections.IEnumerator.Current + } // end of class 'd__5' + + .class auto ansi sealed nested private beforefieldinit 'd__6' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private int32 p + .field public int32 '<>3__p' + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest '<>4__this' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__6'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__6'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 99 (0x63) + .maxstack 2 + .locals init (int32 V_0, + class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldarg.0 + IL_0008: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>4__this' + IL_000d: stloc.1 + IL_000e: ldloc.0 + IL_000f: switch ( + IL_0022, + IL_003e, + IL_005a) + IL_0020: ldc.i4.0 + IL_0021: ret + + IL_0022: ldarg.0 + IL_0023: ldc.i4.m1 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: ldarg.0 + IL_002b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::p + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0035: ldarg.0 + IL_0036: ldc.i4.1 + IL_0037: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_003c: ldc.i4.1 + IL_003d: ret + + IL_003e: ldarg.0 + IL_003f: ldc.i4.m1 + IL_0040: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0045: ldarg.0 + IL_0046: ldloc.1 + IL_0047: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::fieldOnThis + IL_004c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0051: ldarg.0 + IL_0052: ldc.i4.2 + IL_0053: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0058: ldc.i4.1 + IL_0059: ret + + IL_005a: ldarg.0 + IL_005b: ldc.i4.m1 + IL_005c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0061: ldc.i4.0 + IL_0062: ret + } // end of method 'd__6'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0006: ret + } // end of method 'd__6'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__6'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__6'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 67 (0x43) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0035 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>4__this' + IL_0030: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>4__this' + IL_0035: ldloc.0 + IL_0036: ldarg.0 + IL_0037: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>3__p' + IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::p + IL_0041: ldloc.0 + IL_0042: ret + } // end of method 'd__6'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__6'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__6'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__6'::System.Collections.IEnumerator.Current + } // end of class 'd__6' + + .class auto ansi sealed nested private beforefieldinit 'd__7' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field public int32 p + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest '<>4__this' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 14 (0xe) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_000d: ret + } // end of method 'd__7'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__7'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 99 (0x63) + .maxstack 2 + .locals init (int32 V_0, + class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldarg.0 + IL_0008: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>4__this' + IL_000d: stloc.1 + IL_000e: ldloc.0 + IL_000f: switch ( + IL_0022, + IL_003e, + IL_005a) + IL_0020: ldc.i4.0 + IL_0021: ret + + IL_0022: ldarg.0 + IL_0023: ldc.i4.m1 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: ldarg.0 + IL_002b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::p + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>2__current' + IL_0035: ldarg.0 + IL_0036: ldc.i4.1 + IL_0037: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_003c: ldc.i4.1 + IL_003d: ret + + IL_003e: ldarg.0 + IL_003f: ldc.i4.m1 + IL_0040: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_0045: ldarg.0 + IL_0046: ldloc.1 + IL_0047: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::fieldOnThis + IL_004c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>2__current' + IL_0051: ldarg.0 + IL_0052: ldc.i4.2 + IL_0053: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_0058: ldc.i4.1 + IL_0059: ret + + IL_005a: ldarg.0 + IL_005b: ldc.i4.m1 + IL_005c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_0061: ldc.i4.0 + IL_0062: ret + } // end of method 'd__7'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>2__current' + IL_0006: ret + } // end of method 'd__7'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__7'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__7'::System.Collections.IEnumerator.get_Current + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__7'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__7'::System.Collections.IEnumerator.Current + } // end of class 'd__7' + + .class auto ansi sealed nested private beforefieldinit 'd__8' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private int32 '5__2' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__8'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__8'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 88 (0x58) + .maxstack 3 + .locals init (int32 V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: brfalse.s IL_0010 + + IL_000a: ldloc.0 + IL_000b: ldc.i4.1 + IL_000c: beq.s IL_0035 + + IL_000e: ldc.i4.0 + IL_000f: ret + + IL_0010: ldarg.0 + IL_0011: ldc.i4.m1 + IL_0012: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'5__2' + IL_001e: br.s IL_004c + + IL_0020: ldarg.0 + IL_0021: ldarg.0 + IL_0022: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'5__2' + IL_0027: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_002c: ldarg.0 + IL_002d: ldc.i4.1 + IL_002e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0033: ldc.i4.1 + IL_0034: ret + + IL_0035: ldarg.0 + IL_0036: ldc.i4.m1 + IL_0037: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_003c: ldarg.0 + IL_003d: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'5__2' + IL_0042: stloc.1 + IL_0043: ldarg.0 + IL_0044: ldloc.1 + IL_0045: ldc.i4.1 + IL_0046: add + IL_0047: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'5__2' + IL_004c: ldarg.0 + IL_004d: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'5__2' + IL_0052: ldc.i4.s 100 + IL_0054: blt.s IL_0020 + + IL_0056: ldc.i4.0 + IL_0057: ret + } // end of method 'd__8'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_0006: ret + } // end of method 'd__8'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__8'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__8'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__8'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__8'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__8'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__8'::System.Collections.IEnumerator.Current + } // end of class 'd__8' + + .class auto ansi sealed nested private beforefieldinit 'd__9' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__9'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 27 (0x1b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0010 + + IL_000c: ldloc.0 + IL_000d: ldc.i4.2 + IL_000e: bne.un.s IL_001a + + IL_0010: nop + .try + { + IL_0011: leave.s IL_001a + + } // end .try + finally + { + IL_0013: ldarg.0 + IL_0014: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>m__Finally1'() + IL_0019: endfinally + } // end handler + IL_001a: ret + } // end of method 'd__9'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 143 (0x8f) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0021, + IL_003a, + IL_005b, + IL_007b) + IL_001d: ldc.i4.0 + IL_001e: stloc.0 + IL_001f: leave.s IL_008d + + IL_0021: ldarg.0 + IL_0022: ldc.i4.m1 + IL_0023: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0028: ldarg.0 + IL_0029: ldc.i4.0 + IL_002a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>2__current' + IL_002f: ldarg.0 + IL_0030: ldc.i4.1 + IL_0031: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0036: ldc.i4.1 + IL_0037: stloc.0 + IL_0038: leave.s IL_008d + + IL_003a: ldarg.0 + IL_003b: ldc.i4.m1 + IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0041: ldarg.0 + IL_0042: ldc.i4.s -3 + IL_0044: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0049: ldarg.0 + IL_004a: ldc.i4.1 + IL_004b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>2__current' + IL_0050: ldarg.0 + IL_0051: ldc.i4.2 + IL_0052: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0057: ldc.i4.1 + IL_0058: stloc.0 + IL_0059: leave.s IL_008d + + IL_005b: ldarg.0 + IL_005c: ldc.i4.s -3 + IL_005e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0063: ldarg.0 + IL_0064: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>m__Finally1'() + IL_0069: ldarg.0 + IL_006a: ldc.i4.2 + IL_006b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>2__current' + IL_0070: ldarg.0 + IL_0071: ldc.i4.3 + IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0077: ldc.i4.1 + IL_0078: stloc.0 + IL_0079: leave.s IL_008d + + IL_007b: ldarg.0 + IL_007c: ldc.i4.m1 + IL_007d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0082: ldc.i4.0 + IL_0083: stloc.0 + IL_0084: leave.s IL_008d + + } // end .try + fault + { + IL_0086: ldarg.0 + IL_0087: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::System.IDisposable.Dispose() + IL_008c: endfinally + } // end handler + IL_008d: ldloc.0 + IL_008e: ret + } // end of method 'd__9'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0007: ldstr "Finally!" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__9'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>2__current' + IL_0006: ret + } // end of method 'd__9'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__9'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__9'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__9'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__9'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__9'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__9'::System.Collections.IEnumerator.Current + } // end of class 'd__9' + + .class auto ansi sealed nested private beforefieldinit 'd__10' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private string '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private bool breakInMiddle + .field public bool '<>3__breakInMiddle' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__10'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 52 (0x34) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -4 + IL_000a: sub + IL_000b: ldc.i4.1 + IL_000c: ble.un.s IL_0014 + + IL_000e: ldloc.0 + IL_000f: ldc.i4.2 + IL_0010: sub + IL_0011: ldc.i4.3 + IL_0012: bgt.un.s IL_0033 + + IL_0014: nop + .try + { + IL_0015: ldloc.0 + IL_0016: ldc.i4.s -4 + IL_0018: beq.s IL_0022 + + IL_001a: ldloc.0 + IL_001b: ldc.i4.3 + IL_001c: sub + IL_001d: ldc.i4.1 + IL_001e: ble.un.s IL_0022 + + IL_0020: leave.s IL_0033 + + IL_0022: nop + .try + { + IL_0023: leave.s IL_0033 + + } // end .try + finally + { + IL_0025: ldarg.0 + IL_0026: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally2'() + IL_002b: endfinally + } // end handler + } // end .try + finally + { + IL_002c: ldarg.0 + IL_002d: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally1'() + IL_0032: endfinally + } // end handler + IL_0033: ret + } // end of method 'd__10'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 448 (0x1c0) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0030, + IL_005a, + IL_0096, + IL_00d3, + IL_011e, + IL_0160, + IL_01a2) + IL_0029: ldc.i4.0 + IL_002a: stloc.0 + IL_002b: leave IL_01be + + IL_0030: ldarg.0 + IL_0031: ldc.i4.m1 + IL_0032: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0037: ldstr "Start of method - 1" + IL_003c: call void [mscorlib]System.Console::WriteLine(string) + IL_0041: ldarg.0 + IL_0042: ldstr "Start of method" + IL_0047: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_004c: ldarg.0 + IL_004d: ldc.i4.1 + IL_004e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0053: ldc.i4.1 + IL_0054: stloc.0 + IL_0055: leave IL_01be + + IL_005a: ldarg.0 + IL_005b: ldc.i4.m1 + IL_005c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0061: ldstr "Start of method - 2" + IL_0066: call void [mscorlib]System.Console::WriteLine(string) + IL_006b: ldarg.0 + IL_006c: ldc.i4.s -3 + IL_006e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0073: ldstr "Within outer try - 1" + IL_0078: call void [mscorlib]System.Console::WriteLine(string) + IL_007d: ldarg.0 + IL_007e: ldstr "Within outer try" + IL_0083: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_0088: ldarg.0 + IL_0089: ldc.i4.2 + IL_008a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_008f: ldc.i4.1 + IL_0090: stloc.0 + IL_0091: leave IL_01be + + IL_0096: ldarg.0 + IL_0097: ldc.i4.s -3 + IL_0099: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_009e: ldstr "Within outer try - 2" + IL_00a3: call void [mscorlib]System.Console::WriteLine(string) + IL_00a8: ldarg.0 + IL_00a9: ldc.i4.s -4 + IL_00ab: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_00b0: ldstr "Within inner try - 1" + IL_00b5: call void [mscorlib]System.Console::WriteLine(string) + IL_00ba: ldarg.0 + IL_00bb: ldstr "Within inner try" + IL_00c0: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_00c5: ldarg.0 + IL_00c6: ldc.i4.3 + IL_00c7: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_00cc: ldc.i4.1 + IL_00cd: stloc.0 + IL_00ce: leave IL_01be + + IL_00d3: ldarg.0 + IL_00d4: ldc.i4.s -4 + IL_00d6: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_00db: ldstr "Within inner try - 2" + IL_00e0: call void [mscorlib]System.Console::WriteLine(string) + IL_00e5: ldarg.0 + IL_00e6: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::breakInMiddle + IL_00eb: brfalse.s IL_00fb + + IL_00ed: ldstr "Breaking..." + IL_00f2: call void [mscorlib]System.Console::WriteLine(string) + IL_00f7: ldc.i4.0 + IL_00f8: stloc.0 + IL_00f9: br.s IL_0138 + + IL_00fb: ldstr "End of inner try - 1" + IL_0100: call void [mscorlib]System.Console::WriteLine(string) + IL_0105: ldarg.0 + IL_0106: ldstr "End of inner try" + IL_010b: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_0110: ldarg.0 + IL_0111: ldc.i4.4 + IL_0112: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0117: ldc.i4.1 + IL_0118: stloc.0 + IL_0119: leave IL_01be + + IL_011e: ldarg.0 + IL_011f: ldc.i4.s -4 + IL_0121: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0126: ldstr "End of inner try - 2" + IL_012b: call void [mscorlib]System.Console::WriteLine(string) + IL_0130: ldarg.0 + IL_0131: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally2'() + IL_0136: br.s IL_0140 + + IL_0138: ldarg.0 + IL_0139: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally2'() + IL_013e: br.s IL_017a + + IL_0140: ldstr "End of outer try - 1" + IL_0145: call void [mscorlib]System.Console::WriteLine(string) + IL_014a: ldarg.0 + IL_014b: ldstr "End of outer try" + IL_0150: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_0155: ldarg.0 + IL_0156: ldc.i4.5 + IL_0157: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_015c: ldc.i4.1 + IL_015d: stloc.0 + IL_015e: leave.s IL_01be + + IL_0160: ldarg.0 + IL_0161: ldc.i4.s -3 + IL_0163: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0168: ldstr "End of outer try - 2" + IL_016d: call void [mscorlib]System.Console::WriteLine(string) + IL_0172: ldarg.0 + IL_0173: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally1'() + IL_0178: br.s IL_0182 + + IL_017a: ldarg.0 + IL_017b: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally1'() + IL_0180: leave.s IL_01be + + IL_0182: ldstr "End of method - 1" + IL_0187: call void [mscorlib]System.Console::WriteLine(string) + IL_018c: ldarg.0 + IL_018d: ldstr "End of method" + IL_0192: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_0197: ldarg.0 + IL_0198: ldc.i4.6 + IL_0199: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_019e: ldc.i4.1 + IL_019f: stloc.0 + IL_01a0: leave.s IL_01be + + IL_01a2: ldarg.0 + IL_01a3: ldc.i4.m1 + IL_01a4: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_01a9: ldstr "End of method - 2" + IL_01ae: call void [mscorlib]System.Console::WriteLine(string) + IL_01b3: ldc.i4.0 + IL_01b4: stloc.0 + IL_01b5: leave.s IL_01be + + } // end .try + fault + { + IL_01b7: ldarg.0 + IL_01b8: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::System.IDisposable.Dispose() + IL_01bd: endfinally + } // end handler + IL_01be: ldloc.0 + IL_01bf: ret + } // end of method 'd__10'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0007: ldstr "Outer Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__10'::'<>m__Finally1' + + .method private hidebysig instance void + '<>m__Finally2'() cil managed + { + // Code size 19 (0x13) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.s -3 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0008: ldstr "Inner Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: ret + } // end of method 'd__10'::'<>m__Finally2' + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_0006: ret + } // end of method 'd__10'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__10'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_0006: ret + } // end of method 'd__10'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>3__breakInMiddle' + IL_0030: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::breakInMiddle + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__10'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__10'::System.Collections.IEnumerable.GetEnumerator + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__10'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__10'::System.Collections.IEnumerator.Current + } // end of class 'd__10' + + .class auto ansi sealed nested private beforefieldinit 'd__11' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private string '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field private class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap1' + .field private string '5__3' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__11'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 89 (0x59) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -5 + IL_000a: sub + IL_000b: switch ( + IL_004e, + IL_0031, + IL_0031, + IL_0058, + IL_0058, + IL_0058, + IL_0031) + IL_002c: ldloc.0 + IL_002d: ldc.i4.8 + IL_002e: beq.s IL_004e + + IL_0030: ret + + IL_0031: nop + .try + { + IL_0032: ldloc.0 + IL_0033: ldc.i4.s -4 + IL_0035: beq.s IL_003d + + IL_0037: ldloc.0 + IL_0038: ldc.i4.1 + IL_0039: beq.s IL_003d + + IL_003b: leave.s IL_0058 + + IL_003d: nop + .try + { + IL_003e: leave.s IL_0058 + + } // end .try + finally + { + IL_0040: ldarg.0 + IL_0041: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally2'() + IL_0046: endfinally + } // end handler + } // end .try + finally + { + IL_0047: ldarg.0 + IL_0048: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally1'() + IL_004d: endfinally + } // end handler + IL_004e: nop + .try + { + IL_004f: leave.s IL_0058 + + } // end .try + finally + { + IL_0051: ldarg.0 + IL_0052: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally3'() + IL_0057: endfinally + } // end handler + IL_0058: ret + } // end of method 'd__11'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 486 (0x1e6) + .maxstack 2 + .locals init (bool V_0, + int32 V_1, + string V_2) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0038, + IL_008d, + IL_00d5, + IL_00f5, + IL_0115, + IL_0135, + IL_0155, + IL_0172, + IL_01b7) + IL_0031: ldc.i4.0 + IL_0032: stloc.0 + IL_0033: leave IL_01e4 + + IL_0038: ldarg.0 + IL_0039: ldc.i4.m1 + IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_003f: ldarg.0 + IL_0040: ldarg.0 + IL_0041: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::input + IL_0046: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_004b: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_0050: ldarg.0 + IL_0051: ldc.i4.s -3 + IL_0053: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0058: br.s IL_00a2 + + IL_005a: ldarg.0 + IL_005b: ldarg.0 + IL_005c: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_0061: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_0066: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__3' + IL_006b: ldarg.0 + IL_006c: ldc.i4.s -4 + IL_006e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0073: ldarg.0 + IL_0074: ldarg.0 + IL_0075: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__3' + IL_007a: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_007f: ldarg.0 + IL_0080: ldc.i4.1 + IL_0081: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0086: ldc.i4.1 + IL_0087: stloc.0 + IL_0088: leave IL_01e4 + + IL_008d: ldarg.0 + IL_008e: ldc.i4.s -4 + IL_0090: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0095: ldarg.0 + IL_0096: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally2'() + IL_009b: ldarg.0 + IL_009c: ldnull + IL_009d: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__3' + IL_00a2: ldarg.0 + IL_00a3: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_00a8: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_00ad: brtrue.s IL_005a + + IL_00af: ldarg.0 + IL_00b0: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally1'() + IL_00b5: ldarg.0 + IL_00b6: ldnull + IL_00b7: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_00bc: ldarg.0 + IL_00bd: ldstr "A" + IL_00c2: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_00c7: ldarg.0 + IL_00c8: ldc.i4.2 + IL_00c9: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_00ce: ldc.i4.1 + IL_00cf: stloc.0 + IL_00d0: leave IL_01e4 + + IL_00d5: ldarg.0 + IL_00d6: ldc.i4.m1 + IL_00d7: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_00dc: ldarg.0 + IL_00dd: ldstr "B" + IL_00e2: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_00e7: ldarg.0 + IL_00e8: ldc.i4.3 + IL_00e9: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_00ee: ldc.i4.1 + IL_00ef: stloc.0 + IL_00f0: leave IL_01e4 + + IL_00f5: ldarg.0 + IL_00f6: ldc.i4.m1 + IL_00f7: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_00fc: ldarg.0 + IL_00fd: ldstr "C" + IL_0102: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0107: ldarg.0 + IL_0108: ldc.i4.4 + IL_0109: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_010e: ldc.i4.1 + IL_010f: stloc.0 + IL_0110: leave IL_01e4 + + IL_0115: ldarg.0 + IL_0116: ldc.i4.m1 + IL_0117: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_011c: ldarg.0 + IL_011d: ldstr "D" + IL_0122: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0127: ldarg.0 + IL_0128: ldc.i4.5 + IL_0129: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_012e: ldc.i4.1 + IL_012f: stloc.0 + IL_0130: leave IL_01e4 + + IL_0135: ldarg.0 + IL_0136: ldc.i4.m1 + IL_0137: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_013c: ldarg.0 + IL_013d: ldstr "E" + IL_0142: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0147: ldarg.0 + IL_0148: ldc.i4.6 + IL_0149: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_014e: ldc.i4.1 + IL_014f: stloc.0 + IL_0150: leave IL_01e4 + + IL_0155: ldarg.0 + IL_0156: ldc.i4.m1 + IL_0157: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_015c: ldarg.0 + IL_015d: ldstr "F" + IL_0162: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0167: ldarg.0 + IL_0168: ldc.i4.7 + IL_0169: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_016e: ldc.i4.1 + IL_016f: stloc.0 + IL_0170: leave.s IL_01e4 + + IL_0172: ldarg.0 + IL_0173: ldc.i4.m1 + IL_0174: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0179: ldarg.0 + IL_017a: ldarg.0 + IL_017b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::input + IL_0180: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0185: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_018a: ldarg.0 + IL_018b: ldc.i4.s -5 + IL_018d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0192: br.s IL_01bf + + IL_0194: ldarg.0 + IL_0195: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_019a: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_019f: stloc.2 + IL_01a0: ldarg.0 + IL_01a1: ldloc.2 + IL_01a2: callvirt instance string [mscorlib]System.String::ToUpper() + IL_01a7: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_01ac: ldarg.0 + IL_01ad: ldc.i4.8 + IL_01ae: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_01b3: ldc.i4.1 + IL_01b4: stloc.0 + IL_01b5: leave.s IL_01e4 + + IL_01b7: ldarg.0 + IL_01b8: ldc.i4.s -5 + IL_01ba: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_01bf: ldarg.0 + IL_01c0: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_01c5: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_01ca: brtrue.s IL_0194 + + IL_01cc: ldarg.0 + IL_01cd: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally3'() + IL_01d2: ldarg.0 + IL_01d3: ldnull + IL_01d4: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_01d9: ldc.i4.0 + IL_01da: stloc.0 + IL_01db: leave.s IL_01e4 + + } // end .try + fault + { + IL_01dd: ldarg.0 + IL_01de: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::System.IDisposable.Dispose() + IL_01e3: endfinally + } // end handler + IL_01e4: ldloc.0 + IL_01e5: ret + } // end of method 'd__11'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 27 (0x1b) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_000d: brfalse.s IL_001a + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: ret + } // end of method 'd__11'::'<>m__Finally1' + + .method private hidebysig instance void + '<>m__Finally2'() cil managed + { + // Code size 30 (0x1e) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.s -3 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0008: ldstr "Processed " + IL_000d: ldarg.0 + IL_000e: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__3' + IL_0013: call string [mscorlib]System.String::Concat(string, + string) + IL_0018: call void [mscorlib]System.Console::WriteLine(string) + IL_001d: ret + } // end of method 'd__11'::'<>m__Finally2' + + .method private hidebysig instance void + '<>m__Finally3'() cil managed + { + // Code size 27 (0x1b) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_000d: brfalse.s IL_001a + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>7__wrap1' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: ret + } // end of method 'd__11'::'<>m__Finally3' + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0006: ret + } // end of method 'd__11'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__11'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0006: ret + } // end of method 'd__11'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>3__input' + IL_0030: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::input + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__11'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__11'::System.Collections.IEnumerable.GetEnumerator + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__11'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__11'::System.Collections.IEnumerator.Current + } // end of class 'd__11' + + .class auto ansi sealed nested private beforefieldinit '<>c__DisplayClass12_0' + extends [mscorlib]System.Object + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field public string line + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ret + } // end of method '<>c__DisplayClass12_0'::.ctor + + .method assembly hidebysig instance string + 'b__0'() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0'::line + IL_0006: ret + } // end of method '<>c__DisplayClass12_0'::'b__0' + + } // end of class '<>c__DisplayClass12_0' + + .class auto ansi sealed nested private beforefieldinit 'd__12' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1>, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1>, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private class [mscorlib]System.Func`1 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field private class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap1' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__12'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 27 (0x1b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0010 + + IL_000c: ldloc.0 + IL_000d: ldc.i4.1 + IL_000e: bne.un.s IL_001a + + IL_0010: nop + .try + { + IL_0011: leave.s IL_001a + + } // end .try + finally + { + IL_0013: ldarg.0 + IL_0014: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>m__Finally1'() + IL_0019: endfinally + } // end handler + IL_001a: ret + } // end of method 'd__12'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 154 (0x9a) + .maxstack 3 + .locals init (bool V_0, + int32 V_1, + class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0' V_2) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: brfalse.s IL_0015 + + IL_000a: ldloc.1 + IL_000b: ldc.i4.1 + IL_000c: beq.s IL_006b + + IL_000e: ldc.i4.0 + IL_000f: stloc.0 + IL_0010: leave IL_0098 + + IL_0015: ldarg.0 + IL_0016: ldc.i4.m1 + IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_001c: ldarg.0 + IL_001d: ldarg.0 + IL_001e: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::input + IL_0023: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0028: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>7__wrap1' + IL_002d: ldarg.0 + IL_002e: ldc.i4.s -3 + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0035: br.s IL_0073 + + IL_0037: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0'::.ctor() + IL_003c: stloc.2 + IL_003d: ldloc.2 + IL_003e: ldarg.0 + IL_003f: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>7__wrap1' + IL_0044: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_0049: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0'::line + IL_004e: ldarg.0 + IL_004f: ldloc.2 + IL_0050: ldftn instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0'::'b__0'() + IL_0056: newobj instance void class [mscorlib]System.Func`1::.ctor(object, + native int) + IL_005b: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>2__current' + IL_0060: ldarg.0 + IL_0061: ldc.i4.1 + IL_0062: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0067: ldc.i4.1 + IL_0068: stloc.0 + IL_0069: leave.s IL_0098 + + IL_006b: ldarg.0 + IL_006c: ldc.i4.s -3 + IL_006e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0073: ldarg.0 + IL_0074: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>7__wrap1' + IL_0079: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_007e: brtrue.s IL_0037 + + IL_0080: ldarg.0 + IL_0081: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>m__Finally1'() + IL_0086: ldarg.0 + IL_0087: ldnull + IL_0088: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>7__wrap1' + IL_008d: ldc.i4.0 + IL_008e: stloc.0 + IL_008f: leave.s IL_0098 + + } // end .try + fault + { + IL_0091: ldarg.0 + IL_0092: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::System.IDisposable.Dispose() + IL_0097: endfinally + } // end handler + IL_0098: ldloc.0 + IL_0099: ret + } // end of method 'd__12'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 27 (0x1b) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>7__wrap1' + IL_000d: brfalse.s IL_001a + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>7__wrap1' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: ret + } // end of method 'd__12'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1>::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>2__current' + IL_0006: ret + } // end of method 'd__12'::'System.Collections.Generic.IEnumerator>.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__12'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>2__current' + IL_0006: ret + } // end of method 'd__12'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1> + 'System.Collections.Generic.IEnumerable>.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1>::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>3__input' + IL_0030: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::input + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__12'::'System.Collections.Generic.IEnumerable>.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1> ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'System.Collections.Generic.IEnumerable>.GetEnumerator'() + IL_0006: ret + } // end of method 'd__12'::System.Collections.IEnumerable.GetEnumerator + + .property instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.Current'() + { + .get instance class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'System.Collections.Generic.IEnumerator>.get_Current'() + } // end of property 'd__12'::'System.Collections.Generic.IEnumerator>.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__12'::System.Collections.IEnumerator.Current + } // end of class 'd__12' + + .class auto ansi sealed nested private beforefieldinit '<>c__DisplayClass13_0' + extends [mscorlib]System.Object + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field public string copy + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ret + } // end of method '<>c__DisplayClass13_0'::.ctor + + .method assembly hidebysig instance string + 'b__0'() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0'::copy + IL_0006: ret + } // end of method '<>c__DisplayClass13_0'::'b__0' + + } // end of class '<>c__DisplayClass13_0' + + .class auto ansi sealed nested private beforefieldinit 'd__13' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1>, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1>, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private class [mscorlib]System.Func`1 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field private class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>7__wrap1' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__13'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 27 (0x1b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0010 + + IL_000c: ldloc.0 + IL_000d: ldc.i4.1 + IL_000e: bne.un.s IL_001a + + IL_0010: nop + .try + { + IL_0011: leave.s IL_001a + + } // end .try + finally + { + IL_0013: ldarg.0 + IL_0014: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>m__Finally1'() + IL_0019: endfinally + } // end handler + IL_001a: ret + } // end of method 'd__13'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 156 (0x9c) + .maxstack 3 + .locals init (bool V_0, + int32 V_1, + string V_2, + class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0' V_3) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: brfalse.s IL_0015 + + IL_000a: ldloc.1 + IL_000b: ldc.i4.1 + IL_000c: beq.s IL_006d + + IL_000e: ldc.i4.0 + IL_000f: stloc.0 + IL_0010: leave IL_009a + + IL_0015: ldarg.0 + IL_0016: ldc.i4.m1 + IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_001c: ldarg.0 + IL_001d: ldarg.0 + IL_001e: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::input + IL_0023: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0028: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>7__wrap1' + IL_002d: ldarg.0 + IL_002e: ldc.i4.s -3 + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0035: br.s IL_0075 + + IL_0037: ldarg.0 + IL_0038: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>7__wrap1' + IL_003d: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_0042: stloc.2 + IL_0043: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0'::.ctor() + IL_0048: stloc.3 + IL_0049: ldloc.3 + IL_004a: ldloc.2 + IL_004b: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0'::copy + IL_0050: ldarg.0 + IL_0051: ldloc.3 + IL_0052: ldftn instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0'::'b__0'() + IL_0058: newobj instance void class [mscorlib]System.Func`1::.ctor(object, + native int) + IL_005d: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>2__current' + IL_0062: ldarg.0 + IL_0063: ldc.i4.1 + IL_0064: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0069: ldc.i4.1 + IL_006a: stloc.0 + IL_006b: leave.s IL_009a + + IL_006d: ldarg.0 + IL_006e: ldc.i4.s -3 + IL_0070: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0075: ldarg.0 + IL_0076: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>7__wrap1' + IL_007b: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_0080: brtrue.s IL_0037 + + IL_0082: ldarg.0 + IL_0083: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>m__Finally1'() + IL_0088: ldarg.0 + IL_0089: ldnull + IL_008a: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>7__wrap1' + IL_008f: ldc.i4.0 + IL_0090: stloc.0 + IL_0091: leave.s IL_009a + + } // end .try + fault + { + IL_0093: ldarg.0 + IL_0094: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::System.IDisposable.Dispose() + IL_0099: endfinally + } // end handler + IL_009a: ldloc.0 + IL_009b: ret + } // end of method 'd__13'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 27 (0x1b) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>7__wrap1' + IL_000d: brfalse.s IL_001a + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>7__wrap1' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: ret + } // end of method 'd__13'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1>::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>2__current' + IL_0006: ret + } // end of method 'd__13'::'System.Collections.Generic.IEnumerator>.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__13'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>2__current' + IL_0006: ret + } // end of method 'd__13'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1> + 'System.Collections.Generic.IEnumerable>.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1>::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>3__input' + IL_0030: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::input + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__13'::'System.Collections.Generic.IEnumerable>.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1> ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'System.Collections.Generic.IEnumerable>.GetEnumerator'() + IL_0006: ret + } // end of method 'd__13'::System.Collections.IEnumerable.GetEnumerator + + .property instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.Current'() + { + .get instance class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'System.Collections.Generic.IEnumerator>.get_Current'() + } // end of property 'd__13'::'System.Collections.Generic.IEnumerator>.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__13'::System.Collections.IEnumerator.Current + } // end of class 'd__13' + + .class auto ansi sealed nested private beforefieldinit 'd__14' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private int32 n + .field public int32 '<>3__n' + .field private int32 '5__2' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__14'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__14'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 102 (0x66) + .maxstack 3 + .locals init (int32 V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: brfalse.s IL_0010 + + IL_000a: ldloc.0 + IL_000b: ldc.i4.1 + IL_000c: beq.s IL_003f + + IL_000e: ldc.i4.0 + IL_000f: ret + + IL_0010: ldarg.0 + IL_0011: ldc.i4.m1 + IL_0012: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__2' + IL_001e: br.s IL_0056 + + IL_0020: ldarg.0 + IL_0021: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__2' + IL_0026: ldc.i4.2 + IL_0027: rem + IL_0028: brtrue.s IL_0046 + + IL_002a: ldarg.0 + IL_002b: ldarg.0 + IL_002c: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__2' + IL_0031: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>2__current' + IL_0036: ldarg.0 + IL_0037: ldc.i4.1 + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_003d: ldc.i4.1 + IL_003e: ret + + IL_003f: ldarg.0 + IL_0040: ldc.i4.m1 + IL_0041: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_0046: ldarg.0 + IL_0047: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__2' + IL_004c: stloc.1 + IL_004d: ldarg.0 + IL_004e: ldloc.1 + IL_004f: ldc.i4.1 + IL_0050: add + IL_0051: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__2' + IL_0056: ldarg.0 + IL_0057: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__2' + IL_005c: ldarg.0 + IL_005d: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::n + IL_0062: blt.s IL_0020 + + IL_0064: ldc.i4.0 + IL_0065: ret + } // end of method 'd__14'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>2__current' + IL_0006: ret + } // end of method 'd__14'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__14'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__14'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>3__n' + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::n + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__14'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__14'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__14'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__14'::System.Collections.IEnumerator.Current + } // end of class 'd__14' + + .class auto ansi sealed nested private beforefieldinit 'd__15' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private char '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__15'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 27 (0x1b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0010 + + IL_000c: ldloc.0 + IL_000d: ldc.i4.3 + IL_000e: bne.un.s IL_001a + + IL_0010: nop + .try + { + IL_0011: leave.s IL_001a + + } // end .try + finally + { + IL_0013: ldarg.0 + IL_0014: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally1'() + IL_0019: endfinally + } // end handler + IL_001a: ret + } // end of method 'd__15'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 200 (0xc8) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0024, + IL_0041, + IL_0074, + IL_00ad) + IL_001d: ldc.i4.0 + IL_001e: stloc.0 + IL_001f: leave IL_00c6 + + IL_0024: ldarg.0 + IL_0025: ldc.i4.m1 + IL_0026: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_002b: ldarg.0 + IL_002c: ldc.i4.s 97 + IL_002e: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0033: ldarg.0 + IL_0034: ldc.i4.1 + IL_0035: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_003a: ldc.i4.1 + IL_003b: stloc.0 + IL_003c: leave IL_00c6 + + IL_0041: ldarg.0 + IL_0042: ldc.i4.m1 + IL_0043: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + .try + { + IL_0048: ldstr "1 - try" + IL_004d: call void [mscorlib]System.Console::WriteLine(string) + IL_0052: leave.s IL_0061 + + } // end .try + catch [mscorlib]System.Exception + { + IL_0054: pop + IL_0055: ldstr "1 - catch" + IL_005a: call void [mscorlib]System.Console::WriteLine(string) + IL_005f: leave.s IL_0061 + + } // end handler + IL_0061: ldarg.0 + IL_0062: ldc.i4.s 98 + IL_0064: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0069: ldarg.0 + IL_006a: ldc.i4.2 + IL_006b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0070: ldc.i4.1 + IL_0071: stloc.0 + IL_0072: leave.s IL_00c6 + + IL_0074: ldarg.0 + IL_0075: ldc.i4.m1 + IL_0076: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_007b: ldarg.0 + IL_007c: ldc.i4.s -3 + IL_007e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + .try + { + IL_0083: ldstr "2 - try" + IL_0088: call void [mscorlib]System.Console::WriteLine(string) + IL_008d: leave.s IL_009a + + } // end .try + finally + { + IL_008f: ldstr "2 - finally" + IL_0094: call void [mscorlib]System.Console::WriteLine(string) + IL_0099: endfinally + } // end handler + IL_009a: ldarg.0 + IL_009b: ldc.i4.s 99 + IL_009d: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_00a2: ldarg.0 + IL_00a3: ldc.i4.3 + IL_00a4: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00a9: ldc.i4.1 + IL_00aa: stloc.0 + IL_00ab: leave.s IL_00c6 + + IL_00ad: ldarg.0 + IL_00ae: ldc.i4.s -3 + IL_00b0: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00b5: ldarg.0 + IL_00b6: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally1'() + IL_00bb: ldc.i4.0 + IL_00bc: stloc.0 + IL_00bd: leave.s IL_00c6 + + } // end .try + fault + { + IL_00bf: ldarg.0 + IL_00c0: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::System.IDisposable.Dispose() + IL_00c5: endfinally + } // end handler + IL_00c6: ldloc.0 + IL_00c7: ret + } // end of method 'd__15'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0007: ldstr "outer finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__15'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance char 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0006: ret + } // end of method 'd__15'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__15'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0006: box [mscorlib]System.Char + IL_000b: ret + } // end of method 'd__15'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__15'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__15'::System.Collections.IEnumerable.GetEnumerator + + .property instance char 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__15'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__15'::System.Collections.IEnumerator.Current + } // end of class 'd__15' + + .class auto ansi sealed nested private beforefieldinit 'd__16' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__16'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__16'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 101 (0x65) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001b, + IL_0032, + IL_005a) + IL_0019: ldc.i4.0 + IL_001a: ret + + IL_001b: ldarg.0 + IL_001c: ldc.i4.m1 + IL_001d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>2__current' + IL_0029: ldarg.0 + IL_002a: ldc.i4.1 + IL_002b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_0030: ldc.i4.1 + IL_0031: ret + + IL_0032: ldarg.0 + IL_0033: ldc.i4.m1 + IL_0034: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + .try + { + IL_0039: ldstr "In Try" + IL_003e: call void [mscorlib]System.Console::WriteLine(string) + IL_0043: leave.s IL_004a + + } // end .try + catch [mscorlib]System.Object + { + IL_0045: pop + IL_0046: ldc.i4.0 + IL_0047: stloc.0 + IL_0048: leave.s IL_0063 + + } // end handler + IL_004a: ldarg.0 + IL_004b: ldc.i4.1 + IL_004c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>2__current' + IL_0051: ldarg.0 + IL_0052: ldc.i4.2 + IL_0053: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_0058: ldc.i4.1 + IL_0059: ret + + IL_005a: ldarg.0 + IL_005b: ldc.i4.m1 + IL_005c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_0061: ldc.i4.0 + IL_0062: ret + + IL_0063: ldloc.0 + IL_0064: ret + } // end of method 'd__16'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>2__current' + IL_0006: ret + } // end of method 'd__16'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__16'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__16'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__16'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__16'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__16'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__16'::System.Collections.IEnumerator.Current + } // end of class 'd__16' + + .class auto ansi sealed nested private beforefieldinit 'd__17' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__17'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 29 (0x1d) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0012 + + IL_000c: ldloc.0 + IL_000d: ldc.i4.1 + IL_000e: sub + IL_000f: ldc.i4.1 + IL_0010: bgt.un.s IL_001c + + IL_0012: nop + .try + { + IL_0013: leave.s IL_001c + + } // end .try + finally + { + IL_0015: ldarg.0 + IL_0016: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>m__Finally1'() + IL_001b: endfinally + } // end handler + IL_001c: ret + } // end of method 'd__17'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 142 (0x8e) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001d, + IL_003e, + IL_0069) + IL_0019: ldc.i4.0 + IL_001a: stloc.0 + IL_001b: leave.s IL_008c + + IL_001d: ldarg.0 + IL_001e: ldc.i4.m1 + IL_001f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0024: ldarg.0 + IL_0025: ldc.i4.s -3 + IL_0027: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_002c: ldarg.0 + IL_002d: ldc.i4.0 + IL_002e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>2__current' + IL_0033: ldarg.0 + IL_0034: ldc.i4.1 + IL_0035: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_003a: ldc.i4.1 + IL_003b: stloc.0 + IL_003c: leave.s IL_008c + + IL_003e: ldarg.0 + IL_003f: ldc.i4.s -3 + IL_0041: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + .try + { + IL_0046: ldstr "In Try" + IL_004b: call void [mscorlib]System.Console::WriteLine(string) + IL_0050: leave.s IL_0057 + + } // end .try + catch [mscorlib]System.Object + { + IL_0052: pop + IL_0053: ldc.i4.0 + IL_0054: stloc.0 + IL_0055: leave.s IL_0079 + + } // end handler + IL_0057: ldarg.0 + IL_0058: ldc.i4.1 + IL_0059: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>2__current' + IL_005e: ldarg.0 + IL_005f: ldc.i4.2 + IL_0060: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0065: ldc.i4.1 + IL_0066: stloc.0 + IL_0067: leave.s IL_008c + + IL_0069: ldarg.0 + IL_006a: ldc.i4.s -3 + IL_006c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0071: ldarg.0 + IL_0072: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>m__Finally1'() + IL_0077: br.s IL_0081 + + IL_0079: ldarg.0 + IL_007a: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>m__Finally1'() + IL_007f: leave.s IL_008c + + IL_0081: ldc.i4.0 + IL_0082: stloc.0 + IL_0083: leave.s IL_008c + + } // end .try + fault + { + IL_0085: ldarg.0 + IL_0086: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::System.IDisposable.Dispose() + IL_008b: endfinally + } // end handler + IL_008c: ldloc.0 + IL_008d: ret + } // end of method 'd__17'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0007: ldstr "Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__17'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>2__current' + IL_0006: ret + } // end of method 'd__17'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__17'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__17'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__17'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__17'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__17'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__17'::System.Collections.IEnumerator.Current + } // end of class 'd__17' + + .class auto ansi sealed nested private beforefieldinit 'd__18' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__18'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 29 (0x1d) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0012 + + IL_000c: ldloc.0 + IL_000d: ldc.i4.1 + IL_000e: sub + IL_000f: ldc.i4.1 + IL_0010: bgt.un.s IL_001c + + IL_0012: nop + .try + { + IL_0013: leave.s IL_001c + + } // end .try + finally + { + IL_0015: ldarg.0 + IL_0016: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>m__Finally1'() + IL_001b: endfinally + } // end handler + IL_001c: ret + } // end of method 'd__18'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 152 (0x98) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001d, + IL_003e, + IL_0073) + IL_0019: ldc.i4.0 + IL_001a: stloc.0 + IL_001b: leave.s IL_0096 + + IL_001d: ldarg.0 + IL_001e: ldc.i4.m1 + IL_001f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0024: ldarg.0 + IL_0025: ldc.i4.s -3 + IL_0027: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_002c: ldarg.0 + IL_002d: ldc.i4.0 + IL_002e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>2__current' + IL_0033: ldarg.0 + IL_0034: ldc.i4.1 + IL_0035: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_003a: ldc.i4.1 + IL_003b: stloc.0 + IL_003c: leave.s IL_0096 + + IL_003e: ldarg.0 + IL_003f: ldc.i4.s -3 + IL_0041: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + .try + { + IL_0046: ldstr "In Try" + IL_004b: call void [mscorlib]System.Console::WriteLine(string) + IL_0050: ldc.i4.0 + IL_0051: stloc.0 + IL_0052: leave.s IL_0083 + + } // end .try + catch [mscorlib]System.Object + { + IL_0054: pop + IL_0055: ldstr "Catch" + IL_005a: call void [mscorlib]System.Console::WriteLine(string) + IL_005f: leave.s IL_0061 + + } // end handler + IL_0061: ldarg.0 + IL_0062: ldc.i4.1 + IL_0063: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>2__current' + IL_0068: ldarg.0 + IL_0069: ldc.i4.2 + IL_006a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_006f: ldc.i4.1 + IL_0070: stloc.0 + IL_0071: leave.s IL_0096 + + IL_0073: ldarg.0 + IL_0074: ldc.i4.s -3 + IL_0076: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_007b: ldarg.0 + IL_007c: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>m__Finally1'() + IL_0081: br.s IL_008b + + IL_0083: ldarg.0 + IL_0084: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>m__Finally1'() + IL_0089: leave.s IL_0096 + + IL_008b: ldc.i4.0 + IL_008c: stloc.0 + IL_008d: leave.s IL_0096 + + } // end .try + fault + { + IL_008f: ldarg.0 + IL_0090: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::System.IDisposable.Dispose() + IL_0095: endfinally + } // end handler + IL_0096: ldloc.0 + IL_0097: ret + } // end of method 'd__18'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0007: ldstr "Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__18'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>2__current' + IL_0006: ret + } // end of method 'd__18'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__18'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__18'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__18'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__18'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__18'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__18'::System.Collections.IEnumerator.Current + } // end of class 'd__18' + + .class auto ansi sealed nested private beforefieldinit 'd__19' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private bool b + .field public bool '<>3__b' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__19'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 29 (0x1d) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0012 + + IL_000c: ldloc.0 + IL_000d: ldc.i4.1 + IL_000e: sub + IL_000f: ldc.i4.1 + IL_0010: bgt.un.s IL_001c + + IL_0012: nop + .try + { + IL_0013: leave.s IL_001c + + } // end .try + finally + { + IL_0015: ldarg.0 + IL_0016: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>m__Finally1'() + IL_001b: endfinally + } // end handler + IL_001c: ret + } // end of method 'd__19'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 163 (0xa3) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0020, + IL_0041, + IL_007e) + IL_0019: ldc.i4.0 + IL_001a: stloc.0 + IL_001b: leave IL_00a1 + + IL_0020: ldarg.0 + IL_0021: ldc.i4.m1 + IL_0022: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0027: ldarg.0 + IL_0028: ldc.i4.s -3 + IL_002a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_002f: ldarg.0 + IL_0030: ldc.i4.0 + IL_0031: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>2__current' + IL_0036: ldarg.0 + IL_0037: ldc.i4.1 + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_003d: ldc.i4.1 + IL_003e: stloc.0 + IL_003f: leave.s IL_00a1 + + IL_0041: ldarg.0 + IL_0042: ldc.i4.s -3 + IL_0044: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + .try + { + IL_0049: ldstr "In Try" + IL_004e: call void [mscorlib]System.Console::WriteLine(string) + IL_0053: ldarg.0 + IL_0054: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::b + IL_0059: brfalse.s IL_005f + + IL_005b: ldc.i4.0 + IL_005c: stloc.0 + IL_005d: leave.s IL_008e + + IL_005f: leave.s IL_006c + + } // end .try + finally + { + IL_0061: ldstr "Inner Finally" + IL_0066: call void [mscorlib]System.Console::WriteLine(string) + IL_006b: endfinally + } // end handler + IL_006c: ldarg.0 + IL_006d: ldc.i4.1 + IL_006e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>2__current' + IL_0073: ldarg.0 + IL_0074: ldc.i4.2 + IL_0075: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_007a: ldc.i4.1 + IL_007b: stloc.0 + IL_007c: leave.s IL_00a1 + + IL_007e: ldarg.0 + IL_007f: ldc.i4.s -3 + IL_0081: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0086: ldarg.0 + IL_0087: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>m__Finally1'() + IL_008c: br.s IL_0096 + + IL_008e: ldarg.0 + IL_008f: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>m__Finally1'() + IL_0094: leave.s IL_00a1 + + IL_0096: ldc.i4.0 + IL_0097: stloc.0 + IL_0098: leave.s IL_00a1 + + } // end .try + fault + { + IL_009a: ldarg.0 + IL_009b: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::System.IDisposable.Dispose() + IL_00a0: endfinally + } // end handler + IL_00a1: ldloc.0 + IL_00a2: ret + } // end of method 'd__19'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0007: ldstr "Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__19'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>2__current' + IL_0006: ret + } // end of method 'd__19'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__19'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__19'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>3__b' + IL_0030: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::b + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__19'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__19'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__19'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__19'::System.Collections.IEnumerator.Current + } // end of class 'd__19' + + .class auto ansi sealed nested private beforefieldinit 'd__20' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__20'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__20'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 21 (0x15) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: brfalse.s IL_000c + + IL_000a: ldc.i4.0 + IL_000b: ret + + IL_000c: ldarg.0 + IL_000d: ldc.i4.m1 + IL_000e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>1__state' + IL_0013: ldc.i4.0 + IL_0014: ret + } // end of method 'd__20'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>2__current' + IL_0006: ret + } // end of method 'd__20'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__20'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__20'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__20'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__20'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__20'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__20'::System.Collections.IEnumerator.Current + } // end of class 'd__20' + + .class auto ansi sealed nested private beforefieldinit 'd__21' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__21'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 27 (0x1b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0010 + + IL_000c: ldloc.0 + IL_000d: ldc.i4.1 + IL_000e: bne.un.s IL_001a + + IL_0010: nop + .try + { + IL_0011: leave.s IL_001a + + } // end .try + finally + { + IL_0013: ldarg.0 + IL_0014: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>m__Finally1'() + IL_0019: endfinally + } // end handler + IL_001a: ret + } // end of method 'd__21'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 74 (0x4a) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: brfalse.s IL_0012 + + IL_000a: ldloc.1 + IL_000b: ldc.i4.1 + IL_000c: beq.s IL_0033 + + IL_000e: ldc.i4.0 + IL_000f: stloc.0 + IL_0010: leave.s IL_0048 + + IL_0012: ldarg.0 + IL_0013: ldc.i4.m1 + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0019: ldarg.0 + IL_001a: ldc.i4.s -3 + IL_001c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0021: ldarg.0 + IL_0022: ldc.i4.0 + IL_0023: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>2__current' + IL_0028: ldarg.0 + IL_0029: ldc.i4.1 + IL_002a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_002f: ldc.i4.1 + IL_0030: stloc.0 + IL_0031: leave.s IL_0048 + + IL_0033: ldarg.0 + IL_0034: ldc.i4.s -3 + IL_0036: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_003b: newobj instance void [mscorlib]System.NotImplementedException::.ctor() + IL_0040: throw + + } // end .try + fault + { + IL_0041: ldarg.0 + IL_0042: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::System.IDisposable.Dispose() + IL_0047: endfinally + } // end handler + IL_0048: ldloc.0 + IL_0049: ret + } // end of method 'd__21'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0007: ldstr "Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__21'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>2__current' + IL_0006: ret + } // end of method 'd__21'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__21'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__21'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__21'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__21'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__21'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__21'::System.Collections.IEnumerator.Current + } // end of class 'd__21' + + .class auto ansi sealed nested private beforefieldinit 'd__22' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__22'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 48 (0x30) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -4 + IL_000a: sub + IL_000b: ldc.i4.1 + IL_000c: ble.un.s IL_0012 + + IL_000e: ldloc.0 + IL_000f: ldc.i4.1 + IL_0010: bne.un.s IL_002f + + IL_0012: nop + .try + { + IL_0013: ldloc.0 + IL_0014: ldc.i4.s -4 + IL_0016: beq.s IL_001e + + IL_0018: ldloc.0 + IL_0019: ldc.i4.1 + IL_001a: beq.s IL_001e + + IL_001c: leave.s IL_002f + + IL_001e: nop + .try + { + IL_001f: leave.s IL_002f + + } // end .try + finally + { + IL_0021: ldarg.0 + IL_0022: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>m__Finally2'() + IL_0027: endfinally + } // end handler + } // end .try + finally + { + IL_0028: ldarg.0 + IL_0029: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>m__Finally1'() + IL_002e: endfinally + } // end handler + IL_002f: ret + } // end of method 'd__22'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 92 (0x5c) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: brfalse.s IL_0012 + + IL_000a: ldloc.1 + IL_000b: ldc.i4.1 + IL_000c: beq.s IL_003b + + IL_000e: ldc.i4.0 + IL_000f: stloc.0 + IL_0010: leave.s IL_005a + + IL_0012: ldarg.0 + IL_0013: ldc.i4.m1 + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0019: ldarg.0 + IL_001a: ldc.i4.s -3 + IL_001c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0021: ldarg.0 + IL_0022: ldc.i4.s -4 + IL_0024: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0029: ldarg.0 + IL_002a: ldc.i4.0 + IL_002b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>2__current' + IL_0030: ldarg.0 + IL_0031: ldc.i4.1 + IL_0032: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0037: ldc.i4.1 + IL_0038: stloc.0 + IL_0039: leave.s IL_005a + + IL_003b: ldarg.0 + IL_003c: ldc.i4.s -4 + IL_003e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0043: ldarg.0 + IL_0044: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>m__Finally2'() + IL_0049: ldarg.0 + IL_004a: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>m__Finally1'() + IL_004f: ldc.i4.0 + IL_0050: stloc.0 + IL_0051: leave.s IL_005a + + } // end .try + fault + { + IL_0053: ldarg.0 + IL_0054: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::System.IDisposable.Dispose() + IL_0059: endfinally + } // end handler + IL_005a: ldloc.0 + IL_005b: ret + } // end of method 'd__22'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 18 (0x12) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0007: ldstr "Outer Finally" + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: ret + } // end of method 'd__22'::'<>m__Finally1' + + .method private hidebysig instance void + '<>m__Finally2'() cil managed + { + // Code size 19 (0x13) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.s -3 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0008: ldstr "Inner Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: ret + } // end of method 'd__22'::'<>m__Finally2' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>2__current' + IL_0006: ret + } // end of method 'd__22'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__22'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__22'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__22'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__22'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__22'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__22'::System.Collections.IEnumerator.Current + } // end of class 'd__22' + + .class auto ansi sealed nested private beforefieldinit 'd__23`1'<([mscorlib]System.IDisposable) T> + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private !T a + .field public !T '<>3__a' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__23`1'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 27 (0x1b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0010 + + IL_000c: ldloc.0 + IL_000d: ldc.i4.2 + IL_000e: bne.un.s IL_001a + + IL_0010: nop + .try + { + IL_0011: leave.s IL_001a + + } // end .try + finally + { + IL_0013: ldarg.0 + IL_0014: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>m__Finally1'() + IL_0019: endfinally + } // end handler + IL_001a: ret + } // end of method 'd__23`1'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 143 (0x8f) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0021, + IL_003a, + IL_005b, + IL_007b) + IL_001d: ldc.i4.0 + IL_001e: stloc.0 + IL_001f: leave.s IL_008d + + IL_0021: ldarg.0 + IL_0022: ldc.i4.m1 + IL_0023: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0028: ldarg.0 + IL_0029: ldc.i4.1 + IL_002a: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>2__current' + IL_002f: ldarg.0 + IL_0030: ldc.i4.1 + IL_0031: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0036: ldc.i4.1 + IL_0037: stloc.0 + IL_0038: leave.s IL_008d + + IL_003a: ldarg.0 + IL_003b: ldc.i4.m1 + IL_003c: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0041: ldarg.0 + IL_0042: ldc.i4.s -3 + IL_0044: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0049: ldarg.0 + IL_004a: ldc.i4.2 + IL_004b: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>2__current' + IL_0050: ldarg.0 + IL_0051: ldc.i4.2 + IL_0052: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0057: ldc.i4.1 + IL_0058: stloc.0 + IL_0059: leave.s IL_008d + + IL_005b: ldarg.0 + IL_005c: ldc.i4.s -3 + IL_005e: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0063: ldarg.0 + IL_0064: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>m__Finally1'() + IL_0069: ldarg.0 + IL_006a: ldc.i4.3 + IL_006b: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>2__current' + IL_0070: ldarg.0 + IL_0071: ldc.i4.3 + IL_0072: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0077: ldc.i4.1 + IL_0078: stloc.0 + IL_0079: leave.s IL_008d + + IL_007b: ldarg.0 + IL_007c: ldc.i4.m1 + IL_007d: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0082: ldc.i4.0 + IL_0083: stloc.0 + IL_0084: leave.s IL_008d + + } // end .try + fault + { + IL_0086: ldarg.0 + IL_0087: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::System.IDisposable.Dispose() + IL_008c: endfinally + } // end handler + IL_008d: ldloc.0 + IL_008e: ret + } // end of method 'd__23`1'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 41 (0x29) + .maxstack 2 + .locals init (!T V_0) + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::a + IL_000d: stloc.0 + IL_000e: ldloca.s V_0 + IL_0010: constrained. !T + IL_0016: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001b: ldloca.s V_0 + IL_001d: constrained. !T + IL_0023: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_0028: ret + } // end of method 'd__23`1'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>2__current' + IL_0006: ret + } // end of method 'd__23`1'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__23`1'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__23`1'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>3__a' + IL_0030: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::a + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__23`1'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__23`1'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__23`1'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__23`1'::System.Collections.IEnumerator.Current + } // end of class 'd__23`1' + + .class auto ansi sealed nested private beforefieldinit 'd__24`1'<.ctor T> + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private !T '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private !T '5__2' + .field private int32 '5__3' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__24`1'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__24`1'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 98 (0x62) + .maxstack 3 + .locals init (int32 V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: brfalse.s IL_0010 + + IL_000a: ldloc.0 + IL_000b: ldc.i4.1 + IL_000c: beq.s IL_0040 + + IL_000e: ldc.i4.0 + IL_000f: ret + + IL_0010: ldarg.0 + IL_0011: ldc.i4.m1 + IL_0012: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_0017: ldarg.0 + IL_0018: call !!0 [mscorlib]System.Activator::CreateInstance() + IL_001d: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__2' + IL_0022: ldarg.0 + IL_0023: ldc.i4.0 + IL_0024: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__3' + IL_0029: br.s IL_0057 + + IL_002b: ldarg.0 + IL_002c: ldarg.0 + IL_002d: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__2' + IL_0032: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>2__current' + IL_0037: ldarg.0 + IL_0038: ldc.i4.1 + IL_0039: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_003e: ldc.i4.1 + IL_003f: ret + + IL_0040: ldarg.0 + IL_0041: ldc.i4.m1 + IL_0042: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_0047: ldarg.0 + IL_0048: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__3' + IL_004d: stloc.1 + IL_004e: ldarg.0 + IL_004f: ldloc.1 + IL_0050: ldc.i4.1 + IL_0051: add + IL_0052: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__3' + IL_0057: ldarg.0 + IL_0058: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__3' + IL_005d: ldc.i4.3 + IL_005e: blt.s IL_002b + + IL_0060: ldc.i4.0 + IL_0061: ret + } // end of method 'd__24`1'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance !T 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>2__current' + IL_0006: ret + } // end of method 'd__24`1'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__24`1'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>2__current' + IL_0006: box !T + IL_000b: ret + } // end of method 'd__24`1'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__24`1'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__24`1'::System.Collections.IEnumerable.GetEnumerator + + .property instance !T 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance !T ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__24`1'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__24`1'::System.Collections.IEnumerator.Current + } // end of class 'd__24`1' + + .field private int32 fieldOnThis + .method public hidebysig specialname static + class [mscorlib]System.Collections.Generic.IEnumerable`1 + get_YieldChars() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 58 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..XICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 67 65 74 5F 59 69 65 6C // tyTest+d__2.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::get_YieldChars + + .method assembly hidebysig static void + Print(string name, + class [mscorlib]System.Collections.Generic.IEnumerator`1 enumerator) cil managed + { + // Code size 54 (0x36) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldstr ": Test start" + IL_0006: call string [mscorlib]System.String::Concat(string, + string) + IL_000b: call void [mscorlib]System.Console::WriteLine(string) + IL_0010: br.s IL_002d + + IL_0012: ldarg.0 + IL_0013: ldstr ": " + IL_0018: ldarg.1 + IL_0019: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_001e: box !!T + IL_0023: call string [mscorlib]System.String::Concat(object, + object, + object) + IL_0028: call void [mscorlib]System.Console::WriteLine(string) + IL_002d: ldarg.1 + IL_002e: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_0033: brtrue.s IL_0012 + + IL_0035: ret + } // end of method YieldReturnPrettyTest::Print + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + SimpleYieldReturn() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..[ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 53 69 6D 70 6C 65 59 69 // tyTest+d__4.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::SimpleYieldReturn + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerator`1 + SimpleYieldReturnEnumerator() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 65 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..eICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 53 69 6D 70 6C 65 59 69 // tyTest+d__5.. + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldc.i4.0 + IL_0001: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::.ctor(int32) + IL_0006: ret + } // end of method YieldReturnPrettyTest::SimpleYieldReturnEnumerator + + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnParameters(int32 p) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5F 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // .._ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d_ + 5F 36 00 00 ) // _6.. + // Code size 22 (0x16) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>4__this' + IL_000e: dup + IL_000f: ldarg.1 + IL_0010: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>3__p' + IL_0015: ret + } // end of method YieldReturnPrettyTest::YieldReturnParameters + + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + YieldReturnParametersEnumerator(int32 p) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 69 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..iICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__7.. + // Code size 21 (0x15) + .maxstack 8 + IL_0000: ldc.i4.0 + IL_0001: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::.ctor(int32) + IL_0006: dup + IL_0007: ldarg.0 + IL_0008: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>4__this' + IL_000d: dup + IL_000e: ldarg.1 + IL_000f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::p + IL_0014: ret + } // end of method YieldReturnPrettyTest::YieldReturnParametersEnumerator + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnInLoop() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..[ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__8.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldReturnInLoop + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithTryFinally() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 63 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..cICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__9.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithNestedTryFinally(bool breakInMiddle) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 6A 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..jICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__10.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>3__breakInMiddle' + IL_000e: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithNestedTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithTwoNonNestedFinallyBlocks(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 73 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..sICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__11.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>3__input' + IL_000e: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithTwoNonNestedFinallyBlocks + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1> + YieldReturnWithAnonymousMethods1(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 6B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..kICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__12.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>3__input' + IL_000e: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithAnonymousMethods1 + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1> + YieldReturnWithAnonymousMethods2(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 6B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..kICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__13.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>3__input' + IL_000e: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithAnonymousMethods2 + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + GetEvenNumbers(int32 n) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 59 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..YICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 47 65 74 45 76 65 6E 4E // tyTest+d__14.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>3__n' + IL_000e: ret + } // end of method YieldReturnPrettyTest::GetEvenNumbers + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + ExceptionHandling() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5C 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..\ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 45 78 63 65 70 74 69 6F // tyTest+d__15. + 00 ) + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::ExceptionHandling + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInCatch() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5C 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..\ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 42 72 65 // tyTest+d__16. + 00 ) + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldBreakInCatch + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInCatchInTryFinally() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 68 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..hICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 42 72 65 // tyTest+d__17.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldBreakInCatchInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInTryCatchInTryFinally() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 6B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..kICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 42 72 65 // tyTest+d__18.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldBreakInTryCatchInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInTryFinallyInTryFinally(bool b) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 6D 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..mICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 42 72 65 // tyTest+d__19 + 00 00 ) + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>3__b' + IL_000e: ret + } // end of method YieldReturnPrettyTest::YieldBreakInTryFinallyInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakOnly() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 59 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..YICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 42 72 65 // tyTest+d__20.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldBreakOnly + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + UnconditionalThrowInTryFinally() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 69 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..iICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 55 6E 63 6F 6E 64 69 74 // tyTest+d__21.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::UnconditionalThrowInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + NestedTryFinallyStartingOnSamePosition() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 71 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..qICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 4E 65 73 74 65 64 54 72 // tyTest+d + 5F 5F 32 32 00 00 ) // __22.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::NestedTryFinallyStartingOnSamePosition + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + LocalInFinally<([mscorlib]System.IDisposable) T>(!!T a) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..[ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 4C 6F 63 61 6C 49 6E 46 // tyTest+d__23`1.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>3__a' + IL_000e: ret + } // end of method YieldReturnPrettyTest::LocalInFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + GenericYield<.ctor T>() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 59 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..YICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 47 65 6E 65 72 69 63 59 // tyTest+d__24`1.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::GenericYield + + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ret + } // end of method YieldReturnPrettyTest::.ctor + + .property class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldChars() + { + .get class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::get_YieldChars() + } // end of property YieldReturnPrettyTest::YieldChars +} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest + +.class private sequential ansi sealed beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + extends [mscorlib]System.ValueType +{ + .class auto ansi sealed nested private beforefieldinit 'd__1' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field public valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn '<>4__this' + .field public valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn '<>3__<>4__this' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 25 (0x19) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_000d: ldarg.0 + IL_000e: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0013: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>l__initialThreadId' + IL_0018: ret + } // end of method 'd__1'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__1'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 134 (0x86) + .maxstack 4 + .locals init (int32 V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001b, + IL_004c, + IL_007d) + IL_0019: ldc.i4.0 + IL_001a: ret + + IL_001b: ldarg.0 + IL_001c: ldc.i4.m1 + IL_001d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_0022: ldarg.0 + IL_0023: ldarg.0 + IL_0024: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>4__this' + IL_0029: ldarg.0 + IL_002a: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>4__this' + IL_002f: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_0034: stloc.1 + IL_0035: ldloc.1 + IL_0036: ldc.i4.1 + IL_0037: add + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_003d: ldloc.1 + IL_003e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>2__current' + IL_0043: ldarg.0 + IL_0044: ldc.i4.1 + IL_0045: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_004a: ldc.i4.1 + IL_004b: ret + + IL_004c: ldarg.0 + IL_004d: ldc.i4.m1 + IL_004e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_0053: ldarg.0 + IL_0054: ldarg.0 + IL_0055: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>4__this' + IL_005a: ldarg.0 + IL_005b: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>4__this' + IL_0060: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_0065: stloc.1 + IL_0066: ldloc.1 + IL_0067: ldc.i4.1 + IL_0068: add + IL_0069: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_006e: ldloc.1 + IL_006f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>2__current' + IL_0074: ldarg.0 + IL_0075: ldc.i4.2 + IL_0076: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_007b: ldc.i4.1 + IL_007c: ret + + IL_007d: ldarg.0 + IL_007e: ldc.i4.m1 + IL_007f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_0084: ldc.i4.0 + IL_0085: ret + } // end of method 'd__1'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>2__current' + IL_0006: ret + } // end of method 'd__1'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__1'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__1'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>3__<>4__this' + IL_0030: stfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>4__this' + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__1'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__1'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__1'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__1'::System.Collections.IEnumerator.Current + } // end of class 'd__1' + + .field private int32 val + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerable`1 + Count() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 4F 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..OICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 53 74 72 75 63 74 57 69 74 68 59 69 65 6C 64 // .StructWithYield + 52 65 74 75 72 6E 2B 3C 43 6F 75 6E 74 3E 64 5F // Return+d_ + 5F 31 00 00 ) // _1.. + // Code size 20 (0x14) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: ldobj ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + IL_000e: stfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>3__<>4__this' + IL_0013: ret + } // end of method StructWithYieldReturn::Count + +} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + + +// ============================================================= + +// *********** DISASSEMBLY COMPLETE *********************** diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.roslyn.il b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.roslyn.il new file mode 100644 index 000000000..0226e10e6 --- /dev/null +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.roslyn.il @@ -0,0 +1,6641 @@ + + + + +// Metadata version: v4.0.30319 +.assembly extern mscorlib +{ + .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. + .ver 4:0:0:0 +} +.assembly YieldReturn +{ + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) + .custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx + 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows. + + // --- The following custom attribute is added automatically, do not uncomment ------- + // .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 07 01 00 00 00 00 ) + + .permissionset reqmin + = {[mscorlib]System.Security.Permissions.SecurityPermissionAttribute = {property bool 'SkipVerification' = bool(true)}} + .hash algorithm 0x00008004 + .ver 0:0:0:0 +} +.module YieldReturn.dll +.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) +.imagebase 0x10000000 +.file alignment 0x00000200 +.stackreserve 0x00100000 +.subsystem 0x0003 // WINDOWS_CUI +.corflags 0x00000001 // ILONLY + + +// =============== CLASS MEMBERS DECLARATION =================== + +.class public auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest + extends [mscorlib]System.Object +{ + .class auto ansi sealed nested private beforefieldinit 'd__2' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private char '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__2'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__2'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 123 (0x7b) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001f, + IL_0021, + IL_0023, + IL_0025) + IL_001d: br.s IL_0027 + + IL_001f: br.s IL_0029 + + IL_0021: br.s IL_0042 + + IL_0023: br.s IL_005a + + IL_0025: br.s IL_0072 + + IL_0027: ldc.i4.0 + IL_0028: ret + + IL_0029: ldarg.0 + IL_002a: ldc.i4.m1 + IL_002b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0030: nop + IL_0031: ldarg.0 + IL_0032: ldc.i4.s 97 + IL_0034: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>2__current' + IL_0039: ldarg.0 + IL_003a: ldc.i4.1 + IL_003b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0040: ldc.i4.1 + IL_0041: ret + + IL_0042: ldarg.0 + IL_0043: ldc.i4.m1 + IL_0044: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0049: ldarg.0 + IL_004a: ldc.i4.s 98 + IL_004c: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>2__current' + IL_0051: ldarg.0 + IL_0052: ldc.i4.2 + IL_0053: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0058: ldc.i4.1 + IL_0059: ret + + IL_005a: ldarg.0 + IL_005b: ldc.i4.m1 + IL_005c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0061: ldarg.0 + IL_0062: ldc.i4.s 99 + IL_0064: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>2__current' + IL_0069: ldarg.0 + IL_006a: ldc.i4.3 + IL_006b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0070: ldc.i4.1 + IL_0071: ret + + IL_0072: ldarg.0 + IL_0073: ldc.i4.m1 + IL_0074: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0079: ldc.i4.0 + IL_007a: ret + } // end of method 'd__2'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance char 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>2__current' + IL_0006: ret + } // end of method 'd__2'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__2'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>2__current' + IL_0006: box [mscorlib]System.Char + IL_000b: ret + } // end of method 'd__2'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__2'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__2'::System.Collections.IEnumerable.GetEnumerator + + .property instance char 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__2'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__2'::System.Collections.IEnumerator.Current + } // end of class 'd__2' + + .class auto ansi sealed nested private beforefieldinit 'd__4' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private string '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__4'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__4'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 132 (0x84) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001f, + IL_0021, + IL_0023, + IL_0025) + IL_001d: br.s IL_0027 + + IL_001f: br.s IL_0029 + + IL_0021: br.s IL_0045 + + IL_0023: br.s IL_0060 + + IL_0025: br.s IL_007b + + IL_0027: ldc.i4.0 + IL_0028: ret + + IL_0029: ldarg.0 + IL_002a: ldc.i4.m1 + IL_002b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0030: nop + IL_0031: ldarg.0 + IL_0032: ldstr "A" + IL_0037: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>2__current' + IL_003c: ldarg.0 + IL_003d: ldc.i4.1 + IL_003e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0043: ldc.i4.1 + IL_0044: ret + + IL_0045: ldarg.0 + IL_0046: ldc.i4.m1 + IL_0047: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_004c: ldarg.0 + IL_004d: ldstr "B" + IL_0052: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>2__current' + IL_0057: ldarg.0 + IL_0058: ldc.i4.2 + IL_0059: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_005e: ldc.i4.1 + IL_005f: ret + + IL_0060: ldarg.0 + IL_0061: ldc.i4.m1 + IL_0062: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0067: ldarg.0 + IL_0068: ldstr "C" + IL_006d: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>2__current' + IL_0072: ldarg.0 + IL_0073: ldc.i4.3 + IL_0074: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0079: ldc.i4.1 + IL_007a: ret + + IL_007b: ldarg.0 + IL_007c: ldc.i4.m1 + IL_007d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0082: ldc.i4.0 + IL_0083: ret + } // end of method 'd__4'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>2__current' + IL_0006: ret + } // end of method 'd__4'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__4'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>2__current' + IL_0006: ret + } // end of method 'd__4'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__4'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__4'::System.Collections.IEnumerable.GetEnumerator + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__4'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__4'::System.Collections.IEnumerator.Current + } // end of class 'd__4' + + .class auto ansi sealed nested private beforefieldinit 'd__5' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private string '<>2__current' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_000e: ret + } // end of method 'd__5'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__5'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 132 (0x84) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001f, + IL_0021, + IL_0023, + IL_0025) + IL_001d: br.s IL_0027 + + IL_001f: br.s IL_0029 + + IL_0021: br.s IL_0045 + + IL_0023: br.s IL_0060 + + IL_0025: br.s IL_007b + + IL_0027: ldc.i4.0 + IL_0028: ret + + IL_0029: ldarg.0 + IL_002a: ldc.i4.m1 + IL_002b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0030: nop + IL_0031: ldarg.0 + IL_0032: ldstr "A" + IL_0037: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>2__current' + IL_003c: ldarg.0 + IL_003d: ldc.i4.1 + IL_003e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0043: ldc.i4.1 + IL_0044: ret + + IL_0045: ldarg.0 + IL_0046: ldc.i4.m1 + IL_0047: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_004c: ldarg.0 + IL_004d: ldstr "B" + IL_0052: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>2__current' + IL_0057: ldarg.0 + IL_0058: ldc.i4.2 + IL_0059: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_005e: ldc.i4.1 + IL_005f: ret + + IL_0060: ldarg.0 + IL_0061: ldc.i4.m1 + IL_0062: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0067: ldarg.0 + IL_0068: ldstr "C" + IL_006d: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>2__current' + IL_0072: ldarg.0 + IL_0073: ldc.i4.3 + IL_0074: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0079: ldc.i4.1 + IL_007a: ret + + IL_007b: ldarg.0 + IL_007c: ldc.i4.m1 + IL_007d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>1__state' + IL_0082: ldc.i4.0 + IL_0083: ret + } // end of method 'd__5'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>2__current' + IL_0006: ret + } // end of method 'd__5'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__5'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'<>2__current' + IL_0006: ret + } // end of method 'd__5'::System.Collections.IEnumerator.get_Current + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__5'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__5'::System.Collections.IEnumerator.Current + } // end of class 'd__5' + + .class auto ansi sealed nested private beforefieldinit 'd__6' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private int32 p + .field public int32 '<>3__p' + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest '<>4__this' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__6'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__6'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 106 (0x6a) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001b, + IL_001d, + IL_001f) + IL_0019: br.s IL_0021 + + IL_001b: br.s IL_0023 + + IL_001d: br.s IL_0040 + + IL_001f: br.s IL_0061 + + IL_0021: ldc.i4.0 + IL_0022: ret + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_002a: nop + IL_002b: ldarg.0 + IL_002c: ldarg.0 + IL_002d: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::p + IL_0032: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0037: ldarg.0 + IL_0038: ldc.i4.1 + IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_003e: ldc.i4.1 + IL_003f: ret + + IL_0040: ldarg.0 + IL_0041: ldc.i4.m1 + IL_0042: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0047: ldarg.0 + IL_0048: ldarg.0 + IL_0049: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>4__this' + IL_004e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::fieldOnThis + IL_0053: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0058: ldarg.0 + IL_0059: ldc.i4.2 + IL_005a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_005f: ldc.i4.1 + IL_0060: ret + + IL_0061: ldarg.0 + IL_0062: ldc.i4.m1 + IL_0063: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0068: ldc.i4.0 + IL_0069: ret + } // end of method 'd__6'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0006: ret + } // end of method 'd__6'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__6'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__6'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 67 (0x43) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0035 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>4__this' + IL_0030: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>4__this' + IL_0035: ldloc.0 + IL_0036: ldarg.0 + IL_0037: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>3__p' + IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::p + IL_0041: ldloc.0 + IL_0042: ret + } // end of method 'd__6'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__6'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__6'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__6'::System.Collections.IEnumerator.Current + } // end of class 'd__6' + + .class auto ansi sealed nested private beforefieldinit 'd__7' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field public int32 p + .field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest '<>4__this' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_000e: ret + } // end of method 'd__7'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__7'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 106 (0x6a) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001b, + IL_001d, + IL_001f) + IL_0019: br.s IL_0021 + + IL_001b: br.s IL_0023 + + IL_001d: br.s IL_0040 + + IL_001f: br.s IL_0061 + + IL_0021: ldc.i4.0 + IL_0022: ret + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_002a: nop + IL_002b: ldarg.0 + IL_002c: ldarg.0 + IL_002d: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::p + IL_0032: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>2__current' + IL_0037: ldarg.0 + IL_0038: ldc.i4.1 + IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_003e: ldc.i4.1 + IL_003f: ret + + IL_0040: ldarg.0 + IL_0041: ldc.i4.m1 + IL_0042: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_0047: ldarg.0 + IL_0048: ldarg.0 + IL_0049: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>4__this' + IL_004e: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::fieldOnThis + IL_0053: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>2__current' + IL_0058: ldarg.0 + IL_0059: ldc.i4.2 + IL_005a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_005f: ldc.i4.1 + IL_0060: ret + + IL_0061: ldarg.0 + IL_0062: ldc.i4.m1 + IL_0063: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>1__state' + IL_0068: ldc.i4.0 + IL_0069: ret + } // end of method 'd__7'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>2__current' + IL_0006: ret + } // end of method 'd__7'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__7'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__7'::System.Collections.IEnumerator.get_Current + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__7'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__7'::System.Collections.IEnumerator.Current + } // end of class 'd__7' + + .class auto ansi sealed nested private beforefieldinit 'd__8' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private int32 '5__1' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__8'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__8'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 103 (0x67) + .maxstack 3 + .locals init (int32 V_0, + int32 V_1, + bool V_2) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: brfalse.s IL_0012 + + IL_000a: br.s IL_000c + + IL_000c: ldloc.0 + IL_000d: ldc.i4.1 + IL_000e: beq.s IL_0014 + + IL_0010: br.s IL_0016 + + IL_0012: br.s IL_0018 + + IL_0014: br.s IL_003f + + IL_0016: ldc.i4.0 + IL_0017: ret + + IL_0018: ldarg.0 + IL_0019: ldc.i4.m1 + IL_001a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_001f: nop + IL_0020: ldarg.0 + IL_0021: ldc.i4.0 + IL_0022: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'5__1' + IL_0027: br.s IL_0057 + + IL_0029: nop + IL_002a: ldarg.0 + IL_002b: ldarg.0 + IL_002c: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'5__1' + IL_0031: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_0036: ldarg.0 + IL_0037: ldc.i4.1 + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_003d: ldc.i4.1 + IL_003e: ret + + IL_003f: ldarg.0 + IL_0040: ldc.i4.m1 + IL_0041: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0046: nop + IL_0047: ldarg.0 + IL_0048: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'5__1' + IL_004d: stloc.1 + IL_004e: ldarg.0 + IL_004f: ldloc.1 + IL_0050: ldc.i4.1 + IL_0051: add + IL_0052: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'5__1' + IL_0057: ldarg.0 + IL_0058: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'5__1' + IL_005d: ldc.i4.s 100 + IL_005f: clt + IL_0061: stloc.2 + IL_0062: ldloc.2 + IL_0063: brtrue.s IL_0029 + + IL_0065: ldc.i4.0 + IL_0066: ret + } // end of method 'd__8'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_0006: ret + } // end of method 'd__8'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__8'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__8'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__8'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__8'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__8'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__8'::System.Collections.IEnumerator.Current + } // end of class 'd__8' + + .class auto ansi sealed nested private beforefieldinit 'd__9' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__9'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 33 (0x21) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0014 + + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ldc.i4.2 + IL_0010: beq.s IL_0014 + + IL_0012: br.s IL_0020 + + IL_0014: nop + .try + { + IL_0015: leave.s IL_001e + + } // end .try + finally + { + IL_0017: ldarg.0 + IL_0018: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>m__Finally1'() + IL_001d: endfinally + } // end handler + IL_001e: br.s IL_0020 + + IL_0020: ret + } // end of method 'd__9'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 158 (0x9e) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001f, + IL_0021, + IL_0023, + IL_0025) + IL_001d: br.s IL_0027 + + IL_001f: br.s IL_002b + + IL_0021: br.s IL_0045 + + IL_0023: br.s IL_0067 + + IL_0025: br.s IL_0089 + + IL_0027: ldc.i4.0 + IL_0028: stloc.0 + IL_0029: leave.s IL_009c + + IL_002b: ldarg.0 + IL_002c: ldc.i4.m1 + IL_002d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0032: nop + IL_0033: ldarg.0 + IL_0034: ldc.i4.0 + IL_0035: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>2__current' + IL_003a: ldarg.0 + IL_003b: ldc.i4.1 + IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0041: ldc.i4.1 + IL_0042: stloc.0 + IL_0043: leave.s IL_009c + + IL_0045: ldarg.0 + IL_0046: ldc.i4.m1 + IL_0047: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_004c: ldarg.0 + IL_004d: ldc.i4.s -3 + IL_004f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0054: nop + IL_0055: ldarg.0 + IL_0056: ldc.i4.1 + IL_0057: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>2__current' + IL_005c: ldarg.0 + IL_005d: ldc.i4.2 + IL_005e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0063: ldc.i4.1 + IL_0064: stloc.0 + IL_0065: leave.s IL_009c + + IL_0067: ldarg.0 + IL_0068: ldc.i4.s -3 + IL_006a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_006f: nop + IL_0070: ldarg.0 + IL_0071: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>m__Finally1'() + IL_0076: nop + IL_0077: ldarg.0 + IL_0078: ldc.i4.2 + IL_0079: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>2__current' + IL_007e: ldarg.0 + IL_007f: ldc.i4.3 + IL_0080: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0085: ldc.i4.1 + IL_0086: stloc.0 + IL_0087: leave.s IL_009c + + IL_0089: ldarg.0 + IL_008a: ldc.i4.m1 + IL_008b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0090: ldc.i4.0 + IL_0091: stloc.0 + IL_0092: leave.s IL_009c + + } // end .try + fault + { + IL_0094: ldarg.0 + IL_0095: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::System.IDisposable.Dispose() + IL_009a: nop + IL_009b: endfinally + } // end handler + IL_009c: ldloc.0 + IL_009d: ret + } // end of method 'd__9'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0007: nop + IL_0008: ldstr "Finally!" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__9'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>2__current' + IL_0006: ret + } // end of method 'd__9'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__9'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__9'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__9'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__9'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__9'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__9'::System.Collections.IEnumerator.Current + } // end of class 'd__9' + + .class auto ansi sealed nested private beforefieldinit 'd__10' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private string '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private bool breakInMiddle + .field public bool '<>3__breakInMiddle' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__10'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 64 (0x40) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -4 + IL_000a: sub + IL_000b: ldc.i4.1 + IL_000c: ble.un.s IL_0018 + + IL_000e: br.s IL_0010 + + IL_0010: ldloc.0 + IL_0011: ldc.i4.2 + IL_0012: sub + IL_0013: ldc.i4.3 + IL_0014: ble.un.s IL_0018 + + IL_0016: br.s IL_003f + + IL_0018: nop + .try + { + IL_0019: ldloc.0 + IL_001a: ldc.i4.s -4 + IL_001c: beq.s IL_0028 + + IL_001e: br.s IL_0020 + + IL_0020: ldloc.0 + IL_0021: ldc.i4.3 + IL_0022: sub + IL_0023: ldc.i4.1 + IL_0024: ble.un.s IL_0028 + + IL_0026: br.s IL_0034 + + IL_0028: nop + .try + { + IL_0029: leave.s IL_0032 + + } // end .try + finally + { + IL_002b: ldarg.0 + IL_002c: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally2'() + IL_0031: endfinally + } // end handler + IL_0032: br.s IL_0034 + + IL_0034: leave.s IL_003d + + } // end .try + finally + { + IL_0036: ldarg.0 + IL_0037: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally1'() + IL_003c: endfinally + } // end handler + IL_003d: br.s IL_003f + + IL_003f: ret + } // end of method 'd__10'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 505 (0x1f9) + .maxstack 2 + .locals init (bool V_0, + int32 V_1, + bool V_2) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_002b, + IL_002d, + IL_002f, + IL_0034, + IL_0039, + IL_003e, + IL_0043) + IL_0029: br.s IL_0048 + + IL_002b: br.s IL_004f + + IL_002d: br.s IL_007b + + IL_002f: br IL_00ba + + IL_0034: br IL_00fa + + IL_0039: br IL_014b + + IL_003e: br IL_0192 + + IL_0043: br IL_01d9 + + IL_0048: ldc.i4.0 + IL_0049: stloc.0 + IL_004a: leave IL_01f7 + + IL_004f: ldarg.0 + IL_0050: ldc.i4.m1 + IL_0051: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0056: nop + IL_0057: ldstr "Start of method - 1" + IL_005c: call void [mscorlib]System.Console::WriteLine(string) + IL_0061: nop + IL_0062: ldarg.0 + IL_0063: ldstr "Start of method" + IL_0068: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_006d: ldarg.0 + IL_006e: ldc.i4.1 + IL_006f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0074: ldc.i4.1 + IL_0075: stloc.0 + IL_0076: leave IL_01f7 + + IL_007b: ldarg.0 + IL_007c: ldc.i4.m1 + IL_007d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0082: ldstr "Start of method - 2" + IL_0087: call void [mscorlib]System.Console::WriteLine(string) + IL_008c: nop + IL_008d: ldarg.0 + IL_008e: ldc.i4.s -3 + IL_0090: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0095: nop + IL_0096: ldstr "Within outer try - 1" + IL_009b: call void [mscorlib]System.Console::WriteLine(string) + IL_00a0: nop + IL_00a1: ldarg.0 + IL_00a2: ldstr "Within outer try" + IL_00a7: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_00ac: ldarg.0 + IL_00ad: ldc.i4.2 + IL_00ae: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_00b3: ldc.i4.1 + IL_00b4: stloc.0 + IL_00b5: leave IL_01f7 + + IL_00ba: ldarg.0 + IL_00bb: ldc.i4.s -3 + IL_00bd: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_00c2: ldstr "Within outer try - 2" + IL_00c7: call void [mscorlib]System.Console::WriteLine(string) + IL_00cc: nop + IL_00cd: ldarg.0 + IL_00ce: ldc.i4.s -4 + IL_00d0: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_00d5: nop + IL_00d6: ldstr "Within inner try - 1" + IL_00db: call void [mscorlib]System.Console::WriteLine(string) + IL_00e0: nop + IL_00e1: ldarg.0 + IL_00e2: ldstr "Within inner try" + IL_00e7: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_00ec: ldarg.0 + IL_00ed: ldc.i4.3 + IL_00ee: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_00f3: ldc.i4.1 + IL_00f4: stloc.0 + IL_00f5: leave IL_01f7 + + IL_00fa: ldarg.0 + IL_00fb: ldc.i4.s -4 + IL_00fd: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0102: ldstr "Within inner try - 2" + IL_0107: call void [mscorlib]System.Console::WriteLine(string) + IL_010c: nop + IL_010d: ldarg.0 + IL_010e: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::breakInMiddle + IL_0113: stloc.2 + IL_0114: ldloc.2 + IL_0115: brfalse.s IL_0127 + + IL_0117: nop + IL_0118: ldstr "Breaking..." + IL_011d: call void [mscorlib]System.Console::WriteLine(string) + IL_0122: nop + IL_0123: ldc.i4.0 + IL_0124: stloc.0 + IL_0125: br.s IL_0168 + + IL_0127: ldstr "End of inner try - 1" + IL_012c: call void [mscorlib]System.Console::WriteLine(string) + IL_0131: nop + IL_0132: ldarg.0 + IL_0133: ldstr "End of inner try" + IL_0138: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_013d: ldarg.0 + IL_013e: ldc.i4.4 + IL_013f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0144: ldc.i4.1 + IL_0145: stloc.0 + IL_0146: leave IL_01f7 + + IL_014b: ldarg.0 + IL_014c: ldc.i4.s -4 + IL_014e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0153: ldstr "End of inner try - 2" + IL_0158: call void [mscorlib]System.Console::WriteLine(string) + IL_015d: nop + IL_015e: nop + IL_015f: ldarg.0 + IL_0160: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally2'() + IL_0165: nop + IL_0166: br.s IL_0171 + + IL_0168: ldarg.0 + IL_0169: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally2'() + IL_016e: nop + IL_016f: br.s IL_01af + + IL_0171: ldstr "End of outer try - 1" + IL_0176: call void [mscorlib]System.Console::WriteLine(string) + IL_017b: nop + IL_017c: ldarg.0 + IL_017d: ldstr "End of outer try" + IL_0182: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_0187: ldarg.0 + IL_0188: ldc.i4.5 + IL_0189: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_018e: ldc.i4.1 + IL_018f: stloc.0 + IL_0190: leave.s IL_01f7 + + IL_0192: ldarg.0 + IL_0193: ldc.i4.s -3 + IL_0195: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_019a: ldstr "End of outer try - 2" + IL_019f: call void [mscorlib]System.Console::WriteLine(string) + IL_01a4: nop + IL_01a5: nop + IL_01a6: ldarg.0 + IL_01a7: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally1'() + IL_01ac: nop + IL_01ad: br.s IL_01b8 + + IL_01af: ldarg.0 + IL_01b0: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>m__Finally1'() + IL_01b5: nop + IL_01b6: leave.s IL_01f7 + + IL_01b8: ldstr "End of method - 1" + IL_01bd: call void [mscorlib]System.Console::WriteLine(string) + IL_01c2: nop + IL_01c3: ldarg.0 + IL_01c4: ldstr "End of method" + IL_01c9: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_01ce: ldarg.0 + IL_01cf: ldc.i4.6 + IL_01d0: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_01d5: ldc.i4.1 + IL_01d6: stloc.0 + IL_01d7: leave.s IL_01f7 + + IL_01d9: ldarg.0 + IL_01da: ldc.i4.m1 + IL_01db: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_01e0: ldstr "End of method - 2" + IL_01e5: call void [mscorlib]System.Console::WriteLine(string) + IL_01ea: nop + IL_01eb: ldc.i4.0 + IL_01ec: stloc.0 + IL_01ed: leave.s IL_01f7 + + } // end .try + fault + { + IL_01ef: ldarg.0 + IL_01f0: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::System.IDisposable.Dispose() + IL_01f5: nop + IL_01f6: endfinally + } // end handler + IL_01f7: ldloc.0 + IL_01f8: ret + } // end of method 'd__10'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0007: nop + IL_0008: ldstr "Outer Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__10'::'<>m__Finally1' + + .method private hidebysig instance void + '<>m__Finally2'() cil managed + { + // Code size 22 (0x16) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.s -3 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0008: nop + IL_0009: ldstr "Inner Finally" + IL_000e: call void [mscorlib]System.Console::WriteLine(string) + IL_0013: nop + IL_0014: nop + IL_0015: ret + } // end of method 'd__10'::'<>m__Finally2' + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_0006: ret + } // end of method 'd__10'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__10'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>2__current' + IL_0006: ret + } // end of method 'd__10'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>3__breakInMiddle' + IL_0030: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::breakInMiddle + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__10'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__10'::System.Collections.IEnumerable.GetEnumerator + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__10'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__10'::System.Collections.IEnumerator.Current + } // end of class 'd__10' + + .class auto ansi sealed nested private beforefieldinit 'd__11' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private string '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field private class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>s__1' + .field private string '5__2' + .field private class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>s__3' + .field private string '5__4' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__11'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 102 (0x66) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -5 + IL_000a: sub + IL_000b: switch ( + IL_0059, + IL_0034, + IL_0034, + IL_0065, + IL_0065, + IL_0065, + IL_0034) + IL_002c: br.s IL_002e + + IL_002e: ldloc.0 + IL_002f: ldc.i4.8 + IL_0030: beq.s IL_0059 + + IL_0032: br.s IL_0065 + + IL_0034: nop + .try + { + IL_0035: ldloc.0 + IL_0036: ldc.i4.s -4 + IL_0038: beq.s IL_0042 + + IL_003a: br.s IL_003c + + IL_003c: ldloc.0 + IL_003d: ldc.i4.1 + IL_003e: beq.s IL_0042 + + IL_0040: br.s IL_004e + + IL_0042: nop + .try + { + IL_0043: leave.s IL_004c + + } // end .try + finally + { + IL_0045: ldarg.0 + IL_0046: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally2'() + IL_004b: endfinally + } // end handler + IL_004c: br.s IL_004e + + IL_004e: leave.s IL_0057 + + } // end .try + finally + { + IL_0050: ldarg.0 + IL_0051: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally1'() + IL_0056: endfinally + } // end handler + IL_0057: br.s IL_0065 + + IL_0059: nop + .try + { + IL_005a: leave.s IL_0063 + + } // end .try + finally + { + IL_005c: ldarg.0 + IL_005d: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally3'() + IL_0062: endfinally + } // end handler + IL_0063: br.s IL_0065 + + IL_0065: ret + } // end of method 'd__11'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 563 (0x233) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_0033, + IL_0035, + IL_003a, + IL_003f, + IL_0044, + IL_0049, + IL_004e, + IL_0053, + IL_0058) + IL_0031: br.s IL_005d + + IL_0033: br.s IL_0064 + + IL_0035: br IL_00bd + + IL_003a: br IL_0109 + + IL_003f: br IL_0129 + + IL_0044: br IL_0149 + + IL_0049: br IL_0169 + + IL_004e: br IL_0189 + + IL_0053: br IL_01a9 + + IL_0058: br IL_01fa + + IL_005d: ldc.i4.0 + IL_005e: stloc.0 + IL_005f: leave IL_0231 + + IL_0064: ldarg.0 + IL_0065: ldc.i4.m1 + IL_0066: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_006b: nop + IL_006c: nop + IL_006d: ldarg.0 + IL_006e: ldarg.0 + IL_006f: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::input + IL_0074: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0079: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__1' + IL_007e: ldarg.0 + IL_007f: ldc.i4.s -3 + IL_0081: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0086: br.s IL_00d5 + + IL_0088: ldarg.0 + IL_0089: ldarg.0 + IL_008a: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__1' + IL_008f: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_0094: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__2' + IL_0099: nop + IL_009a: ldarg.0 + IL_009b: ldc.i4.s -4 + IL_009d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_00a2: nop + IL_00a3: ldarg.0 + IL_00a4: ldarg.0 + IL_00a5: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__2' + IL_00aa: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_00af: ldarg.0 + IL_00b0: ldc.i4.1 + IL_00b1: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_00b6: ldc.i4.1 + IL_00b7: stloc.0 + IL_00b8: leave IL_0231 + + IL_00bd: ldarg.0 + IL_00be: ldc.i4.s -4 + IL_00c0: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_00c5: nop + IL_00c6: ldarg.0 + IL_00c7: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally2'() + IL_00cc: nop + IL_00cd: nop + IL_00ce: ldarg.0 + IL_00cf: ldnull + IL_00d0: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__2' + IL_00d5: ldarg.0 + IL_00d6: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__1' + IL_00db: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_00e0: brtrue.s IL_0088 + + IL_00e2: ldarg.0 + IL_00e3: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally1'() + IL_00e8: nop + IL_00e9: ldarg.0 + IL_00ea: ldnull + IL_00eb: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__1' + IL_00f0: ldarg.0 + IL_00f1: ldstr "A" + IL_00f6: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_00fb: ldarg.0 + IL_00fc: ldc.i4.2 + IL_00fd: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0102: ldc.i4.1 + IL_0103: stloc.0 + IL_0104: leave IL_0231 + + IL_0109: ldarg.0 + IL_010a: ldc.i4.m1 + IL_010b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0110: ldarg.0 + IL_0111: ldstr "B" + IL_0116: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_011b: ldarg.0 + IL_011c: ldc.i4.3 + IL_011d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0122: ldc.i4.1 + IL_0123: stloc.0 + IL_0124: leave IL_0231 + + IL_0129: ldarg.0 + IL_012a: ldc.i4.m1 + IL_012b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0130: ldarg.0 + IL_0131: ldstr "C" + IL_0136: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_013b: ldarg.0 + IL_013c: ldc.i4.4 + IL_013d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0142: ldc.i4.1 + IL_0143: stloc.0 + IL_0144: leave IL_0231 + + IL_0149: ldarg.0 + IL_014a: ldc.i4.m1 + IL_014b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0150: ldarg.0 + IL_0151: ldstr "D" + IL_0156: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_015b: ldarg.0 + IL_015c: ldc.i4.5 + IL_015d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0162: ldc.i4.1 + IL_0163: stloc.0 + IL_0164: leave IL_0231 + + IL_0169: ldarg.0 + IL_016a: ldc.i4.m1 + IL_016b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0170: ldarg.0 + IL_0171: ldstr "E" + IL_0176: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_017b: ldarg.0 + IL_017c: ldc.i4.6 + IL_017d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0182: ldc.i4.1 + IL_0183: stloc.0 + IL_0184: leave IL_0231 + + IL_0189: ldarg.0 + IL_018a: ldc.i4.m1 + IL_018b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0190: ldarg.0 + IL_0191: ldstr "F" + IL_0196: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_019b: ldarg.0 + IL_019c: ldc.i4.7 + IL_019d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_01a2: ldc.i4.1 + IL_01a3: stloc.0 + IL_01a4: leave IL_0231 + + IL_01a9: ldarg.0 + IL_01aa: ldc.i4.m1 + IL_01ab: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_01b0: nop + IL_01b1: ldarg.0 + IL_01b2: ldarg.0 + IL_01b3: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::input + IL_01b8: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_01bd: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__3' + IL_01c2: ldarg.0 + IL_01c3: ldc.i4.s -5 + IL_01c5: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_01ca: br.s IL_020a + + IL_01cc: ldarg.0 + IL_01cd: ldarg.0 + IL_01ce: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__3' + IL_01d3: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_01d8: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__4' + IL_01dd: nop + IL_01de: ldarg.0 + IL_01df: ldarg.0 + IL_01e0: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__4' + IL_01e5: callvirt instance string [mscorlib]System.String::ToUpper() + IL_01ea: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_01ef: ldarg.0 + IL_01f0: ldc.i4.8 + IL_01f1: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_01f6: ldc.i4.1 + IL_01f7: stloc.0 + IL_01f8: leave.s IL_0231 + + IL_01fa: ldarg.0 + IL_01fb: ldc.i4.s -5 + IL_01fd: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0202: nop + IL_0203: ldarg.0 + IL_0204: ldnull + IL_0205: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__4' + IL_020a: ldarg.0 + IL_020b: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__3' + IL_0210: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_0215: brtrue.s IL_01cc + + IL_0217: ldarg.0 + IL_0218: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>m__Finally3'() + IL_021d: nop + IL_021e: ldarg.0 + IL_021f: ldnull + IL_0220: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__3' + IL_0225: ldc.i4.0 + IL_0226: stloc.0 + IL_0227: leave.s IL_0231 + + } // end .try + fault + { + IL_0229: ldarg.0 + IL_022a: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::System.IDisposable.Dispose() + IL_022f: nop + IL_0230: endfinally + } // end handler + IL_0231: ldloc.0 + IL_0232: ret + } // end of method 'd__11'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 28 (0x1c) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__1' + IL_000d: brfalse.s IL_001b + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__1' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: nop + IL_001b: ret + } // end of method 'd__11'::'<>m__Finally1' + + .method private hidebysig instance void + '<>m__Finally2'() cil managed + { + // Code size 33 (0x21) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.s -3 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0008: nop + IL_0009: ldstr "Processed " + IL_000e: ldarg.0 + IL_000f: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'5__2' + IL_0014: call string [mscorlib]System.String::Concat(string, + string) + IL_0019: call void [mscorlib]System.Console::WriteLine(string) + IL_001e: nop + IL_001f: nop + IL_0020: ret + } // end of method 'd__11'::'<>m__Finally2' + + .method private hidebysig instance void + '<>m__Finally3'() cil managed + { + // Code size 28 (0x1c) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__3' + IL_000d: brfalse.s IL_001b + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>s__3' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: nop + IL_001b: ret + } // end of method 'd__11'::'<>m__Finally3' + + .method private hidebysig newslot specialname virtual final + instance string 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0006: ret + } // end of method 'd__11'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__11'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>2__current' + IL_0006: ret + } // end of method 'd__11'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>3__input' + IL_0030: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::input + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__11'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__11'::System.Collections.IEnumerable.GetEnumerator + + .property instance string 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__11'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__11'::System.Collections.IEnumerator.Current + } // end of class 'd__11' + + .class auto ansi sealed nested private beforefieldinit '<>c__DisplayClass12_0' + extends [mscorlib]System.Object + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field public string line + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ret + } // end of method '<>c__DisplayClass12_0'::.ctor + + .method assembly hidebysig instance string + 'b__0'() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0'::line + IL_0006: ret + } // end of method '<>c__DisplayClass12_0'::'b__0' + + } // end of class '<>c__DisplayClass12_0' + + .class auto ansi sealed nested private beforefieldinit 'd__12' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1>, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1>, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private class [mscorlib]System.Func`1 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field private class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>s__1' + .field private class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0' '<>8__2' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__12'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 33 (0x21) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0014 + + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ldc.i4.1 + IL_0010: beq.s IL_0014 + + IL_0012: br.s IL_0020 + + IL_0014: nop + .try + { + IL_0015: leave.s IL_001e + + } // end .try + finally + { + IL_0017: ldarg.0 + IL_0018: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>m__Finally1'() + IL_001d: endfinally + } // end handler + IL_001e: br.s IL_0020 + + IL_0020: ret + } // end of method 'd__12'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 190 (0xbe) + .maxstack 3 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: brfalse.s IL_0012 + + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ldc.i4.1 + IL_000e: beq.s IL_0014 + + IL_0010: br.s IL_0016 + + IL_0012: br.s IL_001d + + IL_0014: br.s IL_0085 + + IL_0016: ldc.i4.0 + IL_0017: stloc.0 + IL_0018: leave IL_00bc + + IL_001d: ldarg.0 + IL_001e: ldc.i4.m1 + IL_001f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0024: nop + IL_0025: nop + IL_0026: ldarg.0 + IL_0027: ldarg.0 + IL_0028: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::input + IL_002d: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0032: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>s__1' + IL_0037: ldarg.0 + IL_0038: ldc.i4.s -3 + IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_003f: br.s IL_0095 + + IL_0041: ldarg.0 + IL_0042: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0'::.ctor() + IL_0047: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>8__2' + IL_004c: ldarg.0 + IL_004d: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>8__2' + IL_0052: ldarg.0 + IL_0053: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>s__1' + IL_0058: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_005d: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0'::line + IL_0062: nop + IL_0063: ldarg.0 + IL_0064: ldarg.0 + IL_0065: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>8__2' + IL_006a: ldftn instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0'::'b__0'() + IL_0070: newobj instance void class [mscorlib]System.Func`1::.ctor(object, + native int) + IL_0075: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>2__current' + IL_007a: ldarg.0 + IL_007b: ldc.i4.1 + IL_007c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0081: ldc.i4.1 + IL_0082: stloc.0 + IL_0083: leave.s IL_00bc + + IL_0085: ldarg.0 + IL_0086: ldc.i4.s -3 + IL_0088: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_008d: nop + IL_008e: ldarg.0 + IL_008f: ldnull + IL_0090: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass12_0' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>8__2' + IL_0095: ldarg.0 + IL_0096: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>s__1' + IL_009b: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_00a0: brtrue.s IL_0041 + + IL_00a2: ldarg.0 + IL_00a3: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>m__Finally1'() + IL_00a8: nop + IL_00a9: ldarg.0 + IL_00aa: ldnull + IL_00ab: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>s__1' + IL_00b0: ldc.i4.0 + IL_00b1: stloc.0 + IL_00b2: leave.s IL_00bc + + } // end .try + fault + { + IL_00b4: ldarg.0 + IL_00b5: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::System.IDisposable.Dispose() + IL_00ba: nop + IL_00bb: endfinally + } // end handler + IL_00bc: ldloc.0 + IL_00bd: ret + } // end of method 'd__12'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 28 (0x1c) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>s__1' + IL_000d: brfalse.s IL_001b + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>s__1' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: nop + IL_001b: ret + } // end of method 'd__12'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1>::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>2__current' + IL_0006: ret + } // end of method 'd__12'::'System.Collections.Generic.IEnumerator>.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__12'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>2__current' + IL_0006: ret + } // end of method 'd__12'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1> + 'System.Collections.Generic.IEnumerable>.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1>::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>3__input' + IL_0030: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::input + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__12'::'System.Collections.Generic.IEnumerable>.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1> ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'System.Collections.Generic.IEnumerable>.GetEnumerator'() + IL_0006: ret + } // end of method 'd__12'::System.Collections.IEnumerable.GetEnumerator + + .property instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.Current'() + { + .get instance class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'System.Collections.Generic.IEnumerator>.get_Current'() + } // end of property 'd__12'::'System.Collections.Generic.IEnumerator>.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__12'::System.Collections.IEnumerator.Current + } // end of class 'd__12' + + .class auto ansi sealed nested private beforefieldinit '<>c__DisplayClass13_0' + extends [mscorlib]System.Object + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field public string copy + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ret + } // end of method '<>c__DisplayClass13_0'::.ctor + + .method assembly hidebysig instance string + 'b__0'() cil managed + { + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0'::copy + IL_0006: ret + } // end of method '<>c__DisplayClass13_0'::'b__0' + + } // end of class '<>c__DisplayClass13_0' + + .class auto ansi sealed nested private beforefieldinit 'd__13' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1>, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1>, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private class [mscorlib]System.Func`1 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private class [mscorlib]System.Collections.Generic.IEnumerable`1 input + .field public class [mscorlib]System.Collections.Generic.IEnumerable`1 '<>3__input' + .field private class [mscorlib]System.Collections.Generic.IEnumerator`1 '<>s__1' + .field private string '5__2' + .field private class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0' '<>8__3' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__13'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 33 (0x21) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0014 + + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ldc.i4.1 + IL_0010: beq.s IL_0014 + + IL_0012: br.s IL_0020 + + IL_0014: nop + .try + { + IL_0015: leave.s IL_001e + + } // end .try + finally + { + IL_0017: ldarg.0 + IL_0018: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>m__Finally1'() + IL_001d: endfinally + } // end handler + IL_001e: br.s IL_0020 + + IL_0020: ret + } // end of method 'd__13'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 209 (0xd1) + .maxstack 3 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: brfalse.s IL_0012 + + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ldc.i4.1 + IL_000e: beq.s IL_0014 + + IL_0010: br.s IL_0016 + + IL_0012: br.s IL_001d + + IL_0014: br.s IL_0091 + + IL_0016: ldc.i4.0 + IL_0017: stloc.0 + IL_0018: leave IL_00cf + + IL_001d: ldarg.0 + IL_001e: ldc.i4.m1 + IL_001f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0024: nop + IL_0025: nop + IL_0026: ldarg.0 + IL_0027: ldarg.0 + IL_0028: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::input + IL_002d: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + IL_0032: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>s__1' + IL_0037: ldarg.0 + IL_0038: ldc.i4.s -3 + IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_003f: br.s IL_00a8 + + IL_0041: ldarg.0 + IL_0042: ldarg.0 + IL_0043: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>s__1' + IL_0048: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_004d: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'5__2' + IL_0052: ldarg.0 + IL_0053: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0'::.ctor() + IL_0058: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>8__3' + IL_005d: nop + IL_005e: ldarg.0 + IL_005f: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>8__3' + IL_0064: ldarg.0 + IL_0065: ldfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'5__2' + IL_006a: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0'::copy + IL_006f: ldarg.0 + IL_0070: ldarg.0 + IL_0071: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>8__3' + IL_0076: ldftn instance string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0'::'b__0'() + IL_007c: newobj instance void class [mscorlib]System.Func`1::.ctor(object, + native int) + IL_0081: stfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>2__current' + IL_0086: ldarg.0 + IL_0087: ldc.i4.1 + IL_0088: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_008d: ldc.i4.1 + IL_008e: stloc.0 + IL_008f: leave.s IL_00cf + + IL_0091: ldarg.0 + IL_0092: ldc.i4.s -3 + IL_0094: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0099: nop + IL_009a: ldarg.0 + IL_009b: ldnull + IL_009c: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'<>c__DisplayClass13_0' ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>8__3' + IL_00a1: ldarg.0 + IL_00a2: ldnull + IL_00a3: stfld string ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'5__2' + IL_00a8: ldarg.0 + IL_00a9: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>s__1' + IL_00ae: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_00b3: brtrue.s IL_0041 + + IL_00b5: ldarg.0 + IL_00b6: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>m__Finally1'() + IL_00bb: nop + IL_00bc: ldarg.0 + IL_00bd: ldnull + IL_00be: stfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>s__1' + IL_00c3: ldc.i4.0 + IL_00c4: stloc.0 + IL_00c5: leave.s IL_00cf + + } // end .try + fault + { + IL_00c7: ldarg.0 + IL_00c8: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::System.IDisposable.Dispose() + IL_00cd: nop + IL_00ce: endfinally + } // end handler + IL_00cf: ldloc.0 + IL_00d0: ret + } // end of method 'd__13'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 28 (0x1c) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0007: ldarg.0 + IL_0008: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>s__1' + IL_000d: brfalse.s IL_001b + + IL_000f: ldarg.0 + IL_0010: ldfld class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>s__1' + IL_0015: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_001a: nop + IL_001b: ret + } // end of method 'd__13'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1>::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>2__current' + IL_0006: ret + } // end of method 'd__13'::'System.Collections.Generic.IEnumerator>.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__13'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>2__current' + IL_0006: ret + } // end of method 'd__13'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1> + 'System.Collections.Generic.IEnumerable>.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1>::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>3__input' + IL_0030: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::input + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__13'::'System.Collections.Generic.IEnumerable>.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1> ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'System.Collections.Generic.IEnumerable>.GetEnumerator'() + IL_0006: ret + } // end of method 'd__13'::System.Collections.IEnumerable.GetEnumerator + + .property instance class [mscorlib]System.Func`1 + 'System.Collections.Generic.IEnumerator>.Current'() + { + .get instance class [mscorlib]System.Func`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'System.Collections.Generic.IEnumerator>.get_Current'() + } // end of property 'd__13'::'System.Collections.Generic.IEnumerator>.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__13'::System.Collections.IEnumerator.Current + } // end of class 'd__13' + + .class auto ansi sealed nested private beforefieldinit 'd__14' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private int32 n + .field public int32 '<>3__n' + .field private int32 '5__1' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__14'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__14'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 124 (0x7c) + .maxstack 3 + .locals init (int32 V_0, + bool V_1, + int32 V_2, + bool V_3) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: brfalse.s IL_0012 + + IL_000a: br.s IL_000c + + IL_000c: ldloc.0 + IL_000d: ldc.i4.1 + IL_000e: beq.s IL_0014 + + IL_0010: br.s IL_0016 + + IL_0012: br.s IL_0018 + + IL_0014: br.s IL_004f + + IL_0016: ldc.i4.0 + IL_0017: ret + + IL_0018: ldarg.0 + IL_0019: ldc.i4.m1 + IL_001a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_001f: nop + IL_0020: ldarg.0 + IL_0021: ldc.i4.0 + IL_0022: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__1' + IL_0027: br.s IL_0068 + + IL_0029: nop + IL_002a: ldarg.0 + IL_002b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__1' + IL_0030: ldc.i4.2 + IL_0031: rem + IL_0032: ldc.i4.0 + IL_0033: ceq + IL_0035: stloc.1 + IL_0036: ldloc.1 + IL_0037: brfalse.s IL_0057 + + IL_0039: nop + IL_003a: ldarg.0 + IL_003b: ldarg.0 + IL_003c: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__1' + IL_0041: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>2__current' + IL_0046: ldarg.0 + IL_0047: ldc.i4.1 + IL_0048: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_004d: ldc.i4.1 + IL_004e: ret + + IL_004f: ldarg.0 + IL_0050: ldc.i4.m1 + IL_0051: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_0056: nop + IL_0057: nop + IL_0058: ldarg.0 + IL_0059: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__1' + IL_005e: stloc.2 + IL_005f: ldarg.0 + IL_0060: ldloc.2 + IL_0061: ldc.i4.1 + IL_0062: add + IL_0063: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__1' + IL_0068: ldarg.0 + IL_0069: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'5__1' + IL_006e: ldarg.0 + IL_006f: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::n + IL_0074: clt + IL_0076: stloc.3 + IL_0077: ldloc.3 + IL_0078: brtrue.s IL_0029 + + IL_007a: ldc.i4.0 + IL_007b: ret + } // end of method 'd__14'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>2__current' + IL_0006: ret + } // end of method 'd__14'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__14'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__14'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>3__n' + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::n + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__14'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__14'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__14'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__14'::System.Collections.IEnumerator.Current + } // end of class 'd__14' + + .class auto ansi sealed nested private beforefieldinit 'd__15' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private char '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__15'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 33 (0x21) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0014 + + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ldc.i4.3 + IL_0010: beq.s IL_0014 + + IL_0012: br.s IL_0020 + + IL_0014: nop + .try + { + IL_0015: leave.s IL_001e + + } // end .try + finally + { + IL_0017: ldarg.0 + IL_0018: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally1'() + IL_001d: endfinally + } // end handler + IL_001e: br.s IL_0020 + + IL_0020: ret + } // end of method 'd__15'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 230 (0xe6) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001f, + IL_0021, + IL_0023, + IL_0025) + IL_001d: br.s IL_002a + + IL_001f: br.s IL_0031 + + IL_0021: br.s IL_004f + + IL_0023: br.s IL_0088 + + IL_0025: br IL_00c8 + + IL_002a: ldc.i4.0 + IL_002b: stloc.0 + IL_002c: leave IL_00e4 + + IL_0031: ldarg.0 + IL_0032: ldc.i4.m1 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0038: nop + IL_0039: ldarg.0 + IL_003a: ldc.i4.s 97 + IL_003c: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0041: ldarg.0 + IL_0042: ldc.i4.1 + IL_0043: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0048: ldc.i4.1 + IL_0049: stloc.0 + IL_004a: leave IL_00e4 + + IL_004f: ldarg.0 + IL_0050: ldc.i4.m1 + IL_0051: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + .try + { + IL_0056: nop + IL_0057: ldstr "1 - try" + IL_005c: call void [mscorlib]System.Console::WriteLine(string) + IL_0061: nop + IL_0062: nop + IL_0063: leave.s IL_0075 + + } // end .try + catch [mscorlib]System.Exception + { + IL_0065: pop + IL_0066: nop + IL_0067: ldstr "1 - catch" + IL_006c: call void [mscorlib]System.Console::WriteLine(string) + IL_0071: nop + IL_0072: nop + IL_0073: leave.s IL_0075 + + } // end handler + IL_0075: ldarg.0 + IL_0076: ldc.i4.s 98 + IL_0078: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_007d: ldarg.0 + IL_007e: ldc.i4.2 + IL_007f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0084: ldc.i4.1 + IL_0085: stloc.0 + IL_0086: leave.s IL_00e4 + + IL_0088: ldarg.0 + IL_0089: ldc.i4.m1 + IL_008a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_008f: ldarg.0 + IL_0090: ldc.i4.s -3 + IL_0092: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0097: nop + .try + { + IL_0098: nop + IL_0099: ldstr "2 - try" + IL_009e: call void [mscorlib]System.Console::WriteLine(string) + IL_00a3: nop + IL_00a4: nop + IL_00a5: leave.s IL_00b5 + + } // end .try + finally + { + IL_00a7: nop + IL_00a8: ldstr "2 - finally" + IL_00ad: call void [mscorlib]System.Console::WriteLine(string) + IL_00b2: nop + IL_00b3: nop + IL_00b4: endfinally + } // end handler + IL_00b5: ldarg.0 + IL_00b6: ldc.i4.s 99 + IL_00b8: stfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_00bd: ldarg.0 + IL_00be: ldc.i4.3 + IL_00bf: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00c4: ldc.i4.1 + IL_00c5: stloc.0 + IL_00c6: leave.s IL_00e4 + + IL_00c8: ldarg.0 + IL_00c9: ldc.i4.s -3 + IL_00cb: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_00d0: nop + IL_00d1: ldarg.0 + IL_00d2: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>m__Finally1'() + IL_00d7: nop + IL_00d8: ldc.i4.0 + IL_00d9: stloc.0 + IL_00da: leave.s IL_00e4 + + } // end .try + fault + { + IL_00dc: ldarg.0 + IL_00dd: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::System.IDisposable.Dispose() + IL_00e2: nop + IL_00e3: endfinally + } // end handler + IL_00e4: ldloc.0 + IL_00e5: ret + } // end of method 'd__15'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0007: nop + IL_0008: ldstr "outer finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__15'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance char 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0006: ret + } // end of method 'd__15'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__15'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>2__current' + IL_0006: box [mscorlib]System.Char + IL_000b: ret + } // end of method 'd__15'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__15'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__15'::System.Collections.IEnumerable.GetEnumerator + + .property instance char 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance char ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__15'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__15'::System.Collections.IEnumerator.Current + } // end of class 'd__15' + + .class auto ansi sealed nested private beforefieldinit 'd__16' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__16'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__16'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 114 (0x72) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001b, + IL_001d, + IL_001f) + IL_0019: br.s IL_0021 + + IL_001b: br.s IL_0023 + + IL_001d: br.s IL_003b + + IL_001f: br.s IL_0067 + + IL_0021: ldc.i4.0 + IL_0022: ret + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_002a: nop + IL_002b: ldarg.0 + IL_002c: ldc.i4.0 + IL_002d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>2__current' + IL_0032: ldarg.0 + IL_0033: ldc.i4.1 + IL_0034: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_0039: ldc.i4.1 + IL_003a: ret + + IL_003b: ldarg.0 + IL_003c: ldc.i4.m1 + IL_003d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + .try + { + IL_0042: nop + IL_0043: ldstr "In Try" + IL_0048: call void [mscorlib]System.Console::WriteLine(string) + IL_004d: nop + IL_004e: nop + IL_004f: leave.s IL_0057 + + } // end .try + catch [mscorlib]System.Object + { + IL_0051: pop + IL_0052: nop + IL_0053: ldc.i4.0 + IL_0054: stloc.0 + IL_0055: leave.s IL_0070 + + } // end handler + IL_0057: ldarg.0 + IL_0058: ldc.i4.1 + IL_0059: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>2__current' + IL_005e: ldarg.0 + IL_005f: ldc.i4.2 + IL_0060: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_0065: ldc.i4.1 + IL_0066: ret + + IL_0067: ldarg.0 + IL_0068: ldc.i4.m1 + IL_0069: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_006e: ldc.i4.0 + IL_006f: ret + + IL_0070: ldloc.0 + IL_0071: ret + } // end of method 'd__16'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>2__current' + IL_0006: ret + } // end of method 'd__16'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__16'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__16'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__16'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__16'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__16'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__16'::System.Collections.IEnumerator.Current + } // end of class 'd__16' + + .class auto ansi sealed nested private beforefieldinit 'd__17' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__17'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 35 (0x23) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0016 + + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ldc.i4.1 + IL_0010: sub + IL_0011: ldc.i4.1 + IL_0012: ble.un.s IL_0016 + + IL_0014: br.s IL_0022 + + IL_0016: nop + .try + { + IL_0017: leave.s IL_0020 + + } // end .try + finally + { + IL_0019: ldarg.0 + IL_001a: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>m__Finally1'() + IL_001f: endfinally + } // end handler + IL_0020: br.s IL_0022 + + IL_0022: ret + } // end of method 'd__17'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 160 (0xa0) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001b, + IL_001d, + IL_001f) + IL_0019: br.s IL_0021 + + IL_001b: br.s IL_0025 + + IL_001d: br.s IL_0048 + + IL_001f: br.s IL_0077 + + IL_0021: ldc.i4.0 + IL_0022: stloc.0 + IL_0023: leave.s IL_009e + + IL_0025: ldarg.0 + IL_0026: ldc.i4.m1 + IL_0027: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_002c: nop + IL_002d: ldarg.0 + IL_002e: ldc.i4.s -3 + IL_0030: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0035: nop + IL_0036: ldarg.0 + IL_0037: ldc.i4.0 + IL_0038: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>2__current' + IL_003d: ldarg.0 + IL_003e: ldc.i4.1 + IL_003f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0044: ldc.i4.1 + IL_0045: stloc.0 + IL_0046: leave.s IL_009e + + IL_0048: ldarg.0 + IL_0049: ldc.i4.s -3 + IL_004b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + .try + { + IL_0050: nop + IL_0051: ldstr "In Try" + IL_0056: call void [mscorlib]System.Console::WriteLine(string) + IL_005b: nop + IL_005c: nop + IL_005d: leave.s IL_0065 + + } // end .try + catch [mscorlib]System.Object + { + IL_005f: pop + IL_0060: nop + IL_0061: ldc.i4.0 + IL_0062: stloc.0 + IL_0063: leave.s IL_0089 + + } // end handler + IL_0065: ldarg.0 + IL_0066: ldc.i4.1 + IL_0067: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>2__current' + IL_006c: ldarg.0 + IL_006d: ldc.i4.2 + IL_006e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0073: ldc.i4.1 + IL_0074: stloc.0 + IL_0075: leave.s IL_009e + + IL_0077: ldarg.0 + IL_0078: ldc.i4.s -3 + IL_007a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_007f: nop + IL_0080: ldarg.0 + IL_0081: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>m__Finally1'() + IL_0086: nop + IL_0087: br.s IL_0092 + + IL_0089: ldarg.0 + IL_008a: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>m__Finally1'() + IL_008f: nop + IL_0090: leave.s IL_009e + + IL_0092: ldc.i4.0 + IL_0093: stloc.0 + IL_0094: leave.s IL_009e + + } // end .try + fault + { + IL_0096: ldarg.0 + IL_0097: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::System.IDisposable.Dispose() + IL_009c: nop + IL_009d: endfinally + } // end handler + IL_009e: ldloc.0 + IL_009f: ret + } // end of method 'd__17'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0007: nop + IL_0008: ldstr "Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__17'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>2__current' + IL_0006: ret + } // end of method 'd__17'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__17'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__17'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__17'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__17'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__17'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__17'::System.Collections.IEnumerator.Current + } // end of class 'd__17' + + .class auto ansi sealed nested private beforefieldinit 'd__18' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__18'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 35 (0x23) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0016 + + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ldc.i4.1 + IL_0010: sub + IL_0011: ldc.i4.1 + IL_0012: ble.un.s IL_0016 + + IL_0014: br.s IL_0022 + + IL_0016: nop + .try + { + IL_0017: leave.s IL_0020 + + } // end .try + finally + { + IL_0019: ldarg.0 + IL_001a: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>m__Finally1'() + IL_001f: endfinally + } // end handler + IL_0020: br.s IL_0022 + + IL_0022: ret + } // end of method 'd__18'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 174 (0xae) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001b, + IL_001d, + IL_001f) + IL_0019: br.s IL_0021 + + IL_001b: br.s IL_0028 + + IL_001d: br.s IL_004b + + IL_001f: br.s IL_0085 + + IL_0021: ldc.i4.0 + IL_0022: stloc.0 + IL_0023: leave IL_00ac + + IL_0028: ldarg.0 + IL_0029: ldc.i4.m1 + IL_002a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_002f: nop + IL_0030: ldarg.0 + IL_0031: ldc.i4.s -3 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0038: nop + IL_0039: ldarg.0 + IL_003a: ldc.i4.0 + IL_003b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>2__current' + IL_0040: ldarg.0 + IL_0041: ldc.i4.1 + IL_0042: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0047: ldc.i4.1 + IL_0048: stloc.0 + IL_0049: leave.s IL_00ac + + IL_004b: ldarg.0 + IL_004c: ldc.i4.s -3 + IL_004e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + .try + { + IL_0053: nop + IL_0054: ldstr "In Try" + IL_0059: call void [mscorlib]System.Console::WriteLine(string) + IL_005e: nop + IL_005f: ldc.i4.0 + IL_0060: stloc.0 + IL_0061: leave.s IL_0097 + + } // end .try + catch [mscorlib]System.Object + { + IL_0063: pop + IL_0064: nop + IL_0065: ldstr "Catch" + IL_006a: call void [mscorlib]System.Console::WriteLine(string) + IL_006f: nop + IL_0070: nop + IL_0071: leave.s IL_0073 + + } // end handler + IL_0073: ldarg.0 + IL_0074: ldc.i4.1 + IL_0075: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>2__current' + IL_007a: ldarg.0 + IL_007b: ldc.i4.2 + IL_007c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0081: ldc.i4.1 + IL_0082: stloc.0 + IL_0083: leave.s IL_00ac + + IL_0085: ldarg.0 + IL_0086: ldc.i4.s -3 + IL_0088: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_008d: nop + IL_008e: ldarg.0 + IL_008f: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>m__Finally1'() + IL_0094: nop + IL_0095: br.s IL_00a0 + + IL_0097: ldarg.0 + IL_0098: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>m__Finally1'() + IL_009d: nop + IL_009e: leave.s IL_00ac + + IL_00a0: ldc.i4.0 + IL_00a1: stloc.0 + IL_00a2: leave.s IL_00ac + + } // end .try + fault + { + IL_00a4: ldarg.0 + IL_00a5: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::System.IDisposable.Dispose() + IL_00aa: nop + IL_00ab: endfinally + } // end handler + IL_00ac: ldloc.0 + IL_00ad: ret + } // end of method 'd__18'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0007: nop + IL_0008: ldstr "Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__18'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>2__current' + IL_0006: ret + } // end of method 'd__18'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__18'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__18'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__18'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__18'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__18'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__18'::System.Collections.IEnumerator.Current + } // end of class 'd__18' + + .class auto ansi sealed nested private beforefieldinit 'd__19' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private bool b + .field public bool '<>3__b' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__19'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 35 (0x23) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0016 + + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ldc.i4.1 + IL_0010: sub + IL_0011: ldc.i4.1 + IL_0012: ble.un.s IL_0016 + + IL_0014: br.s IL_0022 + + IL_0016: nop + .try + { + IL_0017: leave.s IL_0020 + + } // end .try + finally + { + IL_0019: ldarg.0 + IL_001a: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>m__Finally1'() + IL_001f: endfinally + } // end handler + IL_0020: br.s IL_0022 + + IL_0022: ret + } // end of method 'd__19'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 186 (0xba) + .maxstack 2 + .locals init (bool V_0, + int32 V_1, + bool V_2) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001b, + IL_001d, + IL_001f) + IL_0019: br.s IL_0021 + + IL_001b: br.s IL_0028 + + IL_001d: br.s IL_004b + + IL_001f: br.s IL_0091 + + IL_0021: ldc.i4.0 + IL_0022: stloc.0 + IL_0023: leave IL_00b8 + + IL_0028: ldarg.0 + IL_0029: ldc.i4.m1 + IL_002a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_002f: nop + IL_0030: ldarg.0 + IL_0031: ldc.i4.s -3 + IL_0033: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0038: nop + IL_0039: ldarg.0 + IL_003a: ldc.i4.0 + IL_003b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>2__current' + IL_0040: ldarg.0 + IL_0041: ldc.i4.1 + IL_0042: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0047: ldc.i4.1 + IL_0048: stloc.0 + IL_0049: leave.s IL_00b8 + + IL_004b: ldarg.0 + IL_004c: ldc.i4.s -3 + IL_004e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + .try + { + IL_0053: nop + IL_0054: ldstr "In Try" + IL_0059: call void [mscorlib]System.Console::WriteLine(string) + IL_005e: nop + IL_005f: ldarg.0 + IL_0060: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::b + IL_0065: stloc.2 + IL_0066: ldloc.2 + IL_0067: brfalse.s IL_006e + + IL_0069: nop + IL_006a: ldc.i4.0 + IL_006b: stloc.0 + IL_006c: leave.s IL_00a3 + + IL_006e: nop + IL_006f: leave.s IL_007f + + } // end .try + finally + { + IL_0071: nop + IL_0072: ldstr "Inner Finally" + IL_0077: call void [mscorlib]System.Console::WriteLine(string) + IL_007c: nop + IL_007d: nop + IL_007e: endfinally + } // end handler + IL_007f: ldarg.0 + IL_0080: ldc.i4.1 + IL_0081: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>2__current' + IL_0086: ldarg.0 + IL_0087: ldc.i4.2 + IL_0088: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_008d: ldc.i4.1 + IL_008e: stloc.0 + IL_008f: leave.s IL_00b8 + + IL_0091: ldarg.0 + IL_0092: ldc.i4.s -3 + IL_0094: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0099: nop + IL_009a: ldarg.0 + IL_009b: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>m__Finally1'() + IL_00a0: nop + IL_00a1: br.s IL_00ac + + IL_00a3: ldarg.0 + IL_00a4: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>m__Finally1'() + IL_00a9: nop + IL_00aa: leave.s IL_00b8 + + IL_00ac: ldc.i4.0 + IL_00ad: stloc.0 + IL_00ae: leave.s IL_00b8 + + } // end .try + fault + { + IL_00b0: ldarg.0 + IL_00b1: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::System.IDisposable.Dispose() + IL_00b6: nop + IL_00b7: endfinally + } // end handler + IL_00b8: ldloc.0 + IL_00b9: ret + } // end of method 'd__19'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0007: nop + IL_0008: ldstr "Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__19'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>2__current' + IL_0006: ret + } // end of method 'd__19'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__19'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__19'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>3__b' + IL_0030: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::b + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__19'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__19'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__19'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__19'::System.Collections.IEnumerator.Current + } // end of class 'd__19' + + .class auto ansi sealed nested private beforefieldinit 'd__20' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__20'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__20'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 26 (0x1a) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: brfalse.s IL_000c + + IL_000a: br.s IL_000e + + IL_000c: br.s IL_0010 + + IL_000e: ldc.i4.0 + IL_000f: ret + + IL_0010: ldarg.0 + IL_0011: ldc.i4.m1 + IL_0012: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>1__state' + IL_0017: nop + IL_0018: ldc.i4.0 + IL_0019: ret + } // end of method 'd__20'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>2__current' + IL_0006: ret + } // end of method 'd__20'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__20'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__20'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__20'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__20'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__20'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__20'::System.Collections.IEnumerator.Current + } // end of class 'd__20' + + .class auto ansi sealed nested private beforefieldinit 'd__21' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__21'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 33 (0x21) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0014 + + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ldc.i4.1 + IL_0010: beq.s IL_0014 + + IL_0012: br.s IL_0020 + + IL_0014: nop + .try + { + IL_0015: leave.s IL_001e + + } // end .try + finally + { + IL_0017: ldarg.0 + IL_0018: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>m__Finally1'() + IL_001d: endfinally + } // end handler + IL_001e: br.s IL_0020 + + IL_0020: ret + } // end of method 'd__21'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 85 (0x55) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: brfalse.s IL_0012 + + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ldc.i4.1 + IL_000e: beq.s IL_0014 + + IL_0010: br.s IL_0016 + + IL_0012: br.s IL_001a + + IL_0014: br.s IL_003d + + IL_0016: ldc.i4.0 + IL_0017: stloc.0 + IL_0018: leave.s IL_0053 + + IL_001a: ldarg.0 + IL_001b: ldc.i4.m1 + IL_001c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0021: nop + IL_0022: ldarg.0 + IL_0023: ldc.i4.s -3 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_002a: nop + IL_002b: ldarg.0 + IL_002c: ldc.i4.0 + IL_002d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>2__current' + IL_0032: ldarg.0 + IL_0033: ldc.i4.1 + IL_0034: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0039: ldc.i4.1 + IL_003a: stloc.0 + IL_003b: leave.s IL_0053 + + IL_003d: ldarg.0 + IL_003e: ldc.i4.s -3 + IL_0040: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0045: newobj instance void [mscorlib]System.NotImplementedException::.ctor() + IL_004a: throw + + } // end .try + fault + { + IL_004b: ldarg.0 + IL_004c: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::System.IDisposable.Dispose() + IL_0051: nop + IL_0052: endfinally + } // end handler + IL_0053: ldloc.0 + IL_0054: ret + } // end of method 'd__21'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0007: nop + IL_0008: ldstr "Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__21'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>2__current' + IL_0006: ret + } // end of method 'd__21'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__21'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__21'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__21'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__21'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__21'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__21'::System.Collections.IEnumerator.Current + } // end of class 'd__21' + + .class auto ansi sealed nested private beforefieldinit 'd__22' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__22'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 60 (0x3c) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -4 + IL_000a: sub + IL_000b: ldc.i4.1 + IL_000c: ble.un.s IL_0016 + + IL_000e: br.s IL_0010 + + IL_0010: ldloc.0 + IL_0011: ldc.i4.1 + IL_0012: beq.s IL_0016 + + IL_0014: br.s IL_003b + + IL_0016: nop + .try + { + IL_0017: ldloc.0 + IL_0018: ldc.i4.s -4 + IL_001a: beq.s IL_0024 + + IL_001c: br.s IL_001e + + IL_001e: ldloc.0 + IL_001f: ldc.i4.1 + IL_0020: beq.s IL_0024 + + IL_0022: br.s IL_0030 + + IL_0024: nop + .try + { + IL_0025: leave.s IL_002e + + } // end .try + finally + { + IL_0027: ldarg.0 + IL_0028: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>m__Finally2'() + IL_002d: endfinally + } // end handler + IL_002e: br.s IL_0030 + + IL_0030: leave.s IL_0039 + + } // end .try + finally + { + IL_0032: ldarg.0 + IL_0033: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>m__Finally1'() + IL_0038: endfinally + } // end handler + IL_0039: br.s IL_003b + + IL_003b: ret + } // end of method 'd__22'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 108 (0x6c) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: brfalse.s IL_0012 + + IL_000a: br.s IL_000c + + IL_000c: ldloc.1 + IL_000d: ldc.i4.1 + IL_000e: beq.s IL_0014 + + IL_0010: br.s IL_0016 + + IL_0012: br.s IL_001a + + IL_0014: br.s IL_0046 + + IL_0016: ldc.i4.0 + IL_0017: stloc.0 + IL_0018: leave.s IL_006a + + IL_001a: ldarg.0 + IL_001b: ldc.i4.m1 + IL_001c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0021: nop + IL_0022: ldarg.0 + IL_0023: ldc.i4.s -3 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_002a: nop + IL_002b: ldarg.0 + IL_002c: ldc.i4.s -4 + IL_002e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0033: nop + IL_0034: ldarg.0 + IL_0035: ldc.i4.0 + IL_0036: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>2__current' + IL_003b: ldarg.0 + IL_003c: ldc.i4.1 + IL_003d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0042: ldc.i4.1 + IL_0043: stloc.0 + IL_0044: leave.s IL_006a + + IL_0046: ldarg.0 + IL_0047: ldc.i4.s -4 + IL_0049: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_004e: nop + IL_004f: ldarg.0 + IL_0050: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>m__Finally2'() + IL_0055: nop + IL_0056: nop + IL_0057: ldarg.0 + IL_0058: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>m__Finally1'() + IL_005d: nop + IL_005e: ldc.i4.0 + IL_005f: stloc.0 + IL_0060: leave.s IL_006a + + } // end .try + fault + { + IL_0062: ldarg.0 + IL_0063: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::System.IDisposable.Dispose() + IL_0068: nop + IL_0069: endfinally + } // end handler + IL_006a: ldloc.0 + IL_006b: ret + } // end of method 'd__22'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 21 (0x15) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0007: nop + IL_0008: ldstr "Outer Finally" + IL_000d: call void [mscorlib]System.Console::WriteLine(string) + IL_0012: nop + IL_0013: nop + IL_0014: ret + } // end of method 'd__22'::'<>m__Finally1' + + .method private hidebysig instance void + '<>m__Finally2'() cil managed + { + // Code size 22 (0x16) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldc.i4.s -3 + IL_0003: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0008: nop + IL_0009: ldstr "Inner Finally" + IL_000e: call void [mscorlib]System.Console::WriteLine(string) + IL_0013: nop + IL_0014: nop + IL_0015: ret + } // end of method 'd__22'::'<>m__Finally2' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>2__current' + IL_0006: ret + } // end of method 'd__22'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__22'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__22'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__22'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__22'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__22'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__22'::System.Collections.IEnumerator.Current + } // end of class 'd__22' + + .class auto ansi sealed nested private beforefieldinit 'd__23`1'<([mscorlib]System.IDisposable) T> + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private !T a + .field public !T '<>3__a' + .field private !T '5__1' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__23`1'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 33 (0x21) + .maxstack 2 + .locals init (int32 V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: ldc.i4.s -3 + IL_000a: beq.s IL_0014 + + IL_000c: br.s IL_000e + + IL_000e: ldloc.0 + IL_000f: ldc.i4.2 + IL_0010: beq.s IL_0014 + + IL_0012: br.s IL_0020 + + IL_0014: nop + .try + { + IL_0015: leave.s IL_001e + + } // end .try + finally + { + IL_0017: ldarg.0 + IL_0018: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>m__Finally1'() + IL_001d: endfinally + } // end handler + IL_001e: br.s IL_0020 + + IL_0020: ret + } // end of method 'd__23`1'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 158 (0x9e) + .maxstack 2 + .locals init (bool V_0, + int32 V_1) + .try + { + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0006: stloc.1 + IL_0007: ldloc.1 + IL_0008: switch ( + IL_001f, + IL_0021, + IL_0023, + IL_0025) + IL_001d: br.s IL_0027 + + IL_001f: br.s IL_002b + + IL_0021: br.s IL_0045 + + IL_0023: br.s IL_0067 + + IL_0025: br.s IL_0089 + + IL_0027: ldc.i4.0 + IL_0028: stloc.0 + IL_0029: leave.s IL_009c + + IL_002b: ldarg.0 + IL_002c: ldc.i4.m1 + IL_002d: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0032: nop + IL_0033: ldarg.0 + IL_0034: ldc.i4.1 + IL_0035: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>2__current' + IL_003a: ldarg.0 + IL_003b: ldc.i4.1 + IL_003c: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0041: ldc.i4.1 + IL_0042: stloc.0 + IL_0043: leave.s IL_009c + + IL_0045: ldarg.0 + IL_0046: ldc.i4.m1 + IL_0047: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_004c: ldarg.0 + IL_004d: ldc.i4.s -3 + IL_004f: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0054: nop + IL_0055: ldarg.0 + IL_0056: ldc.i4.2 + IL_0057: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>2__current' + IL_005c: ldarg.0 + IL_005d: ldc.i4.2 + IL_005e: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0063: ldc.i4.1 + IL_0064: stloc.0 + IL_0065: leave.s IL_009c + + IL_0067: ldarg.0 + IL_0068: ldc.i4.s -3 + IL_006a: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_006f: nop + IL_0070: ldarg.0 + IL_0071: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>m__Finally1'() + IL_0076: nop + IL_0077: ldarg.0 + IL_0078: ldc.i4.3 + IL_0079: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>2__current' + IL_007e: ldarg.0 + IL_007f: ldc.i4.3 + IL_0080: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0085: ldc.i4.1 + IL_0086: stloc.0 + IL_0087: leave.s IL_009c + + IL_0089: ldarg.0 + IL_008a: ldc.i4.m1 + IL_008b: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0090: ldc.i4.0 + IL_0091: stloc.0 + IL_0092: leave.s IL_009c + + } // end .try + fault + { + IL_0094: ldarg.0 + IL_0095: call instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::System.IDisposable.Dispose() + IL_009a: nop + IL_009b: endfinally + } // end handler + IL_009c: ldloc.0 + IL_009d: ret + } // end of method 'd__23`1'::MoveNext + + .method private hidebysig instance void + '<>m__Finally1'() cil managed + { + // Code size 70 (0x46) + .maxstack 2 + IL_0000: ldarg.0 + IL_0001: ldc.i4.m1 + IL_0002: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0007: nop + IL_0008: ldarg.0 + IL_0009: ldarg.0 + IL_000a: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::a + IL_000f: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'5__1' + IL_0014: ldarg.0 + IL_0015: ldflda !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'5__1' + IL_001a: constrained. !T + IL_0020: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_0025: nop + IL_0026: ldarg.0 + IL_0027: ldflda !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'5__1' + IL_002c: constrained. !T + IL_0032: callvirt instance void [mscorlib]System.IDisposable::Dispose() + IL_0037: nop + IL_0038: nop + IL_0039: ldarg.0 + IL_003a: ldflda !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'5__1' + IL_003f: initobj !T + IL_0045: ret + } // end of method 'd__23`1'::'<>m__Finally1' + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>2__current' + IL_0006: ret + } // end of method 'd__23`1'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__23`1'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__23`1'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>3__a' + IL_0030: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::a + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__23`1'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__23`1'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__23`1'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__23`1'::System.Collections.IEnumerator.Current + } // end of class 'd__23`1' + + .class auto ansi sealed nested private beforefieldinit 'd__24`1'<.ctor T> + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private !T '<>2__current' + .field private int32 '<>l__initialThreadId' + .field private !T '5__1' + .field private int32 '5__2' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__24`1'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__24`1'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 113 (0x71) + .maxstack 3 + .locals init (int32 V_0, + int32 V_1, + bool V_2) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: brfalse.s IL_0012 + + IL_000a: br.s IL_000c + + IL_000c: ldloc.0 + IL_000d: ldc.i4.1 + IL_000e: beq.s IL_0014 + + IL_0010: br.s IL_0016 + + IL_0012: br.s IL_0018 + + IL_0014: br.s IL_004a + + IL_0016: ldc.i4.0 + IL_0017: ret + + IL_0018: ldarg.0 + IL_0019: ldc.i4.m1 + IL_001a: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_001f: nop + IL_0020: ldarg.0 + IL_0021: call !!0 [mscorlib]System.Activator::CreateInstance() + IL_0026: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__1' + IL_002b: ldarg.0 + IL_002c: ldc.i4.0 + IL_002d: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__2' + IL_0032: br.s IL_0062 + + IL_0034: nop + IL_0035: ldarg.0 + IL_0036: ldarg.0 + IL_0037: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__1' + IL_003c: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>2__current' + IL_0041: ldarg.0 + IL_0042: ldc.i4.1 + IL_0043: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_0048: ldc.i4.1 + IL_0049: ret + + IL_004a: ldarg.0 + IL_004b: ldc.i4.m1 + IL_004c: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_0051: nop + IL_0052: ldarg.0 + IL_0053: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__2' + IL_0058: stloc.1 + IL_0059: ldarg.0 + IL_005a: ldloc.1 + IL_005b: ldc.i4.1 + IL_005c: add + IL_005d: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__2' + IL_0062: ldarg.0 + IL_0063: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'5__2' + IL_0068: ldc.i4.3 + IL_0069: clt + IL_006b: stloc.2 + IL_006c: ldloc.2 + IL_006d: brtrue.s IL_0034 + + IL_006f: ldc.i4.0 + IL_0070: ret + } // end of method 'd__24`1'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance !T 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>2__current' + IL_0006: ret + } // end of method 'd__24`1'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__24`1'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>2__current' + IL_0006: box !T + IL_000b: ret + } // end of method 'd__24`1'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 43 (0x2b) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ret + } // end of method 'd__24`1'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__24`1'::System.Collections.IEnumerable.GetEnumerator + + .property instance !T 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance !T ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__24`1'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__24`1'::System.Collections.IEnumerator.Current + } // end of class 'd__24`1' + + .field private int32 fieldOnThis + .method public hidebysig specialname static + class [mscorlib]System.Collections.Generic.IEnumerable`1 + get_YieldChars() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 58 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..XICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 67 65 74 5F 59 69 65 6C // tyTest+d__2.. + // Code size 12 (0xc) + .maxstack 1 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2' V_0, + class [mscorlib]System.Collections.Generic.IEnumerable`1 V_1) + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__2'::.ctor(int32) + IL_0007: stloc.0 + IL_0008: ldloc.0 + IL_0009: stloc.1 + IL_000a: ldloc.1 + IL_000b: ret + } // end of method YieldReturnPrettyTest::get_YieldChars + + .method assembly hidebysig static void + Print(string name, + class [mscorlib]System.Collections.Generic.IEnumerator`1 enumerator) cil managed + { + // Code size 61 (0x3d) + .maxstack 3 + .locals init (bool V_0) + IL_0000: nop + IL_0001: ldarg.0 + IL_0002: ldstr ": Test start" + IL_0007: call string [mscorlib]System.String::Concat(string, + string) + IL_000c: call void [mscorlib]System.Console::WriteLine(string) + IL_0011: nop + IL_0012: br.s IL_0032 + + IL_0014: nop + IL_0015: ldarg.0 + IL_0016: ldstr ": " + IL_001b: ldarg.1 + IL_001c: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + IL_0021: box !!T + IL_0026: call string [mscorlib]System.String::Concat(object, + object, + object) + IL_002b: call void [mscorlib]System.Console::WriteLine(string) + IL_0030: nop + IL_0031: nop + IL_0032: ldarg.1 + IL_0033: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() + IL_0038: stloc.0 + IL_0039: ldloc.0 + IL_003a: brtrue.s IL_0014 + + IL_003c: ret + } // end of method YieldReturnPrettyTest::Print + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + SimpleYieldReturn() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..[ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 53 69 6D 70 6C 65 59 69 // tyTest+d__4.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__4'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::SimpleYieldReturn + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerator`1 + SimpleYieldReturnEnumerator() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 65 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..eICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 53 69 6D 70 6C 65 59 69 // tyTest+d__5.. + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldc.i4.0 + IL_0001: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__5'::.ctor(int32) + IL_0006: ret + } // end of method YieldReturnPrettyTest::SimpleYieldReturnEnumerator + + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnParameters(int32 p) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5F 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // .._ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d_ + 5F 36 00 00 ) // _6.. + // Code size 22 (0x16) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>4__this' + IL_000e: dup + IL_000f: ldarg.1 + IL_0010: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__6'::'<>3__p' + IL_0015: ret + } // end of method YieldReturnPrettyTest::YieldReturnParameters + + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + YieldReturnParametersEnumerator(int32 p) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 69 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..iICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__7.. + // Code size 21 (0x15) + .maxstack 8 + IL_0000: ldc.i4.0 + IL_0001: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::.ctor(int32) + IL_0006: dup + IL_0007: ldarg.0 + IL_0008: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::'<>4__this' + IL_000d: dup + IL_000e: ldarg.1 + IL_000f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__7'::p + IL_0014: ret + } // end of method YieldReturnPrettyTest::YieldReturnParametersEnumerator + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnInLoop() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..[ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__8.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__8'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldReturnInLoop + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithTryFinally() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 63 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..cICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__9.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__9'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithNestedTryFinally(bool breakInMiddle) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 6A 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..jICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__10.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__10'::'<>3__breakInMiddle' + IL_000e: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithNestedTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldReturnWithTwoNonNestedFinallyBlocks(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 73 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..sICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__11.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__11'::'<>3__input' + IL_000e: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithTwoNonNestedFinallyBlocks + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1> + YieldReturnWithAnonymousMethods1(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 6B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..kICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__12.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__12'::'<>3__input' + IL_000e: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithAnonymousMethods1 + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1> + YieldReturnWithAnonymousMethods2(class [mscorlib]System.Collections.Generic.IEnumerable`1 input) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 6B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..kICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 52 65 74 // tyTest+d__13.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__13'::'<>3__input' + IL_000e: ret + } // end of method YieldReturnPrettyTest::YieldReturnWithAnonymousMethods2 + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + GetEvenNumbers(int32 n) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 59 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..YICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 47 65 74 45 76 65 6E 4E // tyTest+d__14.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__14'::'<>3__n' + IL_000e: ret + } // end of method YieldReturnPrettyTest::GetEvenNumbers + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + ExceptionHandling() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5C 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..\ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 45 78 63 65 70 74 69 6F // tyTest+d__15. + 00 ) + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__15'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::ExceptionHandling + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInCatch() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5C 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..\ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 42 72 65 // tyTest+d__16. + 00 ) + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__16'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldBreakInCatch + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInCatchInTryFinally() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 68 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..hICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 42 72 65 // tyTest+d__17.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__17'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldBreakInCatchInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInTryCatchInTryFinally() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 6B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..kICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 42 72 65 // tyTest+d__18.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__18'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldBreakInTryCatchInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakInTryFinallyInTryFinally(bool b) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 6D 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..mICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 42 72 65 // tyTest+d__19 + 00 00 ) + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__19'::'<>3__b' + IL_000e: ret + } // end of method YieldReturnPrettyTest::YieldBreakInTryFinallyInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldBreakOnly() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 59 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..YICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 59 69 65 6C 64 42 72 65 // tyTest+d__20.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__20'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::YieldBreakOnly + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + UnconditionalThrowInTryFinally() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 69 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..iICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 55 6E 63 6F 6E 64 69 74 // tyTest+d__21.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__21'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::UnconditionalThrowInTryFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + NestedTryFinallyStartingOnSamePosition() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 71 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..qICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 4E 65 73 74 65 64 54 72 // tyTest+d + 5F 5F 32 32 00 00 ) // __22.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__22'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::NestedTryFinallyStartingOnSamePosition + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + LocalInFinally<([mscorlib]System.IDisposable) T>(!!T a) cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5B 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..[ICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 4C 6F 63 61 6C 49 6E 46 // tyTest+d__23`1.. + // Code size 15 (0xf) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: stfld !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__23`1'::'<>3__a' + IL_000e: ret + } // end of method YieldReturnPrettyTest::LocalInFinally + + .method public hidebysig static class [mscorlib]System.Collections.Generic.IEnumerable`1 + GenericYield<.ctor T>() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 59 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..YICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 59 69 65 6C 64 52 65 74 75 72 6E 50 72 65 74 // .YieldReturnPret + 74 79 54 65 73 74 2B 3C 47 65 6E 65 72 69 63 59 // tyTest+d__24`1.. + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest/'d__24`1'::.ctor(int32) + IL_0007: ret + } // end of method YieldReturnPrettyTest::GenericYield + + .method public hidebysig specialname rtspecialname + instance void .ctor() cil managed + { + // Code size 8 (0x8) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ret + } // end of method YieldReturnPrettyTest::.ctor + + .property class [mscorlib]System.Collections.Generic.IEnumerable`1 + YieldChars() + { + .get class [mscorlib]System.Collections.Generic.IEnumerable`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest::get_YieldChars() + } // end of property YieldReturnPrettyTest::YieldChars +} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.YieldReturnPrettyTest + +.class private sequential ansi sealed beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + extends [mscorlib]System.ValueType +{ + .class auto ansi sealed nested private beforefieldinit 'd__1' + extends [mscorlib]System.Object + implements class [mscorlib]System.Collections.Generic.IEnumerable`1, + [mscorlib]System.Collections.IEnumerable, + class [mscorlib]System.Collections.Generic.IEnumerator`1, + [mscorlib]System.IDisposable, + [mscorlib]System.Collections.IEnumerator + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) + .field private int32 '<>1__state' + .field private int32 '<>2__current' + .field private int32 '<>l__initialThreadId' + .field public valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn '<>4__this' + .field public valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn '<>3__<>4__this' + .method public hidebysig specialname rtspecialname + instance void .ctor(int32 '<>1__state') cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + // Code size 26 (0x1a) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: nop + IL_0007: ldarg.0 + IL_0008: ldarg.1 + IL_0009: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_000e: ldarg.0 + IL_000f: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0014: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>l__initialThreadId' + IL_0019: ret + } // end of method 'd__1'::.ctor + + .method private hidebysig newslot virtual final + instance void System.IDisposable.Dispose() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.IDisposable::Dispose + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method 'd__1'::System.IDisposable.Dispose + + .method private hidebysig newslot virtual final + instance bool MoveNext() cil managed + { + .override [mscorlib]System.Collections.IEnumerator::MoveNext + // Code size 143 (0x8f) + .maxstack 4 + .locals init (int32 V_0, + int32 V_1) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_0006: stloc.0 + IL_0007: ldloc.0 + IL_0008: switch ( + IL_001b, + IL_001d, + IL_001f) + IL_0019: br.s IL_0021 + + IL_001b: br.s IL_0023 + + IL_001d: br.s IL_0055 + + IL_001f: br.s IL_0086 + + IL_0021: ldc.i4.0 + IL_0022: ret + + IL_0023: ldarg.0 + IL_0024: ldc.i4.m1 + IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_002a: nop + IL_002b: ldarg.0 + IL_002c: ldarg.0 + IL_002d: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>4__this' + IL_0032: ldarg.0 + IL_0033: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>4__this' + IL_0038: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_003d: stloc.1 + IL_003e: ldloc.1 + IL_003f: ldc.i4.1 + IL_0040: add + IL_0041: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_0046: ldloc.1 + IL_0047: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>2__current' + IL_004c: ldarg.0 + IL_004d: ldc.i4.1 + IL_004e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_0053: ldc.i4.1 + IL_0054: ret + + IL_0055: ldarg.0 + IL_0056: ldc.i4.m1 + IL_0057: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_005c: ldarg.0 + IL_005d: ldarg.0 + IL_005e: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>4__this' + IL_0063: ldarg.0 + IL_0064: ldflda valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>4__this' + IL_0069: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_006e: stloc.1 + IL_006f: ldloc.1 + IL_0070: ldc.i4.1 + IL_0071: add + IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn::val + IL_0077: ldloc.1 + IL_0078: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>2__current' + IL_007d: ldarg.0 + IL_007e: ldc.i4.2 + IL_007f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_0084: ldc.i4.1 + IL_0085: ret + + IL_0086: ldarg.0 + IL_0087: ldc.i4.m1 + IL_0088: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_008d: ldc.i4.0 + IL_008e: ret + } // end of method 'd__1'::MoveNext + + .method private hidebysig newslot specialname virtual final + instance int32 'System.Collections.Generic.IEnumerator.get_Current'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>2__current' + IL_0006: ret + } // end of method 'd__1'::'System.Collections.Generic.IEnumerator.get_Current' + + .method private hidebysig newslot virtual final + instance void System.Collections.IEnumerator.Reset() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::Reset + // Code size 6 (0x6) + .maxstack 8 + IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() + IL_0005: throw + } // end of method 'd__1'::System.Collections.IEnumerator.Reset + + .method private hidebysig newslot specialname virtual final + instance object System.Collections.IEnumerator.get_Current() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerator::get_Current + // Code size 12 (0xc) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>2__current' + IL_0006: box [mscorlib]System.Int32 + IL_000b: ret + } // end of method 'd__1'::System.Collections.IEnumerator.get_Current + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.Generic.IEnumerator`1 + 'System.Collections.Generic.IEnumerable.GetEnumerator'() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() + // Code size 55 (0x37) + .maxstack 2 + .locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1' V_0) + IL_0000: ldarg.0 + IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_0006: ldc.i4.s -2 + IL_0008: bne.un.s IL_0022 + + IL_000a: ldarg.0 + IL_000b: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>l__initialThreadId' + IL_0010: call int32 [mscorlib]System.Environment::get_CurrentManagedThreadId() + IL_0015: bne.un.s IL_0022 + + IL_0017: ldarg.0 + IL_0018: ldc.i4.0 + IL_0019: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>1__state' + IL_001e: ldarg.0 + IL_001f: stloc.0 + IL_0020: br.s IL_0029 + + IL_0022: ldc.i4.0 + IL_0023: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::.ctor(int32) + IL_0028: stloc.0 + IL_0029: ldloc.0 + IL_002a: ldarg.0 + IL_002b: ldfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>3__<>4__this' + IL_0030: stfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>4__this' + IL_0035: ldloc.0 + IL_0036: ret + } // end of method 'd__1'::'System.Collections.Generic.IEnumerable.GetEnumerator' + + .method private hidebysig newslot virtual final + instance class [mscorlib]System.Collections.IEnumerator + System.Collections.IEnumerable.GetEnumerator() cil managed + { + .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) + .override [mscorlib]System.Collections.IEnumerable::GetEnumerator + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance class [mscorlib]System.Collections.Generic.IEnumerator`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'System.Collections.Generic.IEnumerable.GetEnumerator'() + IL_0006: ret + } // end of method 'd__1'::System.Collections.IEnumerable.GetEnumerator + + .property instance int32 'System.Collections.Generic.IEnumerator.Current'() + { + .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'System.Collections.Generic.IEnumerator.get_Current'() + } // end of property 'd__1'::'System.Collections.Generic.IEnumerator.Current' + .property instance object System.Collections.IEnumerator.Current() + { + .get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::System.Collections.IEnumerator.get_Current() + } // end of property 'd__1'::System.Collections.IEnumerator.Current + } // end of class 'd__1' + + .field private int32 val + .method public hidebysig instance class [mscorlib]System.Collections.Generic.IEnumerable`1 + Count() cil managed + { + .custom instance void [mscorlib]System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 4F 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..OICSharpCode.D + 65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. + 54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty + 2E 53 74 72 75 63 74 57 69 74 68 59 69 65 6C 64 // .StructWithYield + 52 65 74 75 72 6E 2B 3C 43 6F 75 6E 74 3E 64 5F // Return+d_ + 5F 31 00 00 ) // _1.. + // Code size 20 (0x14) + .maxstack 8 + IL_0000: ldc.i4.s -2 + IL_0002: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::.ctor(int32) + IL_0007: dup + IL_0008: ldarg.0 + IL_0009: ldobj ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + IL_000e: stfld valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn/'d__1'::'<>3__<>4__this' + IL_0013: ret + } // end of method StructWithYieldReturn::Count + +} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.StructWithYieldReturn + + +// ============================================================= + +// *********** DISASSEMBLY COMPLETE *********************** diff --git a/ICSharpCode.Decompiler/CSharp/StatementBuilder.cs b/ICSharpCode.Decompiler/CSharp/StatementBuilder.cs index 10a27a159..5507fede1 100644 --- a/ICSharpCode.Decompiler/CSharp/StatementBuilder.cs +++ b/ICSharpCode.Decompiler/CSharp/StatementBuilder.cs @@ -286,7 +286,9 @@ namespace ICSharpCode.Decompiler.CSharp return new YieldBreakStatement(); else if (!inst.Value.MatchNop()) { IType targetType = currentFunction.IsAsync ? currentFunction.AsyncReturnType : currentFunction.ReturnType; - return new ReturnStatement(exprBuilder.Translate(inst.Value, typeHint: targetType).ConvertTo(targetType, exprBuilder, allowImplicitConversion: true)); + var expr = exprBuilder.Translate(inst.Value, typeHint: targetType) + .ConvertTo(targetType, exprBuilder, allowImplicitConversion: true); + return new ReturnStatement(expr); } else return new ReturnStatement(); } @@ -311,8 +313,10 @@ namespace ICSharpCode.Decompiler.CSharp protected internal override Statement VisitYieldReturn(YieldReturn inst) { var elementType = currentFunction.ReturnType.GetElementTypeFromIEnumerable(typeSystem, true, out var isGeneric); + var expr = exprBuilder.Translate(inst.Value, typeHint: elementType) + .ConvertTo(elementType, exprBuilder, allowImplicitConversion: true); return new YieldReturnStatement { - Expression = exprBuilder.Translate(inst.Value, typeHint: elementType).ConvertTo(elementType, exprBuilder) + Expression = expr }; } diff --git a/ICSharpCode.Decompiler/IL/ControlFlow/YieldReturnDecompiler.cs b/ICSharpCode.Decompiler/IL/ControlFlow/YieldReturnDecompiler.cs index bd1acf794..1c655282e 100644 --- a/ICSharpCode.Decompiler/IL/ControlFlow/YieldReturnDecompiler.cs +++ b/ICSharpCode.Decompiler/IL/ControlFlow/YieldReturnDecompiler.cs @@ -811,8 +811,10 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow break; case Leave leave: if (leave.MatchReturn(out var value)) { - if (value.MatchLdLoc(out var v) && v.IsSingleDefinition - && v.StoreInstructions.SingleOrDefault() is StLoc stloc) { + if (value.MatchLdLoc(out var v) + && (v.Kind == VariableKind.Local || v.Kind == VariableKind.StackSlot) + && v.StoreInstructions.Count == 1 + && v.StoreInstructions[0] is StLoc stloc) { returnStores.Add(stloc); value = stloc.Value; } diff --git a/ICSharpCode.Decompiler/IL/Transforms/AssignVariableNames.cs b/ICSharpCode.Decompiler/IL/Transforms/AssignVariableNames.cs index 7cac67978..6334da9aa 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/AssignVariableNames.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/AssignVariableNames.cs @@ -477,6 +477,9 @@ namespace ICSharpCode.Decompiler.IL.Transforms { if (function == null) throw new ArgumentNullException(nameof(function)); + if (existingVariable != null && !existingVariable.HasGeneratedName) { + return existingVariable.Name; + } var reservedVariableNames = CollectReservedVariableNames(function, existingVariable); string baseName = GetNameFromInstruction(valueContext); diff --git a/ICSharpCode.Decompiler/IL/Transforms/ILInlining.cs b/ICSharpCode.Decompiler/IL/Transforms/ILInlining.cs index 06f3fced0..704fcb808 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/ILInlining.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/ILInlining.cs @@ -363,6 +363,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms // decide based on the target into which we are inlining switch (next.OpCode) { case OpCode.Leave: + case OpCode.YieldReturn: return parent == next; case OpCode.IfInstruction: while (parent.MatchLogicNot(out _)) {