mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
5.6 KiB
124 lines
5.6 KiB
|
|
|
|
|
|
|
|
// 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 tmp8FB |
|
{ |
|
.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. |
|
.permissionset reqmin |
|
= {[mscorlib]System.Security.Permissions.SecurityPermissionAttribute = {property bool 'SkipVerification' = bool(true)}} |
|
.hash algorithm 0x00008004 |
|
.ver 0:0:0:0 |
|
} |
|
.module tmp8FB.tmp |
|
.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 auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoPropertiesAndEvents |
|
extends [mscorlib]System.Object |
|
{ |
|
.field private class [mscorlib]System.EventHandler MyEvent |
|
.method public hidebysig specialname instance void |
|
add_MyEvent(class [mscorlib]System.EventHandler 'value') cil managed |
|
{ |
|
// Code size 41 (0x29) |
|
.maxstack 3 |
|
.locals init (class [mscorlib]System.EventHandler V_0, |
|
class [mscorlib]System.EventHandler V_1, |
|
class [mscorlib]System.EventHandler V_2) |
|
IL_0000: ldarg.0 |
|
IL_0001: ldfld class [mscorlib]System.EventHandler ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoPropertiesAndEvents::MyEvent |
|
IL_0006: stloc.0 |
|
IL_0007: ldloc.0 |
|
IL_0008: stloc.1 |
|
IL_0009: ldloc.1 |
|
IL_000a: ldarg.1 |
|
IL_000b: call class [mscorlib]System.Delegate [mscorlib]System.Delegate::Combine(class [mscorlib]System.Delegate, |
|
class [mscorlib]System.Delegate) |
|
IL_0010: castclass [mscorlib]System.EventHandler |
|
IL_0015: stloc.2 |
|
IL_0016: ldarg.0 |
|
IL_0017: ldflda class [mscorlib]System.EventHandler ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoPropertiesAndEvents::MyEvent |
|
IL_001c: ldloc.2 |
|
IL_001d: ldloc.1 |
|
IL_001e: call !!0 [mscorlib]System.Threading.Interlocked::CompareExchange<class [mscorlib]System.EventHandler>(!!0&, |
|
!!0, |
|
!!0) |
|
IL_0023: stloc.0 |
|
IL_0024: ldloc.0 |
|
IL_0025: ldloc.1 |
|
IL_0026: bne.un.s IL_0007 |
|
|
|
IL_0028: ret |
|
} // end of method NoPropertiesAndEvents::add_MyEvent |
|
|
|
.method public hidebysig specialname instance void |
|
remove_MyEvent(class [mscorlib]System.EventHandler 'value') cil managed |
|
{ |
|
// Code size 41 (0x29) |
|
.maxstack 3 |
|
.locals init (class [mscorlib]System.EventHandler V_0, |
|
class [mscorlib]System.EventHandler V_1, |
|
class [mscorlib]System.EventHandler V_2) |
|
IL_0000: ldarg.0 |
|
IL_0001: ldfld class [mscorlib]System.EventHandler ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoPropertiesAndEvents::MyEvent |
|
IL_0006: stloc.0 |
|
IL_0007: ldloc.0 |
|
IL_0008: stloc.1 |
|
IL_0009: ldloc.1 |
|
IL_000a: ldarg.1 |
|
IL_000b: call class [mscorlib]System.Delegate [mscorlib]System.Delegate::Remove(class [mscorlib]System.Delegate, |
|
class [mscorlib]System.Delegate) |
|
IL_0010: castclass [mscorlib]System.EventHandler |
|
IL_0015: stloc.2 |
|
IL_0016: ldarg.0 |
|
IL_0017: ldflda class [mscorlib]System.EventHandler ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoPropertiesAndEvents::MyEvent |
|
IL_001c: ldloc.2 |
|
IL_001d: ldloc.1 |
|
IL_001e: call !!0 [mscorlib]System.Threading.Interlocked::CompareExchange<class [mscorlib]System.EventHandler>(!!0&, |
|
!!0, |
|
!!0) |
|
IL_0023: stloc.0 |
|
IL_0024: ldloc.0 |
|
IL_0025: ldloc.1 |
|
IL_0026: bne.un.s IL_0007 |
|
|
|
IL_0028: ret |
|
} // end of method NoPropertiesAndEvents::remove_MyEvent |
|
|
|
.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 NoPropertiesAndEvents::.ctor |
|
|
|
.event [mscorlib]System.EventHandler MyEvent |
|
{ |
|
.addon instance void ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoPropertiesAndEvents::add_MyEvent(class [mscorlib]System.EventHandler) |
|
.removeon instance void ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoPropertiesAndEvents::remove_MyEvent(class [mscorlib]System.EventHandler) |
|
} // end of event NoPropertiesAndEvents::MyEvent |
|
} // end of class ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoPropertiesAndEvents |
|
|
|
|
|
// ============================================================= |
|
|
|
// *********** DISASSEMBLY COMPLETE ***********************
|
|
|