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.
334 lines
15 KiB
334 lines
15 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 OptionalArguments |
|
{ |
|
.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 OptionalArguments.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.OptionalArguments |
|
extends [mscorlib]System.Object |
|
{ |
|
.method private hidebysig instance void |
|
SimpleTests() cil managed |
|
{ |
|
// Code size 43 (0x2b) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ldarg.0 |
|
IL_0002: ldc.i4.s 10 |
|
IL_0004: ldstr "Test" |
|
IL_0009: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::Test(int32, |
|
string) |
|
IL_000e: nop |
|
IL_000f: ldarg.0 |
|
IL_0010: ldc.i4.5 |
|
IL_0011: ldstr "Test" |
|
IL_0016: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::Test(int32, |
|
string) |
|
IL_001b: nop |
|
IL_001c: ldarg.0 |
|
IL_001d: ldc.i4.s 10 |
|
IL_001f: ldstr "Hello World!" |
|
IL_0024: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::Test(int32, |
|
string) |
|
IL_0029: nop |
|
IL_002a: ret |
|
} // end of method OptionalArguments::SimpleTests |
|
|
|
.method private hidebysig instance void |
|
Conflicts() cil managed |
|
{ |
|
// Code size 123 (0x7b) |
|
.maxstack 4 |
|
IL_0000: nop |
|
IL_0001: ldarg.0 |
|
IL_0002: ldc.i4.5 |
|
IL_0003: ldc.i4.3 |
|
IL_0004: ldstr "Hello" |
|
IL_0009: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::OnlyDifferenceIsLastArgument(int32, |
|
int32, |
|
string) |
|
IL_000e: nop |
|
IL_000f: ldarg.0 |
|
IL_0010: ldc.i4.5 |
|
IL_0011: ldc.i4.3 |
|
IL_0012: ldc.r8 3.141 |
|
IL_001b: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::OnlyDifferenceIsLastArgument(int32, |
|
int32, |
|
float64) |
|
IL_0020: nop |
|
IL_0021: ldarg.0 |
|
IL_0022: ldc.i4.5 |
|
IL_0023: ldc.i4.3 |
|
IL_0024: ldnull |
|
IL_0025: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::OnlyDifferenceIsLastArgument(int32, |
|
int32, |
|
string) |
|
IL_002a: nop |
|
IL_002b: ldarg.0 |
|
IL_002c: ldc.i4.5 |
|
IL_002d: ldc.i4.3 |
|
IL_002e: ldc.r8 (00 00 00 00 00 00 F0 FF) |
|
IL_0037: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::OnlyDifferenceIsLastArgument(int32, |
|
int32, |
|
float64) |
|
IL_003c: nop |
|
IL_003d: ldarg.0 |
|
IL_003e: ldc.i4.s 10 |
|
IL_0040: ldstr "World" |
|
IL_0045: ldnull |
|
IL_0046: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::OnlyDifferenceIsLastArgumentCastNecessary(int32, |
|
string, |
|
string) |
|
IL_004b: nop |
|
IL_004c: ldarg.0 |
|
IL_004d: ldc.i4.s 10 |
|
IL_004f: ldstr "Hello" |
|
IL_0054: ldnull |
|
IL_0055: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::OnlyDifferenceIsLastArgumentCastNecessary(int32, |
|
string, |
|
class ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments) |
|
IL_005a: nop |
|
IL_005b: ldarg.0 |
|
IL_005c: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::DifferenceInArgumentCount() |
|
IL_0061: nop |
|
IL_0062: ldarg.0 |
|
IL_0063: ldstr "Hello" |
|
IL_0068: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::DifferenceInArgumentCount(string) |
|
IL_006d: nop |
|
IL_006e: ldarg.0 |
|
IL_006f: ldstr "World" |
|
IL_0074: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::DifferenceInArgumentCount(string) |
|
IL_0079: nop |
|
IL_007a: ret |
|
} // end of method OptionalArguments::Conflicts |
|
|
|
.method private hidebysig instance void |
|
ParamsTests() cil managed |
|
{ |
|
// Code size 92 (0x5c) |
|
.maxstack 5 |
|
IL_0000: nop |
|
IL_0001: ldarg.0 |
|
IL_0002: ldc.i4.5 |
|
IL_0003: ldc.i4.3 |
|
IL_0004: newarr [mscorlib]System.Int32 |
|
IL_0009: dup |
|
IL_000a: ldtoken field valuetype '<PrivateImplementationDetails>'/'__StaticArrayInitTypeSize=12' '<PrivateImplementationDetails>'::'0F3DD643C5167ACFC541F72809FFF828A6E41494' |
|
IL_000f: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, |
|
valuetype [mscorlib]System.RuntimeFieldHandle) |
|
IL_0014: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::ParamsMethod(int32, |
|
int32[]) |
|
IL_0019: nop |
|
IL_001a: ldarg.0 |
|
IL_001b: ldnull |
|
IL_001c: call !!0[] [mscorlib]System.Array::Empty<int32>() |
|
IL_0021: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::ParamsMethod(string, |
|
int32[]) |
|
IL_0026: nop |
|
IL_0027: ldarg.0 |
|
IL_0028: ldc.i4.5 |
|
IL_0029: call !!0[] [mscorlib]System.Array::Empty<int32>() |
|
IL_002e: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::ParamsMethod(int32, |
|
int32[]) |
|
IL_0033: nop |
|
IL_0034: ldarg.0 |
|
IL_0035: ldc.i4.s 10 |
|
IL_0037: call !!0[] [mscorlib]System.Array::Empty<int32>() |
|
IL_003c: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::ParamsMethod(int32, |
|
int32[]) |
|
IL_0041: nop |
|
IL_0042: ldarg.0 |
|
IL_0043: ldnull |
|
IL_0044: ldc.i4.3 |
|
IL_0045: newarr [mscorlib]System.Int32 |
|
IL_004a: dup |
|
IL_004b: ldtoken field valuetype '<PrivateImplementationDetails>'/'__StaticArrayInitTypeSize=12' '<PrivateImplementationDetails>'::E429CCA3F703A39CC5954A6572FEC9086135B34E |
|
IL_0050: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, |
|
valuetype [mscorlib]System.RuntimeFieldHandle) |
|
IL_0055: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments::ParamsMethod(string, |
|
int32[]) |
|
IL_005a: nop |
|
IL_005b: ret |
|
} // end of method OptionalArguments::ParamsTests |
|
|
|
.method private hidebysig instance void |
|
ParamsMethod([opt] int32 a, |
|
int32[] values) cil managed |
|
{ |
|
.param [1] = int32(0x00000005) |
|
.param [2] |
|
.custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = ( 01 00 00 00 ) |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ret |
|
} // end of method OptionalArguments::ParamsMethod |
|
|
|
.method private hidebysig instance void |
|
ParamsMethod([opt] string a, |
|
int32[] values) cil managed |
|
{ |
|
.param [1] = nullref |
|
.param [2] |
|
.custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = ( 01 00 00 00 ) |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ret |
|
} // end of method OptionalArguments::ParamsMethod |
|
|
|
.method private hidebysig instance void |
|
DifferenceInArgumentCount() cil managed |
|
{ |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ret |
|
} // end of method OptionalArguments::DifferenceInArgumentCount |
|
|
|
.method private hidebysig instance void |
|
DifferenceInArgumentCount([opt] string a) cil managed |
|
{ |
|
.param [1] = "Hello" |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ret |
|
} // end of method OptionalArguments::DifferenceInArgumentCount |
|
|
|
.method private hidebysig instance void |
|
Test([opt] int32 a, |
|
[opt] string b) cil managed |
|
{ |
|
.param [1] = int32(0x0000000A) |
|
.param [2] = "Test" |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ret |
|
} // end of method OptionalArguments::Test |
|
|
|
.method private hidebysig instance void |
|
OnlyDifferenceIsLastArgument(int32 a, |
|
int32 b, |
|
[opt] string c) cil managed |
|
{ |
|
.param [3] = nullref |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ret |
|
} // end of method OptionalArguments::OnlyDifferenceIsLastArgument |
|
|
|
.method private hidebysig instance void |
|
OnlyDifferenceIsLastArgument(int32 a, |
|
int32 b, |
|
[opt] float64 d) cil managed |
|
{ |
|
.param [3] = float64(0xFFF0000000000000) // -1.#INF |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ret |
|
} // end of method OptionalArguments::OnlyDifferenceIsLastArgument |
|
|
|
.method private hidebysig instance void |
|
OnlyDifferenceIsLastArgumentCastNecessary(int32 a, |
|
string b, |
|
[opt] string c) cil managed |
|
{ |
|
.param [3] = nullref |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ret |
|
} // end of method OptionalArguments::OnlyDifferenceIsLastArgumentCastNecessary |
|
|
|
.method private hidebysig instance void |
|
OnlyDifferenceIsLastArgumentCastNecessary(int32 a, |
|
string b, |
|
[opt] class ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments args) cil managed |
|
{ |
|
.param [3] = nullref |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ret |
|
} // end of method OptionalArguments::OnlyDifferenceIsLastArgumentCastNecessary |
|
|
|
.method private hidebysig instance string |
|
Get([out] int32& a) cil managed |
|
{ |
|
// Code size 3 (0x3) |
|
.maxstack 8 |
|
IL_0000: nop |
|
IL_0001: ldnull |
|
IL_0002: throw |
|
} // end of method OptionalArguments::Get |
|
|
|
.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 OptionalArguments::.ctor |
|
|
|
} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.OptionalArguments |
|
|
|
.class private auto ansi sealed '<PrivateImplementationDetails>' |
|
extends [mscorlib]System.Object |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.class explicit ansi sealed nested private '__StaticArrayInitTypeSize=12' |
|
extends [mscorlib]System.ValueType |
|
{ |
|
.pack 1 |
|
.size 12 |
|
} // end of class '__StaticArrayInitTypeSize=12' |
|
|
|
.field static assembly initonly valuetype '<PrivateImplementationDetails>'/'__StaticArrayInitTypeSize=12' '0F3DD643C5167ACFC541F72809FFF828A6E41494' at I_00002A90 |
|
.field static assembly initonly valuetype '<PrivateImplementationDetails>'/'__StaticArrayInitTypeSize=12' E429CCA3F703A39CC5954A6572FEC9086135B34E at I_00002AA0 |
|
} // end of class '<PrivateImplementationDetails>' |
|
|
|
|
|
// ============================================================= |
|
|
|
.data cil I_00002A90 = bytearray ( |
|
0A 00 00 00 09 00 00 00 08 00 00 00) |
|
.data cil I_00002A9C = int8[4] |
|
.data cil I_00002AA0 = bytearray ( |
|
01 00 00 00 02 00 00 00 03 00 00 00) |
|
// *********** DISASSEMBLY COMPLETE ***********************
|
|
|