// 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 NoExtensionMethods { .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) .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 NoExtensionMethods.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 private abstract auto ansi sealed beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoExtensionMethods extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) .method assembly hidebysig static class [mscorlib]System.Func`1 AsFunc(!!T 'value') cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) // Code size 23 (0x17) .maxstack 2 .locals init (class [mscorlib]System.Func`1 V_0) IL_0000: nop IL_0001: ldarg.0 IL_0002: box !!T IL_0007: ldftn !!0 ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoExtensionMethods::Return(!!0) IL_000d: newobj instance void class [mscorlib]System.Func`1::.ctor(object, native int) IL_0012: stloc.0 IL_0013: br.s IL_0015 IL_0015: ldloc.0 IL_0016: ret } // end of method NoExtensionMethods::AsFunc .method private hidebysig static !!T Return(!!T 'value') cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) // Code size 7 (0x7) .maxstack 1 .locals init (!!T V_0) IL_0000: nop IL_0001: ldarg.0 IL_0002: stloc.0 IL_0003: br.s IL_0005 IL_0005: ldloc.0 IL_0006: ret } // end of method NoExtensionMethods::Return .method assembly hidebysig static class [mscorlib]System.Func`2 ExtensionMethodAsStaticFunc() cil managed { // Code size 18 (0x12) .maxstack 2 .locals init (class [mscorlib]System.Func`2 V_0) IL_0000: nop IL_0001: ldnull IL_0002: ldftn !!0 ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoExtensionMethods::Return(!!0) IL_0008: newobj instance void class [mscorlib]System.Func`2::.ctor(object, native int) IL_000d: stloc.0 IL_000e: br.s IL_0010 IL_0010: ldloc.0 IL_0011: ret } // end of method NoExtensionMethods::ExtensionMethodAsStaticFunc .method assembly hidebysig static class [mscorlib]System.Func`1 ExtensionMethodBoundToNull() cil managed { // Code size 18 (0x12) .maxstack 2 .locals init (class [mscorlib]System.Func`1 V_0) IL_0000: nop IL_0001: ldnull IL_0002: ldftn !!0 ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoExtensionMethods::Return(!!0) IL_0008: newobj instance void class [mscorlib]System.Func`1::.ctor(object, native int) IL_000d: stloc.0 IL_000e: br.s IL_0010 IL_0010: ldloc.0 IL_0011: ret } // end of method NoExtensionMethods::ExtensionMethodBoundToNull } // end of class ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoExtensionMethods // ============================================================= // *********** DISASSEMBLY COMPLETE ***********************