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.
242 lines
9.7 KiB
242 lines
9.7 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 EnumTests |
|
{ |
|
.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 EnumTests.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 auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests |
|
extends [mscorlib]System.Object |
|
{ |
|
.class auto ansi sealed nested public SimpleEnum |
|
extends [mscorlib]System.Enum |
|
{ |
|
.field public specialname rtspecialname int32 value__ |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/SimpleEnum Item1 = int32(0x00000000) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/SimpleEnum Item2 = int32(0x00000001) |
|
} // end of class SimpleEnum |
|
|
|
.class auto ansi sealed nested public LongBasedEnum |
|
extends [mscorlib]System.Enum |
|
{ |
|
.field public specialname rtspecialname int64 value__ |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/LongBasedEnum Item1 = int64(0x0) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/LongBasedEnum Item2 = int64(0x1) |
|
} // end of class LongBasedEnum |
|
|
|
.class auto ansi sealed nested public LongWithInitializers |
|
extends [mscorlib]System.Enum |
|
{ |
|
.field public specialname rtspecialname int64 value__ |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/LongWithInitializers Item1 = int64(0x0) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/LongWithInitializers Item2 = int64(0x14) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/LongWithInitializers Item3 = int64(0x15) |
|
} // end of class LongWithInitializers |
|
|
|
.class auto ansi sealed nested public ShortWithInitializers |
|
extends [mscorlib]System.Enum |
|
{ |
|
.field public specialname rtspecialname int16 value__ |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/ShortWithInitializers Item1 = int16(0x0000) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/ShortWithInitializers Item2 = int16(0x0014) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/ShortWithInitializers Item3 = int16(0x0015) |
|
} // end of class ShortWithInitializers |
|
|
|
.class auto ansi sealed nested public ByteWithInitializers |
|
extends [mscorlib]System.Enum |
|
{ |
|
.field public specialname rtspecialname uint8 value__ |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/ByteWithInitializers Item1 = uint8(0x00) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/ByteWithInitializers Item2 = uint8(0x14) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/ByteWithInitializers Item3 = uint8(0x15) |
|
} // end of class ByteWithInitializers |
|
|
|
.class auto ansi sealed nested public SimpleFlagsEnum |
|
extends [mscorlib]System.Enum |
|
{ |
|
.custom instance void [mscorlib]System.FlagsAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public specialname rtspecialname int32 value__ |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/SimpleFlagsEnum None = int32(0x00000000) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/SimpleFlagsEnum Item1 = int32(0x00000001) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/SimpleFlagsEnum Item2 = int32(0x00000002) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/SimpleFlagsEnum Item3 = int32(0x00000004) |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/SimpleFlagsEnum All = int32(0x00000007) |
|
} // end of class SimpleFlagsEnum |
|
|
|
.class auto ansi sealed nested public NegativeValueWithFlags |
|
extends [mscorlib]System.Enum |
|
{ |
|
.custom instance void [mscorlib]System.FlagsAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public specialname rtspecialname int32 value__ |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/NegativeValueWithFlags Value = int32(0x80000001) |
|
} // end of class NegativeValueWithFlags |
|
|
|
.class auto ansi sealed nested public NegativeValueWithoutFlags |
|
extends [mscorlib]System.Enum |
|
{ |
|
.field public specialname rtspecialname int32 value__ |
|
.field public static literal valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests/NegativeValueWithoutFlags Value = int32(0x80000001) |
|
} // end of class NegativeValueWithoutFlags |
|
|
|
.method public hidebysig instance valuetype [mscorlib]System.AttributeTargets |
|
SingleEnumValue() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 1 |
|
.locals init (valuetype [mscorlib]System.AttributeTargets V_0) |
|
IL_0000: nop |
|
IL_0001: ldc.i4.4 |
|
IL_0002: stloc.0 |
|
IL_0003: br.s IL_0005 |
|
|
|
IL_0005: ldloc.0 |
|
IL_0006: ret |
|
} // end of method EnumTests::SingleEnumValue |
|
|
|
.method public hidebysig instance valuetype [mscorlib]System.AttributeTargets |
|
TwoEnumValuesOr() cil managed |
|
{ |
|
// Code size 8 (0x8) |
|
.maxstack 1 |
|
.locals init (valuetype [mscorlib]System.AttributeTargets V_0) |
|
IL_0000: nop |
|
IL_0001: ldc.i4.s 68 |
|
IL_0003: stloc.0 |
|
IL_0004: br.s IL_0006 |
|
|
|
IL_0006: ldloc.0 |
|
IL_0007: ret |
|
} // end of method EnumTests::TwoEnumValuesOr |
|
|
|
.method public hidebysig instance valuetype [mscorlib]System.AttributeTargets |
|
ThreeEnumValuesOr() cil managed |
|
{ |
|
// Code size 11 (0xb) |
|
.maxstack 1 |
|
.locals init (valuetype [mscorlib]System.AttributeTargets V_0) |
|
IL_0000: nop |
|
IL_0001: ldc.i4 0x844 |
|
IL_0006: stloc.0 |
|
IL_0007: br.s IL_0009 |
|
|
|
IL_0009: ldloc.0 |
|
IL_000a: ret |
|
} // end of method EnumTests::ThreeEnumValuesOr |
|
|
|
.method public hidebysig instance valuetype [mscorlib]System.AttributeTargets |
|
UnknownEnumValue() cil managed |
|
{ |
|
// Code size 11 (0xb) |
|
.maxstack 1 |
|
.locals init (valuetype [mscorlib]System.AttributeTargets V_0) |
|
IL_0000: nop |
|
IL_0001: ldc.i4 0xf4240 |
|
IL_0006: stloc.0 |
|
IL_0007: br.s IL_0009 |
|
|
|
IL_0009: ldloc.0 |
|
IL_000a: ret |
|
} // end of method EnumTests::UnknownEnumValue |
|
|
|
.method public hidebysig instance valuetype [mscorlib]System.AttributeTargets |
|
EnumAllValue() cil managed |
|
{ |
|
// Code size 11 (0xb) |
|
.maxstack 1 |
|
.locals init (valuetype [mscorlib]System.AttributeTargets V_0) |
|
IL_0000: nop |
|
IL_0001: ldc.i4 0x7fff |
|
IL_0006: stloc.0 |
|
IL_0007: br.s IL_0009 |
|
|
|
IL_0009: ldloc.0 |
|
IL_000a: ret |
|
} // end of method EnumTests::EnumAllValue |
|
|
|
.method public hidebysig instance valuetype [mscorlib]System.AttributeTargets |
|
EnumZeroValue() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 1 |
|
.locals init (valuetype [mscorlib]System.AttributeTargets V_0) |
|
IL_0000: nop |
|
IL_0001: ldc.i4.0 |
|
IL_0002: stloc.0 |
|
IL_0003: br.s IL_0005 |
|
|
|
IL_0005: ldloc.0 |
|
IL_0006: ret |
|
} // end of method EnumTests::EnumZeroValue |
|
|
|
.method public hidebysig instance object |
|
PreservingTypeWhenBoxed() cil managed |
|
{ |
|
// Code size 16 (0x10) |
|
.maxstack 1 |
|
.locals init (object V_0) |
|
IL_0000: nop |
|
IL_0001: ldc.i4 0x1000 |
|
IL_0006: box [mscorlib]System.AttributeTargets |
|
IL_000b: stloc.0 |
|
IL_000c: br.s IL_000e |
|
|
|
IL_000e: ldloc.0 |
|
IL_000f: ret |
|
} // end of method EnumTests::PreservingTypeWhenBoxed |
|
|
|
.method public hidebysig instance object |
|
PreservingTypeWhenBoxedTwoEnum() cil managed |
|
{ |
|
// Code size 16 (0x10) |
|
.maxstack 1 |
|
.locals init (object V_0) |
|
IL_0000: nop |
|
IL_0001: ldc.i4 0x1004 |
|
IL_0006: box [mscorlib]System.AttributeTargets |
|
IL_000b: stloc.0 |
|
IL_000c: br.s IL_000e |
|
|
|
IL_000e: ldloc.0 |
|
IL_000f: ret |
|
} // end of method EnumTests::PreservingTypeWhenBoxedTwoEnum |
|
|
|
.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 EnumTests::.ctor |
|
|
|
} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.EnumTests |
|
|
|
|
|
// ============================================================= |
|
|
|
// *********** DISASSEMBLY COMPLETE ***********************
|
|
|