diff --git a/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs b/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs index db4c033..bce700f 100644 --- a/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs +++ b/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs @@ -10,31 +10,31 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000A68AC-0x000A6BA0 -[assembly: AssemblyCopyright] // 0x000A68AC-0x000A6BA0 -[assembly: AssemblyDefaultAlias] // 0x000A68AC-0x000A6BA0 -[assembly: AssemblyDelaySign] // 0x000A68AC-0x000A6BA0 -[assembly: AssemblyDescription] // 0x000A68AC-0x000A6BA0 -[assembly: AssemblyFileVersion] // 0x000A68AC-0x000A6BA0 -[assembly: AssemblyInformationalVersion] // 0x000A68AC-0x000A6BA0 -[assembly: AssemblyKeyFile] // 0x000A68AC-0x000A6BA0 -[assembly: AssemblyProduct] // 0x000A68AC-0x000A6BA0 -[assembly: AssemblyTitle] // 0x000A68AC-0x000A6BA0 -[assembly: CLSCompliant] // 0x000A68AC-0x000A6BA0 -[assembly: CompilationRelaxations] // 0x000A68AC-0x000A6BA0 -[assembly: ComVisible] // 0x000A68AC-0x000A6BA0 -[assembly: Debuggable] // 0x000A68AC-0x000A6BA0 -[assembly: DefaultDependency] // 0x000A68AC-0x000A6BA0 -[assembly: Guid] // 0x000A68AC-0x000A6BA0 -[assembly: NeutralResourcesLanguage] // 0x000A68AC-0x000A6BA0 +// [assembly: AssemblyCompany] // 0x000A68AC-0x000A6BA0 +// [assembly: AssemblyCopyright] // 0x000A68AC-0x000A6BA0 +// [assembly: AssemblyDefaultAlias] // 0x000A68AC-0x000A6BA0 +// [assembly: AssemblyDelaySign] // 0x000A68AC-0x000A6BA0 +// [assembly: AssemblyDescription] // 0x000A68AC-0x000A6BA0 +// [assembly: AssemblyFileVersion] // 0x000A68AC-0x000A6BA0 +// [assembly: AssemblyInformationalVersion] // 0x000A68AC-0x000A6BA0 +// [assembly: AssemblyKeyFile] // 0x000A68AC-0x000A6BA0 +// [assembly: AssemblyProduct] // 0x000A68AC-0x000A6BA0 +// [assembly: AssemblyTitle] // 0x000A68AC-0x000A6BA0 +// [assembly: CLSCompliant] // 0x000A68AC-0x000A6BA0 +// [assembly: CompilationRelaxations] // 0x000A68AC-0x000A6BA0 +// [assembly: ComVisible] // 0x000A68AC-0x000A6BA0 +// [assembly: Debuggable] // 0x000A68AC-0x000A6BA0 +// [assembly: DefaultDependency] // 0x000A68AC-0x000A6BA0 +// [assembly: Guid] // 0x000A68AC-0x000A6BA0 +// [assembly: NeutralResourcesLanguage] // 0x000A68AC-0x000A6BA0 [assembly: RuntimeCompatibility] // 0x000A68AC-0x000A6BA0 -[assembly: SatelliteContractVersion] // 0x000A68AC-0x000A6BA0 +// [assembly: SatelliteContractVersion] // 0x000A68AC-0x000A6BA0 [assembly: StringFreezing] // 0x000A68AC-0x000A6BA0 -[assembly: TypeLibVersion] // 0x000A68AC-0x000A6BA0 +// [assembly: TypeLibVersion] // 0x000A68AC-0x000A6BA0 // Image 1: ArraysAndPointers.dll - 1810-1817 -[assembly: CompilationRelaxations] // 0x000A6D34-0x000A6D34 -[assembly: Debuggable] // 0x000A6D34-0x000A6D34 +// [assembly: CompilationRelaxations] // 0x000A6D34-0x000A6D34 +// [assembly: Debuggable] // 0x000A6D34-0x000A6D34 [assembly: RuntimeCompatibility] // 0x000A6D34-0x000A6D34 internal static class Consts // TypeDefIndex: 100 @@ -77,8 +77,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x003EE218-0x003EE220 // Methods - public static string GetText(string msg) {} // 0x003EE220-0x003EE224 - public static string GetText(string fmt, params /* 0x000A50D8-0x000A50E8 */ object[] args) {} // 0x003EE224-0x003EE2B0 + public static string GetText(string msg) => default; // 0x003EE220-0x003EE224 + public static string GetText(string fmt, params /* 0x000A50D8-0x000A50E8 */ object[] args) => default; // 0x003EE224-0x003EE2B0 } namespace Il2CppTests.TestSources @@ -117,7 +117,7 @@ namespace Il2CppTests.TestSources public NestedUnsafe() {} // Methods - private unsafe T* UnsafeGenericReturn() {} + private unsafe T* UnsafeGenericReturn() => default; private unsafe void UnsafeGenericMethod(T* pt) {} } @@ -125,10 +125,10 @@ namespace Il2CppTests.TestSources public unsafe Test(int* u) {} // 0x00562E78-0x00562EEC // Methods - public int[] FooMethod(int[][] bar) {} // 0x00562DA0-0x00562E00 - public int[,] BarMethod(int[,,] baz) {} // 0x00562E00-0x00562E78 + public int[] FooMethod(int[][] bar) => default; // 0x00562DA0-0x00562E00 + public int[,] BarMethod(int[,,] baz) => default; // 0x00562E00-0x00562E78 public unsafe void UnsafeMethod(int* unsafePointerArgument) {} // 0x00562EFC-0x00562F00 - public unsafe int* UnsafeReturnMethod() {} // 0x00562F00-0x00562F08 - public unsafe int* UnsafeMethod2(int* i) {} // 0x00562F08-0x00562F10 + public unsafe int* UnsafeReturnMethod() => default; // 0x00562F00-0x00562F08 + public unsafe int* UnsafeMethod2(int* i) => default; // 0x00562F08-0x00562F10 } } diff --git a/Il2CppTests/TestExpectedResults/CustomAttributeData.cs b/Il2CppTests/TestExpectedResults/CustomAttributeData.cs index d289727..1a9946e 100644 --- a/Il2CppTests/TestExpectedResults/CustomAttributeData.cs +++ b/Il2CppTests/TestExpectedResults/CustomAttributeData.cs @@ -11,31 +11,31 @@ using System.Runtime.InteropServices; using Il2CppTests.TestSources; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000A4D7C-0x000A5070 -[assembly: AssemblyCopyright] // 0x000A4D7C-0x000A5070 -[assembly: AssemblyDefaultAlias] // 0x000A4D7C-0x000A5070 -[assembly: AssemblyDelaySign] // 0x000A4D7C-0x000A5070 -[assembly: AssemblyDescription] // 0x000A4D7C-0x000A5070 -[assembly: AssemblyFileVersion] // 0x000A4D7C-0x000A5070 -[assembly: AssemblyInformationalVersion] // 0x000A4D7C-0x000A5070 -[assembly: AssemblyKeyFile] // 0x000A4D7C-0x000A5070 -[assembly: AssemblyProduct] // 0x000A4D7C-0x000A5070 -[assembly: AssemblyTitle] // 0x000A4D7C-0x000A5070 -[assembly: CLSCompliant] // 0x000A4D7C-0x000A5070 -[assembly: CompilationRelaxations] // 0x000A4D7C-0x000A5070 -[assembly: ComVisible] // 0x000A4D7C-0x000A5070 -[assembly: Debuggable] // 0x000A4D7C-0x000A5070 -[assembly: DefaultDependency] // 0x000A4D7C-0x000A5070 -[assembly: Guid] // 0x000A4D7C-0x000A5070 -[assembly: NeutralResourcesLanguage] // 0x000A4D7C-0x000A5070 +// [assembly: AssemblyCompany] // 0x000A4D7C-0x000A5070 +// [assembly: AssemblyCopyright] // 0x000A4D7C-0x000A5070 +// [assembly: AssemblyDefaultAlias] // 0x000A4D7C-0x000A5070 +// [assembly: AssemblyDelaySign] // 0x000A4D7C-0x000A5070 +// [assembly: AssemblyDescription] // 0x000A4D7C-0x000A5070 +// [assembly: AssemblyFileVersion] // 0x000A4D7C-0x000A5070 +// [assembly: AssemblyInformationalVersion] // 0x000A4D7C-0x000A5070 +// [assembly: AssemblyKeyFile] // 0x000A4D7C-0x000A5070 +// [assembly: AssemblyProduct] // 0x000A4D7C-0x000A5070 +// [assembly: AssemblyTitle] // 0x000A4D7C-0x000A5070 +// [assembly: CLSCompliant] // 0x000A4D7C-0x000A5070 +// [assembly: CompilationRelaxations] // 0x000A4D7C-0x000A5070 +// [assembly: ComVisible] // 0x000A4D7C-0x000A5070 +// [assembly: Debuggable] // 0x000A4D7C-0x000A5070 +// [assembly: DefaultDependency] // 0x000A4D7C-0x000A5070 +// [assembly: Guid] // 0x000A4D7C-0x000A5070 +// [assembly: NeutralResourcesLanguage] // 0x000A4D7C-0x000A5070 [assembly: RuntimeCompatibility] // 0x000A4D7C-0x000A5070 -[assembly: SatelliteContractVersion] // 0x000A4D7C-0x000A5070 +// [assembly: SatelliteContractVersion] // 0x000A4D7C-0x000A5070 [assembly: StringFreezing] // 0x000A4D7C-0x000A5070 -[assembly: TypeLibVersion] // 0x000A4D7C-0x000A5070 +// [assembly: TypeLibVersion] // 0x000A4D7C-0x000A5070 // Image 1: CustomAttributeData.dll - 1810-1813 -[assembly: CompilationRelaxations] // 0x000A526C-0x000A526C -[assembly: Debuggable] // 0x000A526C-0x000A526C +// [assembly: CompilationRelaxations] // 0x000A526C-0x000A526C +// [assembly: Debuggable] // 0x000A526C-0x000A526C [assembly: Example] // 0x000A526C-0x000A526C [assembly: RuntimeCompatibility] // 0x000A526C-0x000A526C @@ -79,8 +79,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x003EC700-0x003EC708 // Methods - public static string GetText(string msg) {} // 0x003EC708-0x003EC70C - public static string GetText(string fmt, params /* 0x000A35A8-0x000A35B8 */ object[] args) {} // 0x003EC70C-0x003EC798 + public static string GetText(string msg) => default; // 0x003EC708-0x003EC70C + public static string GetText(string fmt, params /* 0x000A35A8-0x000A35B8 */ object[] args) => default; // 0x003EC70C-0x003EC798 } namespace Il2CppTests.TestSources @@ -93,7 +93,7 @@ namespace Il2CppTests.TestSources FourthKind = 3 } - [AttributeUsage] // 0x000A5070-0x000A5084 + // [AttributeUsage] // 0x000A5070-0x000A5084 public class ExampleAttribute : Attribute // TypeDefIndex: 1812 { // Fields diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs index cf8ade4..7dbe1d6 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs @@ -10,31 +10,31 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000000018000E0A0-0x000000018000A910 -[assembly: AssemblyCopyright] // 0x000000018000E0A0-0x000000018000A910 -[assembly: AssemblyDefaultAlias] // 0x000000018000E0A0-0x000000018000A910 -[assembly: AssemblyDelaySign] // 0x000000018000E0A0-0x000000018000A910 -[assembly: AssemblyDescription] // 0x000000018000E0A0-0x000000018000A910 -[assembly: AssemblyFileVersion] // 0x000000018000E0A0-0x000000018000A910 -[assembly: AssemblyInformationalVersion] // 0x000000018000E0A0-0x000000018000A910 -[assembly: AssemblyKeyFile] // 0x000000018000E0A0-0x000000018000A910 -[assembly: AssemblyProduct] // 0x000000018000E0A0-0x000000018000A910 -[assembly: AssemblyTitle] // 0x000000018000E0A0-0x000000018000A910 -[assembly: CLSCompliant] // 0x000000018000E0A0-0x000000018000A910 -[assembly: CompilationRelaxations] // 0x000000018000E0A0-0x000000018000A910 -[assembly: ComVisible] // 0x000000018000E0A0-0x000000018000A910 -[assembly: Debuggable] // 0x000000018000E0A0-0x000000018000A910 -[assembly: DefaultDependency] // 0x000000018000E0A0-0x000000018000A910 -[assembly: Guid] // 0x000000018000E0A0-0x000000018000A910 -[assembly: NeutralResourcesLanguage] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: AssemblyCompany] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: AssemblyCopyright] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: AssemblyDefaultAlias] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: AssemblyDelaySign] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: AssemblyDescription] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: AssemblyFileVersion] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: AssemblyInformationalVersion] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: AssemblyKeyFile] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: AssemblyProduct] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: AssemblyTitle] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: CLSCompliant] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: CompilationRelaxations] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: ComVisible] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: Debuggable] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: DefaultDependency] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: Guid] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: NeutralResourcesLanguage] // 0x000000018000E0A0-0x000000018000A910 [assembly: RuntimeCompatibility] // 0x000000018000E0A0-0x000000018000A910 -[assembly: SatelliteContractVersion] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: SatelliteContractVersion] // 0x000000018000E0A0-0x000000018000A910 [assembly: StringFreezing] // 0x000000018000E0A0-0x000000018000A910 -[assembly: TypeLibVersion] // 0x000000018000E0A0-0x000000018000A910 +// [assembly: TypeLibVersion] // 0x000000018000E0A0-0x000000018000A910 // Image 1: ArraysAndPointers.dll - 1810-1817 -[assembly: CompilationRelaxations] // 0x000000018000C1C0-0x000000018000C1C0 -[assembly: Debuggable] // 0x000000018000C1C0-0x000000018000C1C0 +// [assembly: CompilationRelaxations] // 0x000000018000C1C0-0x000000018000C1C0 +// [assembly: Debuggable] // 0x000000018000C1C0-0x000000018000C1C0 [assembly: RuntimeCompatibility] // 0x000000018000C1C0-0x000000018000C1C0 internal static class Consts // TypeDefIndex: 100 @@ -77,8 +77,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x00000001800E2000-0x00000001800E2000 // Methods - public static string GetText(string msg) {} // 0x0000000180123590-0x0000000180123590 - public static string GetText(string fmt, params /* 0x00000001800090A0-0x00000001800090A0 */ object[] args) {} // 0x00000001802C64F0-0x00000001802C6560 + public static string GetText(string msg) => default; // 0x0000000180123590-0x0000000180123590 + public static string GetText(string fmt, params /* 0x00000001800090A0-0x00000001800090A0 */ object[] args) => default; // 0x00000001802C64F0-0x00000001802C6560 } namespace Il2CppTests.TestSources @@ -117,7 +117,7 @@ namespace Il2CppTests.TestSources public NestedUnsafe() {} // Methods - private unsafe T* UnsafeGenericReturn() {} + private unsafe T* UnsafeGenericReturn() => default; private unsafe void UnsafeGenericMethod(T* pt) {} } @@ -125,10 +125,10 @@ namespace Il2CppTests.TestSources public unsafe Test(int* u) {} // 0x00000001803E1130-0x00000001803E1130 // Methods - public int[] FooMethod(int[][] bar) {} // 0x00000001803E10F0-0x00000001803E1130 - public int[,] BarMethod(int[,,] baz) {} // 0x00000001803E10A0-0x00000001803E10F0 + public int[] FooMethod(int[][] bar) => default; // 0x00000001803E10F0-0x00000001803E1130 + public int[,] BarMethod(int[,,] baz) => default; // 0x00000001803E10A0-0x00000001803E10F0 public unsafe void UnsafeMethod(int* unsafePointerArgument) {} // 0x00000001800EA7B0-0x00000001800EA7B0 - public unsafe int* UnsafeReturnMethod() {} // 0x00000001800EA8C0-0x00000001800EA8C0 - public unsafe int* UnsafeMethod2(int* i) {} // 0x000000018012FC60-0x000000018012FC60 + public unsafe int* UnsafeReturnMethod() => default; // 0x00000001800EA8C0-0x00000001800EA8C0 + public unsafe int* UnsafeMethod2(int* i) => default; // 0x000000018012FC60-0x000000018012FC60 } } diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs index f1cb5ef..21476c7 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs @@ -10,31 +10,31 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x1000EDA0-0x1000BD20 -[assembly: AssemblyCopyright] // 0x1000EDA0-0x1000BD20 -[assembly: AssemblyDefaultAlias] // 0x1000EDA0-0x1000BD20 -[assembly: AssemblyDelaySign] // 0x1000EDA0-0x1000BD20 -[assembly: AssemblyDescription] // 0x1000EDA0-0x1000BD20 -[assembly: AssemblyFileVersion] // 0x1000EDA0-0x1000BD20 -[assembly: AssemblyInformationalVersion] // 0x1000EDA0-0x1000BD20 -[assembly: AssemblyKeyFile] // 0x1000EDA0-0x1000BD20 -[assembly: AssemblyProduct] // 0x1000EDA0-0x1000BD20 -[assembly: AssemblyTitle] // 0x1000EDA0-0x1000BD20 -[assembly: CLSCompliant] // 0x1000EDA0-0x1000BD20 -[assembly: CompilationRelaxations] // 0x1000EDA0-0x1000BD20 -[assembly: ComVisible] // 0x1000EDA0-0x1000BD20 -[assembly: Debuggable] // 0x1000EDA0-0x1000BD20 -[assembly: DefaultDependency] // 0x1000EDA0-0x1000BD20 -[assembly: Guid] // 0x1000EDA0-0x1000BD20 -[assembly: NeutralResourcesLanguage] // 0x1000EDA0-0x1000BD20 +// [assembly: AssemblyCompany] // 0x1000EDA0-0x1000BD20 +// [assembly: AssemblyCopyright] // 0x1000EDA0-0x1000BD20 +// [assembly: AssemblyDefaultAlias] // 0x1000EDA0-0x1000BD20 +// [assembly: AssemblyDelaySign] // 0x1000EDA0-0x1000BD20 +// [assembly: AssemblyDescription] // 0x1000EDA0-0x1000BD20 +// [assembly: AssemblyFileVersion] // 0x1000EDA0-0x1000BD20 +// [assembly: AssemblyInformationalVersion] // 0x1000EDA0-0x1000BD20 +// [assembly: AssemblyKeyFile] // 0x1000EDA0-0x1000BD20 +// [assembly: AssemblyProduct] // 0x1000EDA0-0x1000BD20 +// [assembly: AssemblyTitle] // 0x1000EDA0-0x1000BD20 +// [assembly: CLSCompliant] // 0x1000EDA0-0x1000BD20 +// [assembly: CompilationRelaxations] // 0x1000EDA0-0x1000BD20 +// [assembly: ComVisible] // 0x1000EDA0-0x1000BD20 +// [assembly: Debuggable] // 0x1000EDA0-0x1000BD20 +// [assembly: DefaultDependency] // 0x1000EDA0-0x1000BD20 +// [assembly: Guid] // 0x1000EDA0-0x1000BD20 +// [assembly: NeutralResourcesLanguage] // 0x1000EDA0-0x1000BD20 [assembly: RuntimeCompatibility] // 0x1000EDA0-0x1000BD20 -[assembly: SatelliteContractVersion] // 0x1000EDA0-0x1000BD20 +// [assembly: SatelliteContractVersion] // 0x1000EDA0-0x1000BD20 [assembly: StringFreezing] // 0x1000EDA0-0x1000BD20 -[assembly: TypeLibVersion] // 0x1000EDA0-0x1000BD20 +// [assembly: TypeLibVersion] // 0x1000EDA0-0x1000BD20 // Image 1: ArraysAndPointers.dll - 1810-1817 -[assembly: CompilationRelaxations] // 0x1000D250-0x1000D250 -[assembly: Debuggable] // 0x1000D250-0x1000D250 +// [assembly: CompilationRelaxations] // 0x1000D250-0x1000D250 +// [assembly: Debuggable] // 0x1000D250-0x1000D250 [assembly: RuntimeCompatibility] // 0x1000D250-0x1000D250 internal static class Consts // TypeDefIndex: 100 @@ -77,8 +77,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x100BF000-0x100BF000 // Methods - public static string GetText(string msg) {} // 0x100F7810-0x100F7810 - public static string GetText(string fmt, params /* 0x10009AA0-0x10009AA0 */ object[] args) {} // 0x10261460-0x102614B0 + public static string GetText(string msg) => default; // 0x100F7810-0x100F7810 + public static string GetText(string fmt, params /* 0x10009AA0-0x10009AA0 */ object[] args) => default; // 0x10261460-0x102614B0 } namespace Il2CppTests.TestSources @@ -117,7 +117,7 @@ namespace Il2CppTests.TestSources public NestedUnsafe() {} // Methods - private unsafe T* UnsafeGenericReturn() {} + private unsafe T* UnsafeGenericReturn() => default; private unsafe void UnsafeGenericMethod(T* pt) {} } @@ -125,10 +125,10 @@ namespace Il2CppTests.TestSources public unsafe Test(int* u) {} // 0x1034DD10-0x1034DD10 // Methods - public int[] FooMethod(int[][] bar) {} // 0x1034DCE0-0x1034DD10 - public int[,] BarMethod(int[,,] baz) {} // 0x1034DC90-0x1034DCE0 + public int[] FooMethod(int[][] bar) => default; // 0x1034DCE0-0x1034DD10 + public int[,] BarMethod(int[,,] baz) => default; // 0x1034DC90-0x1034DCE0 public unsafe void UnsafeMethod(int* unsafePointerArgument) {} // 0x100C5530-0x100C5530 - public unsafe int* UnsafeReturnMethod() {} // 0x100C5600-0x100C5600 - public unsafe int* UnsafeMethod2(int* i) {} // 0x10102390-0x10102390 + public unsafe int* UnsafeReturnMethod() => default; // 0x100C5600-0x100C5600 + public unsafe int* UnsafeMethod2(int* i) => default; // 0x10102390-0x10102390 } } diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x64.cs index c305e42..26ea3b2 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x64.cs @@ -11,31 +11,31 @@ using System.Runtime.InteropServices; using Il2CppTests.TestSources; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: AssemblyCopyright] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: AssemblyDefaultAlias] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: AssemblyDelaySign] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: AssemblyDescription] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: AssemblyFileVersion] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: AssemblyInformationalVersion] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: AssemblyKeyFile] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: AssemblyProduct] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: AssemblyTitle] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: CLSCompliant] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: CompilationRelaxations] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: ComVisible] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: Debuggable] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: DefaultDependency] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: Guid] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: NeutralResourcesLanguage] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: AssemblyCompany] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: AssemblyCopyright] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: AssemblyDefaultAlias] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: AssemblyDelaySign] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: AssemblyDescription] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: AssemblyFileVersion] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: AssemblyInformationalVersion] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: AssemblyKeyFile] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: AssemblyProduct] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: AssemblyTitle] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: CLSCompliant] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: CompilationRelaxations] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: ComVisible] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: Debuggable] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: DefaultDependency] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: Guid] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: NeutralResourcesLanguage] // 0x000000018000E4A0-0x000000018000C5B0 [assembly: RuntimeCompatibility] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: SatelliteContractVersion] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: SatelliteContractVersion] // 0x000000018000E4A0-0x000000018000C5B0 [assembly: StringFreezing] // 0x000000018000E4A0-0x000000018000C5B0 -[assembly: TypeLibVersion] // 0x000000018000E4A0-0x000000018000C5B0 +// [assembly: TypeLibVersion] // 0x000000018000E4A0-0x000000018000C5B0 // Image 1: CustomAttributeData.dll - 1810-1813 -[assembly: CompilationRelaxations] // 0x000000018000C4B0-0x000000018000C4B0 -[assembly: Debuggable] // 0x000000018000C4B0-0x000000018000C4B0 +// [assembly: CompilationRelaxations] // 0x000000018000C4B0-0x000000018000C4B0 +// [assembly: Debuggable] // 0x000000018000C4B0-0x000000018000C4B0 [assembly: Example] // 0x000000018000C4B0-0x000000018000C4B0 [assembly: RuntimeCompatibility] // 0x000000018000C4B0-0x000000018000C4B0 @@ -79,8 +79,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x00000001800E2000-0x00000001800E2000 // Methods - public static string GetText(string msg) {} // 0x0000000180123590-0x0000000180123590 - public static string GetText(string fmt, params /* 0x0000000180009150-0x0000000180009150 */ object[] args) {} // 0x00000001802C64F0-0x00000001802C6560 + public static string GetText(string msg) => default; // 0x0000000180123590-0x0000000180123590 + public static string GetText(string fmt, params /* 0x0000000180009150-0x0000000180009150 */ object[] args) => default; // 0x00000001802C64F0-0x00000001802C6560 } namespace Il2CppTests.TestSources @@ -93,7 +93,7 @@ namespace Il2CppTests.TestSources FourthKind = 3 } - [AttributeUsage] // 0x000000018000C5B0-0x000000018000C5D0 + // [AttributeUsage] // 0x000000018000C5B0-0x000000018000C5D0 public class ExampleAttribute : Attribute // TypeDefIndex: 1812 { // Fields diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x86.cs index e0abfa5..da2bf9e 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x86.cs @@ -11,31 +11,31 @@ using System.Runtime.InteropServices; using Il2CppTests.TestSources; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x1000EFA0-0x1000D430 -[assembly: AssemblyCopyright] // 0x1000EFA0-0x1000D430 -[assembly: AssemblyDefaultAlias] // 0x1000EFA0-0x1000D430 -[assembly: AssemblyDelaySign] // 0x1000EFA0-0x1000D430 -[assembly: AssemblyDescription] // 0x1000EFA0-0x1000D430 -[assembly: AssemblyFileVersion] // 0x1000EFA0-0x1000D430 -[assembly: AssemblyInformationalVersion] // 0x1000EFA0-0x1000D430 -[assembly: AssemblyKeyFile] // 0x1000EFA0-0x1000D430 -[assembly: AssemblyProduct] // 0x1000EFA0-0x1000D430 -[assembly: AssemblyTitle] // 0x1000EFA0-0x1000D430 -[assembly: CLSCompliant] // 0x1000EFA0-0x1000D430 -[assembly: CompilationRelaxations] // 0x1000EFA0-0x1000D430 -[assembly: ComVisible] // 0x1000EFA0-0x1000D430 -[assembly: Debuggable] // 0x1000EFA0-0x1000D430 -[assembly: DefaultDependency] // 0x1000EFA0-0x1000D430 -[assembly: Guid] // 0x1000EFA0-0x1000D430 -[assembly: NeutralResourcesLanguage] // 0x1000EFA0-0x1000D430 +// [assembly: AssemblyCompany] // 0x1000EFA0-0x1000D430 +// [assembly: AssemblyCopyright] // 0x1000EFA0-0x1000D430 +// [assembly: AssemblyDefaultAlias] // 0x1000EFA0-0x1000D430 +// [assembly: AssemblyDelaySign] // 0x1000EFA0-0x1000D430 +// [assembly: AssemblyDescription] // 0x1000EFA0-0x1000D430 +// [assembly: AssemblyFileVersion] // 0x1000EFA0-0x1000D430 +// [assembly: AssemblyInformationalVersion] // 0x1000EFA0-0x1000D430 +// [assembly: AssemblyKeyFile] // 0x1000EFA0-0x1000D430 +// [assembly: AssemblyProduct] // 0x1000EFA0-0x1000D430 +// [assembly: AssemblyTitle] // 0x1000EFA0-0x1000D430 +// [assembly: CLSCompliant] // 0x1000EFA0-0x1000D430 +// [assembly: CompilationRelaxations] // 0x1000EFA0-0x1000D430 +// [assembly: ComVisible] // 0x1000EFA0-0x1000D430 +// [assembly: Debuggable] // 0x1000EFA0-0x1000D430 +// [assembly: DefaultDependency] // 0x1000EFA0-0x1000D430 +// [assembly: Guid] // 0x1000EFA0-0x1000D430 +// [assembly: NeutralResourcesLanguage] // 0x1000EFA0-0x1000D430 [assembly: RuntimeCompatibility] // 0x1000EFA0-0x1000D430 -[assembly: SatelliteContractVersion] // 0x1000EFA0-0x1000D430 +// [assembly: SatelliteContractVersion] // 0x1000EFA0-0x1000D430 [assembly: StringFreezing] // 0x1000EFA0-0x1000D430 -[assembly: TypeLibVersion] // 0x1000EFA0-0x1000D430 +// [assembly: TypeLibVersion] // 0x1000EFA0-0x1000D430 // Image 1: CustomAttributeData.dll - 1810-1813 -[assembly: CompilationRelaxations] // 0x1000D360-0x1000D360 -[assembly: Debuggable] // 0x1000D360-0x1000D360 +// [assembly: CompilationRelaxations] // 0x1000D360-0x1000D360 +// [assembly: Debuggable] // 0x1000D360-0x1000D360 [assembly: Example] // 0x1000D360-0x1000D360 [assembly: RuntimeCompatibility] // 0x1000D360-0x1000D360 @@ -79,8 +79,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x100BF000-0x100BF000 // Methods - public static string GetText(string msg) {} // 0x100F7810-0x100F7810 - public static string GetText(string fmt, params /* 0x10009B80-0x10009B80 */ object[] args) {} // 0x10261460-0x102614B0 + public static string GetText(string msg) => default; // 0x100F7810-0x100F7810 + public static string GetText(string fmt, params /* 0x10009B80-0x10009B80 */ object[] args) => default; // 0x10261460-0x102614B0 } namespace Il2CppTests.TestSources @@ -93,7 +93,7 @@ namespace Il2CppTests.TestSources FourthKind = 3 } - [AttributeUsage] // 0x1000D430-0x1000D450 + // [AttributeUsage] // 0x1000D430-0x1000D450 public class ExampleAttribute : Attribute // TypeDefIndex: 1812 { // Fields diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x64.cs index 1afc914..0eb6519 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x64.cs @@ -11,65 +11,65 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000000018000E050-0x000000018000A8A0 -[assembly: AssemblyCopyright] // 0x000000018000E050-0x000000018000A8A0 -[assembly: AssemblyDefaultAlias] // 0x000000018000E050-0x000000018000A8A0 -[assembly: AssemblyDelaySign] // 0x000000018000E050-0x000000018000A8A0 -[assembly: AssemblyDescription] // 0x000000018000E050-0x000000018000A8A0 -[assembly: AssemblyFileVersion] // 0x000000018000E050-0x000000018000A8A0 -[assembly: AssemblyInformationalVersion] // 0x000000018000E050-0x000000018000A8A0 -[assembly: AssemblyKeyFile] // 0x000000018000E050-0x000000018000A8A0 -[assembly: AssemblyProduct] // 0x000000018000E050-0x000000018000A8A0 -[assembly: AssemblyTitle] // 0x000000018000E050-0x000000018000A8A0 -[assembly: CLSCompliant] // 0x000000018000E050-0x000000018000A8A0 -[assembly: CompilationRelaxations] // 0x000000018000E050-0x000000018000A8A0 -[assembly: ComVisible] // 0x000000018000E050-0x000000018000A8A0 -[assembly: Debuggable] // 0x000000018000E050-0x000000018000A8A0 -[assembly: DefaultDependency] // 0x000000018000E050-0x000000018000A8A0 -[assembly: Guid] // 0x000000018000E050-0x000000018000A8A0 -[assembly: NeutralResourcesLanguage] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: AssemblyCompany] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: AssemblyCopyright] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: AssemblyDefaultAlias] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: AssemblyDelaySign] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: AssemblyDescription] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: AssemblyFileVersion] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: AssemblyInformationalVersion] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: AssemblyKeyFile] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: AssemblyProduct] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: AssemblyTitle] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: CLSCompliant] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: CompilationRelaxations] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: ComVisible] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: Debuggable] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: DefaultDependency] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: Guid] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: NeutralResourcesLanguage] // 0x000000018000E050-0x000000018000A8A0 [assembly: RuntimeCompatibility] // 0x000000018000E050-0x000000018000A8A0 -[assembly: SatelliteContractVersion] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: SatelliteContractVersion] // 0x000000018000E050-0x000000018000A8A0 [assembly: StringFreezing] // 0x000000018000E050-0x000000018000A8A0 -[assembly: TypeLibVersion] // 0x000000018000E050-0x000000018000A8A0 +// [assembly: TypeLibVersion] // 0x000000018000E050-0x000000018000A8A0 -// Image 1: GenericTypes.dll - 1810-1821 -[assembly: CompilationRelaxations] // 0x000000018000C150-0x000000018000C150 -[assembly: Debuggable] // 0x000000018000C150-0x000000018000C150 +// Image 1: GenericTypes.dll - 1810-1827 +// [assembly: CompilationRelaxations] // 0x000000018000C150-0x000000018000C150 +// [assembly: Debuggable] // 0x000000018000C150-0x000000018000C150 [assembly: RuntimeCompatibility] // 0x000000018000C150-0x000000018000C150 internal static class Consts // TypeDefIndex: 100 { // Fields - public const string MonoVersion = "2.6.5.0"; // Metadata: 0x000ECCEC - public const string MonoCompany = "MONO development team"; // Metadata: 0x000ECCF7 - public const string MonoProduct = "MONO Common language infrastructure"; // Metadata: 0x000ECD10 - public const string MonoCopyright = "(c) various MONO Authors"; // Metadata: 0x000ECD37 - public const string FxVersion = "2.0.0.0"; // Metadata: 0x000ECD53 - public const string VsVersion = "8.0.0.0"; // Metadata: 0x000ECD5E - public const string FxFileVersion = "2.0.50727.1433"; // Metadata: 0x000ECD69 - public const string VsFileVersion = "8.0.50727.1433"; // Metadata: 0x000ECD7B - public const string AssemblyI18N = "I18N, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECD8D - public const string AssemblyMicrosoft_VisualStudio = "Microsoft.VisualStudio, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECDD8 - public const string AssemblyMicrosoft_VisualStudio_Web = "Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECE35 - public const string AssemblyMicrosoft_VSDesigner = "Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECE96 - public const string AssemblyMono_Http = "Mono.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECEF1 - public const string AssemblyMono_Posix = "Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECF41 - public const string AssemblyMono_Security = "Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECF92 - public const string AssemblyMono_Messaging_RabbitMQ = "Mono.Messaging.RabbitMQ, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECFE6 - public const string AssemblyCorlib = "mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED044 - public const string AssemblySystem = "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED093 - public const string AssemblySystem_Data = "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED0E0 - public const string AssemblySystem_Design = "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED132 - public const string AssemblySystem_DirectoryServices = "System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED186 - public const string AssemblySystem_Drawing = "System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED1E5 - public const string AssemblySystem_Drawing_Design = "System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED23A - public const string AssemblySystem_Messaging = "System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED296 - public const string AssemblySystem_Security = "System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED2ED - public const string AssemblySystem_ServiceProcess = "System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED343 - public const string AssemblySystem_Web = "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED39F - public const string AssemblySystem_Windows_Forms = "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED3F0 - public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED44B + public const string MonoVersion = "2.6.5.0"; // Metadata: 0x000ECED8 + public const string MonoCompany = "MONO development team"; // Metadata: 0x000ECEE3 + public const string MonoProduct = "MONO Common language infrastructure"; // Metadata: 0x000ECEFC + public const string MonoCopyright = "(c) various MONO Authors"; // Metadata: 0x000ECF23 + public const string FxVersion = "2.0.0.0"; // Metadata: 0x000ECF3F + public const string VsVersion = "8.0.0.0"; // Metadata: 0x000ECF4A + public const string FxFileVersion = "2.0.50727.1433"; // Metadata: 0x000ECF55 + public const string VsFileVersion = "8.0.50727.1433"; // Metadata: 0x000ECF67 + public const string AssemblyI18N = "I18N, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECF79 + public const string AssemblyMicrosoft_VisualStudio = "Microsoft.VisualStudio, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECFC4 + public const string AssemblyMicrosoft_VisualStudio_Web = "Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED021 + public const string AssemblyMicrosoft_VSDesigner = "Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED082 + public const string AssemblyMono_Http = "Mono.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED0DD + public const string AssemblyMono_Posix = "Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED12D + public const string AssemblyMono_Security = "Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED17E + public const string AssemblyMono_Messaging_RabbitMQ = "Mono.Messaging.RabbitMQ, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED1D2 + public const string AssemblyCorlib = "mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED230 + public const string AssemblySystem = "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED27F + public const string AssemblySystem_Data = "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED2CC + public const string AssemblySystem_Design = "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED31E + public const string AssemblySystem_DirectoryServices = "System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED372 + public const string AssemblySystem_Drawing = "System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED3D1 + public const string AssemblySystem_Drawing_Design = "System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED426 + public const string AssemblySystem_Messaging = "System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED482 + public const string AssemblySystem_Security = "System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED4D9 + public const string AssemblySystem_ServiceProcess = "System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED52F + public const string AssemblySystem_Web = "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED58B + public const string AssemblySystem_Windows_Forms = "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED5DC + public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED637 } internal sealed class Locale // TypeDefIndex: 101 @@ -78,8 +78,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x00000001800E2000-0x00000001800E2000 // Methods - public static string GetText(string msg) {} // 0x0000000180123590-0x0000000180123590 - public static string GetText(string fmt, params /* 0x00000001800090D0-0x00000001800090D0 */ object[] args) {} // 0x00000001802C64F0-0x00000001802C6560 + public static string GetText(string msg) => default; // 0x0000000180123590-0x0000000180123590 + public static string GetText(string fmt, params /* 0x00000001800090D0-0x00000001800090D0 */ object[] args) => default; // 0x00000001802C6900-0x00000001802C6970 } namespace Il2CppTests.TestSources @@ -118,7 +118,7 @@ namespace Il2CppTests.TestSources public Test() {} // 0x00000001800E2000-0x00000001800E2000 // Methods - public void GenericTypesTest() {} // 0x00000001803E0ED0-0x00000001803E0ED0 + public void GenericTypesTest() {} // 0x00000001803E11C0-0x00000001803E11C0 } internal class ConstrainedValueType // TypeDefIndex: 1820 @@ -131,11 +131,45 @@ namespace Il2CppTests.TestSources internal class ConstrainedRefType // TypeDefIndex: 1821 where R : class { + // Nested types + private class NestedWithAutomaticConstraints // TypeDefIndex: 1822 + { + // Constructors + public NestedWithAutomaticConstraints() {} + } + + private class NestedWithNewGenericParameter // TypeDefIndex: 1823 + { + // Constructors + public NestedWithNewGenericParameter() {} + } + + private class NestedWithNewGenericParameterAndConstraint // TypeDefIndex: 1824 + where T : new() + { + // Constructors + public NestedWithNewGenericParameterAndConstraint() {} + } + + private class NestedWithNewGenericParameterAndDependentConstraint // TypeDefIndex: 1825 + where T : G, new() + { + // Constructors + public NestedWithNewGenericParameterAndDependentConstraint() {} + } + + private enum NestedEnumWithAutomaticConstraints // TypeDefIndex: 1826 + { + + } + + private delegate void NestedDelegateWithAutomaticConstraints(); // TypeDefIndex: 1827; 0x00000000-0x00000000 + // Constructors public ConstrainedRefType() {} // Methods - [NullableContext] // 0x0000000180009190-0x000000018000C150 + // [NullableContext] // 0x0000000180009190-0x000000018000C150 public void ConstrainedMethodNotNull(N notnullArgument, R bar) {} public void ConstrainedUnmanaged(U unmanagedArgument) where U : struct {} diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x86.cs index c3d0a2b..f2ae667 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x86.cs @@ -11,65 +11,65 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x1000ED00-0x1000BC80 -[assembly: AssemblyCopyright] // 0x1000ED00-0x1000BC80 -[assembly: AssemblyDefaultAlias] // 0x1000ED00-0x1000BC80 -[assembly: AssemblyDelaySign] // 0x1000ED00-0x1000BC80 -[assembly: AssemblyDescription] // 0x1000ED00-0x1000BC80 -[assembly: AssemblyFileVersion] // 0x1000ED00-0x1000BC80 -[assembly: AssemblyInformationalVersion] // 0x1000ED00-0x1000BC80 -[assembly: AssemblyKeyFile] // 0x1000ED00-0x1000BC80 -[assembly: AssemblyProduct] // 0x1000ED00-0x1000BC80 -[assembly: AssemblyTitle] // 0x1000ED00-0x1000BC80 -[assembly: CLSCompliant] // 0x1000ED00-0x1000BC80 -[assembly: CompilationRelaxations] // 0x1000ED00-0x1000BC80 -[assembly: ComVisible] // 0x1000ED00-0x1000BC80 -[assembly: Debuggable] // 0x1000ED00-0x1000BC80 -[assembly: DefaultDependency] // 0x1000ED00-0x1000BC80 -[assembly: Guid] // 0x1000ED00-0x1000BC80 -[assembly: NeutralResourcesLanguage] // 0x1000ED00-0x1000BC80 +// [assembly: AssemblyCompany] // 0x1000ED00-0x1000BC80 +// [assembly: AssemblyCopyright] // 0x1000ED00-0x1000BC80 +// [assembly: AssemblyDefaultAlias] // 0x1000ED00-0x1000BC80 +// [assembly: AssemblyDelaySign] // 0x1000ED00-0x1000BC80 +// [assembly: AssemblyDescription] // 0x1000ED00-0x1000BC80 +// [assembly: AssemblyFileVersion] // 0x1000ED00-0x1000BC80 +// [assembly: AssemblyInformationalVersion] // 0x1000ED00-0x1000BC80 +// [assembly: AssemblyKeyFile] // 0x1000ED00-0x1000BC80 +// [assembly: AssemblyProduct] // 0x1000ED00-0x1000BC80 +// [assembly: AssemblyTitle] // 0x1000ED00-0x1000BC80 +// [assembly: CLSCompliant] // 0x1000ED00-0x1000BC80 +// [assembly: CompilationRelaxations] // 0x1000ED00-0x1000BC80 +// [assembly: ComVisible] // 0x1000ED00-0x1000BC80 +// [assembly: Debuggable] // 0x1000ED00-0x1000BC80 +// [assembly: DefaultDependency] // 0x1000ED00-0x1000BC80 +// [assembly: Guid] // 0x1000ED00-0x1000BC80 +// [assembly: NeutralResourcesLanguage] // 0x1000ED00-0x1000BC80 [assembly: RuntimeCompatibility] // 0x1000ED00-0x1000BC80 -[assembly: SatelliteContractVersion] // 0x1000ED00-0x1000BC80 +// [assembly: SatelliteContractVersion] // 0x1000ED00-0x1000BC80 [assembly: StringFreezing] // 0x1000ED00-0x1000BC80 -[assembly: TypeLibVersion] // 0x1000ED00-0x1000BC80 +// [assembly: TypeLibVersion] // 0x1000ED00-0x1000BC80 -// Image 1: GenericTypes.dll - 1810-1821 -[assembly: CompilationRelaxations] // 0x1000D1B0-0x1000D1B0 -[assembly: Debuggable] // 0x1000D1B0-0x1000D1B0 +// Image 1: GenericTypes.dll - 1810-1827 +// [assembly: CompilationRelaxations] // 0x1000D1B0-0x1000D1B0 +// [assembly: Debuggable] // 0x1000D1B0-0x1000D1B0 [assembly: RuntimeCompatibility] // 0x1000D1B0-0x1000D1B0 internal static class Consts // TypeDefIndex: 100 { // Fields - public const string MonoVersion = "2.6.5.0"; // Metadata: 0x000ECCEC - public const string MonoCompany = "MONO development team"; // Metadata: 0x000ECCF7 - public const string MonoProduct = "MONO Common language infrastructure"; // Metadata: 0x000ECD10 - public const string MonoCopyright = "(c) various MONO Authors"; // Metadata: 0x000ECD37 - public const string FxVersion = "2.0.0.0"; // Metadata: 0x000ECD53 - public const string VsVersion = "8.0.0.0"; // Metadata: 0x000ECD5E - public const string FxFileVersion = "2.0.50727.1433"; // Metadata: 0x000ECD69 - public const string VsFileVersion = "8.0.50727.1433"; // Metadata: 0x000ECD7B - public const string AssemblyI18N = "I18N, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECD8D - public const string AssemblyMicrosoft_VisualStudio = "Microsoft.VisualStudio, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECDD8 - public const string AssemblyMicrosoft_VisualStudio_Web = "Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECE35 - public const string AssemblyMicrosoft_VSDesigner = "Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECE96 - public const string AssemblyMono_Http = "Mono.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECEF1 - public const string AssemblyMono_Posix = "Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECF41 - public const string AssemblyMono_Security = "Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECF92 - public const string AssemblyMono_Messaging_RabbitMQ = "Mono.Messaging.RabbitMQ, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECFE6 - public const string AssemblyCorlib = "mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED044 - public const string AssemblySystem = "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED093 - public const string AssemblySystem_Data = "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED0E0 - public const string AssemblySystem_Design = "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED132 - public const string AssemblySystem_DirectoryServices = "System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED186 - public const string AssemblySystem_Drawing = "System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED1E5 - public const string AssemblySystem_Drawing_Design = "System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED23A - public const string AssemblySystem_Messaging = "System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED296 - public const string AssemblySystem_Security = "System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED2ED - public const string AssemblySystem_ServiceProcess = "System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED343 - public const string AssemblySystem_Web = "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED39F - public const string AssemblySystem_Windows_Forms = "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED3F0 - public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED44B + public const string MonoVersion = "2.6.5.0"; // Metadata: 0x000ECED8 + public const string MonoCompany = "MONO development team"; // Metadata: 0x000ECEE3 + public const string MonoProduct = "MONO Common language infrastructure"; // Metadata: 0x000ECEFC + public const string MonoCopyright = "(c) various MONO Authors"; // Metadata: 0x000ECF23 + public const string FxVersion = "2.0.0.0"; // Metadata: 0x000ECF3F + public const string VsVersion = "8.0.0.0"; // Metadata: 0x000ECF4A + public const string FxFileVersion = "2.0.50727.1433"; // Metadata: 0x000ECF55 + public const string VsFileVersion = "8.0.50727.1433"; // Metadata: 0x000ECF67 + public const string AssemblyI18N = "I18N, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECF79 + public const string AssemblyMicrosoft_VisualStudio = "Microsoft.VisualStudio, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECFC4 + public const string AssemblyMicrosoft_VisualStudio_Web = "Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED021 + public const string AssemblyMicrosoft_VSDesigner = "Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED082 + public const string AssemblyMono_Http = "Mono.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED0DD + public const string AssemblyMono_Posix = "Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED12D + public const string AssemblyMono_Security = "Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED17E + public const string AssemblyMono_Messaging_RabbitMQ = "Mono.Messaging.RabbitMQ, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED1D2 + public const string AssemblyCorlib = "mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED230 + public const string AssemblySystem = "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED27F + public const string AssemblySystem_Data = "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED2CC + public const string AssemblySystem_Design = "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED31E + public const string AssemblySystem_DirectoryServices = "System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED372 + public const string AssemblySystem_Drawing = "System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED3D1 + public const string AssemblySystem_Drawing_Design = "System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED426 + public const string AssemblySystem_Messaging = "System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED482 + public const string AssemblySystem_Security = "System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED4D9 + public const string AssemblySystem_ServiceProcess = "System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED52F + public const string AssemblySystem_Web = "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED58B + public const string AssemblySystem_Windows_Forms = "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED5DC + public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED637 } internal sealed class Locale // TypeDefIndex: 101 @@ -78,8 +78,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x100BF000-0x100BF000 // Methods - public static string GetText(string msg) {} // 0x100F7810-0x100F7810 - public static string GetText(string fmt, params /* 0x10009B20-0x10009B20 */ object[] args) {} // 0x10261460-0x102614B0 + public static string GetText(string msg) => default; // 0x100F7810-0x100F7810 + public static string GetText(string fmt, params /* 0x10009B20-0x10009B20 */ object[] args) => default; // 0x10261460-0x102614B0 } namespace Il2CppTests.TestSources @@ -118,7 +118,7 @@ namespace Il2CppTests.TestSources public Test() {} // 0x100BF000-0x100BF000 // Methods - public void GenericTypesTest() {} // 0x1034DB10-0x1034DB10 + public void GenericTypesTest() {} // 0x1034DA60-0x1034DA60 } internal class ConstrainedValueType // TypeDefIndex: 1820 @@ -131,11 +131,45 @@ namespace Il2CppTests.TestSources internal class ConstrainedRefType // TypeDefIndex: 1821 where R : class { + // Nested types + private class NestedWithAutomaticConstraints // TypeDefIndex: 1822 + { + // Constructors + public NestedWithAutomaticConstraints() {} + } + + private class NestedWithNewGenericParameter // TypeDefIndex: 1823 + { + // Constructors + public NestedWithNewGenericParameter() {} + } + + private class NestedWithNewGenericParameterAndConstraint // TypeDefIndex: 1824 + where T : new() + { + // Constructors + public NestedWithNewGenericParameterAndConstraint() {} + } + + private class NestedWithNewGenericParameterAndDependentConstraint // TypeDefIndex: 1825 + where T : G, new() + { + // Constructors + public NestedWithNewGenericParameterAndDependentConstraint() {} + } + + private enum NestedEnumWithAutomaticConstraints // TypeDefIndex: 1826 + { + + } + + private delegate void NestedDelegateWithAutomaticConstraints(); // TypeDefIndex: 1827; 0x00000000-0x00000000 + // Constructors public ConstrainedRefType() {} // Methods - [NullableContext] // 0x10009AA0-0x1000D1B0 + // [NullableContext] // 0x10009AA0-0x1000D1B0 public void ConstrainedMethodNotNull(N notnullArgument, R bar) {} public void ConstrainedUnmanaged(U unmanagedArgument) where U : struct {} diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x64.cs index bda60b8..f1c32cb 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x64.cs @@ -11,31 +11,31 @@ using System.Runtime.InteropServices; using System.Text; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000000018000E950-0x000000018000CAF0 -[assembly: AssemblyCopyright] // 0x000000018000E950-0x000000018000CAF0 -[assembly: AssemblyDefaultAlias] // 0x000000018000E950-0x000000018000CAF0 -[assembly: AssemblyDelaySign] // 0x000000018000E950-0x000000018000CAF0 -[assembly: AssemblyDescription] // 0x000000018000E950-0x000000018000CAF0 -[assembly: AssemblyFileVersion] // 0x000000018000E950-0x000000018000CAF0 -[assembly: AssemblyInformationalVersion] // 0x000000018000E950-0x000000018000CAF0 -[assembly: AssemblyKeyFile] // 0x000000018000E950-0x000000018000CAF0 -[assembly: AssemblyProduct] // 0x000000018000E950-0x000000018000CAF0 -[assembly: AssemblyTitle] // 0x000000018000E950-0x000000018000CAF0 -[assembly: CLSCompliant] // 0x000000018000E950-0x000000018000CAF0 -[assembly: CompilationRelaxations] // 0x000000018000E950-0x000000018000CAF0 -[assembly: ComVisible] // 0x000000018000E950-0x000000018000CAF0 -[assembly: Debuggable] // 0x000000018000E950-0x000000018000CAF0 -[assembly: DefaultDependency] // 0x000000018000E950-0x000000018000CAF0 -[assembly: Guid] // 0x000000018000E950-0x000000018000CAF0 -[assembly: NeutralResourcesLanguage] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: AssemblyCompany] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: AssemblyCopyright] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: AssemblyDefaultAlias] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: AssemblyDelaySign] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: AssemblyDescription] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: AssemblyFileVersion] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: AssemblyInformationalVersion] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: AssemblyKeyFile] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: AssemblyProduct] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: AssemblyTitle] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: CLSCompliant] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: CompilationRelaxations] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: ComVisible] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: Debuggable] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: DefaultDependency] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: Guid] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: NeutralResourcesLanguage] // 0x000000018000E950-0x000000018000CAF0 [assembly: RuntimeCompatibility] // 0x000000018000E950-0x000000018000CAF0 -[assembly: SatelliteContractVersion] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: SatelliteContractVersion] // 0x000000018000E950-0x000000018000CAF0 [assembly: StringFreezing] // 0x000000018000E950-0x000000018000CAF0 -[assembly: TypeLibVersion] // 0x000000018000E950-0x000000018000CAF0 +// [assembly: TypeLibVersion] // 0x000000018000E950-0x000000018000CAF0 // Image 1: Methods.dll - 1810-1822 -[assembly: CompilationRelaxations] // 0x000000018000CAF0-0x000000018000CAF0 -[assembly: Debuggable] // 0x000000018000CAF0-0x000000018000CAF0 +// [assembly: CompilationRelaxations] // 0x000000018000CAF0-0x000000018000CAF0 +// [assembly: Debuggable] // 0x000000018000CAF0-0x000000018000CAF0 [assembly: RuntimeCompatibility] // 0x000000018000CAF0-0x000000018000CAF0 internal static class Consts // TypeDefIndex: 100 @@ -78,8 +78,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x00000001800E2000-0x00000001800E2000 // Methods - public static string GetText(string msg) {} // 0x0000000180123590-0x0000000180123590 - public static string GetText(string fmt, params /* 0x0000000180009C10-0x0000000180009C10 */ object[] args) {} // 0x00000001802C64F0-0x00000001802C6560 + public static string GetText(string msg) => default; // 0x0000000180123590-0x0000000180123590 + public static string GetText(string fmt, params /* 0x0000000180009C10-0x0000000180009C10 */ object[] args) => default; // 0x00000001802C64F0-0x00000001802C6560 } namespace Il2CppTests.TestSources @@ -91,14 +91,14 @@ namespace Il2CppTests.TestSources // Methods public virtual void VirtualMethod() {} // 0x00000001800EA7B0-0x00000001800EA7B0 - public double ValueTypeReturnMethod() {} // 0x00000001803E0EC0-0x00000001803E0EC0 - public StringBuilder ReferenceTypeReturnMethod() {} // 0x00000001803E0E70-0x00000001803E0EC0 + public double ValueTypeReturnMethod() => default; // 0x00000001803E0EC0-0x00000001803E0EC0 + public StringBuilder ReferenceTypeReturnMethod() => default; // 0x00000001803E0E70-0x00000001803E0EC0 } public static class TestExtension // TypeDefIndex: 1812 { // Methods - public static double DivideByXExtension(int a, float x) {} // 0x00000001803E0E50-0x00000001803E0E70 + public static double DivideByXExtension(int a, float x) => default; // 0x00000001803E0E50-0x00000001803E0E70 } internal abstract class TestAbstract // TypeDefIndex: 1813 @@ -188,6 +188,6 @@ namespace Il2CppTests.TestSources public TestNewNonVirtualMethod() {} // 0x00000001800E2000-0x00000001800E2000 // Methods - public int ValueTypeReturnMethod() {} // 0x0000000180119A50-0x0000000180119A50 + public int ValueTypeReturnMethod() => default; // 0x0000000180119A50-0x0000000180119A50 } } diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x86.cs index 0df822b..5dfa47e 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x86.cs @@ -11,31 +11,31 @@ using System.Runtime.InteropServices; using System.Text; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x1000F760-0x1000DC90 -[assembly: AssemblyCopyright] // 0x1000F760-0x1000DC90 -[assembly: AssemblyDefaultAlias] // 0x1000F760-0x1000DC90 -[assembly: AssemblyDelaySign] // 0x1000F760-0x1000DC90 -[assembly: AssemblyDescription] // 0x1000F760-0x1000DC90 -[assembly: AssemblyFileVersion] // 0x1000F760-0x1000DC90 -[assembly: AssemblyInformationalVersion] // 0x1000F760-0x1000DC90 -[assembly: AssemblyKeyFile] // 0x1000F760-0x1000DC90 -[assembly: AssemblyProduct] // 0x1000F760-0x1000DC90 -[assembly: AssemblyTitle] // 0x1000F760-0x1000DC90 -[assembly: CLSCompliant] // 0x1000F760-0x1000DC90 -[assembly: CompilationRelaxations] // 0x1000F760-0x1000DC90 -[assembly: ComVisible] // 0x1000F760-0x1000DC90 -[assembly: Debuggable] // 0x1000F760-0x1000DC90 -[assembly: DefaultDependency] // 0x1000F760-0x1000DC90 -[assembly: Guid] // 0x1000F760-0x1000DC90 -[assembly: NeutralResourcesLanguage] // 0x1000F760-0x1000DC90 +// [assembly: AssemblyCompany] // 0x1000F760-0x1000DC90 +// [assembly: AssemblyCopyright] // 0x1000F760-0x1000DC90 +// [assembly: AssemblyDefaultAlias] // 0x1000F760-0x1000DC90 +// [assembly: AssemblyDelaySign] // 0x1000F760-0x1000DC90 +// [assembly: AssemblyDescription] // 0x1000F760-0x1000DC90 +// [assembly: AssemblyFileVersion] // 0x1000F760-0x1000DC90 +// [assembly: AssemblyInformationalVersion] // 0x1000F760-0x1000DC90 +// [assembly: AssemblyKeyFile] // 0x1000F760-0x1000DC90 +// [assembly: AssemblyProduct] // 0x1000F760-0x1000DC90 +// [assembly: AssemblyTitle] // 0x1000F760-0x1000DC90 +// [assembly: CLSCompliant] // 0x1000F760-0x1000DC90 +// [assembly: CompilationRelaxations] // 0x1000F760-0x1000DC90 +// [assembly: ComVisible] // 0x1000F760-0x1000DC90 +// [assembly: Debuggable] // 0x1000F760-0x1000DC90 +// [assembly: DefaultDependency] // 0x1000F760-0x1000DC90 +// [assembly: Guid] // 0x1000F760-0x1000DC90 +// [assembly: NeutralResourcesLanguage] // 0x1000F760-0x1000DC90 [assembly: RuntimeCompatibility] // 0x1000F760-0x1000DC90 -[assembly: SatelliteContractVersion] // 0x1000F760-0x1000DC90 +// [assembly: SatelliteContractVersion] // 0x1000F760-0x1000DC90 [assembly: StringFreezing] // 0x1000F760-0x1000DC90 -[assembly: TypeLibVersion] // 0x1000F760-0x1000DC90 +// [assembly: TypeLibVersion] // 0x1000F760-0x1000DC90 // Image 1: Methods.dll - 1810-1822 -[assembly: CompilationRelaxations] // 0x1000DC90-0x1000DC90 -[assembly: Debuggable] // 0x1000DC90-0x1000DC90 +// [assembly: CompilationRelaxations] // 0x1000DC90-0x1000DC90 +// [assembly: Debuggable] // 0x1000DC90-0x1000DC90 [assembly: RuntimeCompatibility] // 0x1000DC90-0x1000DC90 internal static class Consts // TypeDefIndex: 100 @@ -78,8 +78,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x100BF000-0x100BF000 // Methods - public static string GetText(string msg) {} // 0x100F7810-0x100F7810 - public static string GetText(string fmt, params /* 0x1000A660-0x1000A660 */ object[] args) {} // 0x10261460-0x102614B0 + public static string GetText(string msg) => default; // 0x100F7810-0x100F7810 + public static string GetText(string fmt, params /* 0x1000A660-0x1000A660 */ object[] args) => default; // 0x10261460-0x102614B0 } namespace Il2CppTests.TestSources @@ -91,14 +91,14 @@ namespace Il2CppTests.TestSources // Methods public virtual void VirtualMethod() {} // 0x100C5530-0x100C5530 - public double ValueTypeReturnMethod() {} // 0x1034DAD0-0x1034DAD0 - public StringBuilder ReferenceTypeReturnMethod() {} // 0x1034DA90-0x1034DAD0 + public double ValueTypeReturnMethod() => default; // 0x1034DAD0-0x1034DAD0 + public StringBuilder ReferenceTypeReturnMethod() => default; // 0x1034DA90-0x1034DAD0 } public static class TestExtension // TypeDefIndex: 1812 { // Methods - public static double DivideByXExtension(int a, float x) {} // 0x1034DA60-0x1034DA90 + public static double DivideByXExtension(int a, float x) => default; // 0x1034DA60-0x1034DA90 } internal abstract class TestAbstract // TypeDefIndex: 1813 @@ -188,6 +188,6 @@ namespace Il2CppTests.TestSources public TestNewNonVirtualMethod() {} // 0x100BF000-0x100BF000 // Methods - public int ValueTypeReturnMethod() {} // 0x100EF660-0x100EF660 + public int ValueTypeReturnMethod() => default; // 0x100EF660-0x100EF660 } } diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs index bd087f8..4518f74 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs @@ -10,31 +10,31 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: AssemblyCopyright] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: AssemblyDefaultAlias] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: AssemblyDelaySign] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: AssemblyDescription] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: AssemblyFileVersion] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: AssemblyInformationalVersion] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: AssemblyKeyFile] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: AssemblyProduct] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: AssemblyTitle] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: CLSCompliant] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: CompilationRelaxations] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: ComVisible] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: Debuggable] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: DefaultDependency] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: Guid] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: NeutralResourcesLanguage] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: AssemblyCompany] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: AssemblyCopyright] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: AssemblyDefaultAlias] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: AssemblyDelaySign] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: AssemblyDescription] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: AssemblyFileVersion] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: AssemblyInformationalVersion] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: AssemblyKeyFile] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: AssemblyProduct] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: AssemblyTitle] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: CLSCompliant] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: CompilationRelaxations] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: ComVisible] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: Debuggable] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: DefaultDependency] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: Guid] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: NeutralResourcesLanguage] // 0x000000018000DF60-0x000000018000ADF0 [assembly: RuntimeCompatibility] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: SatelliteContractVersion] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: SatelliteContractVersion] // 0x000000018000DF60-0x000000018000ADF0 [assembly: StringFreezing] // 0x000000018000DF60-0x000000018000ADF0 -[assembly: TypeLibVersion] // 0x000000018000DF60-0x000000018000ADF0 +// [assembly: TypeLibVersion] // 0x000000018000DF60-0x000000018000ADF0 // Image 1: Properties.dll - 1810-1811 -[assembly: CompilationRelaxations] // 0x000000018000C0D0-0x000000018000C0D0 -[assembly: Debuggable] // 0x000000018000C0D0-0x000000018000C0D0 +// [assembly: CompilationRelaxations] // 0x000000018000C0D0-0x000000018000C0D0 +// [assembly: Debuggable] // 0x000000018000C0D0-0x000000018000C0D0 [assembly: RuntimeCompatibility] // 0x000000018000C0D0-0x000000018000C0D0 internal static class Consts // TypeDefIndex: 100 @@ -77,8 +77,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x00000001800E2000-0x00000001800E2000 // Methods - public static string GetText(string msg) {} // 0x0000000180123590-0x0000000180123590 - public static string GetText(string fmt, params /* 0x00000001800091F0-0x00000001800091F0 */ object[] args) {} // 0x00000001802C64F0-0x00000001802C6560 + public static string GetText(string msg) => default; // 0x0000000180123590-0x0000000180123590 + public static string GetText(string fmt, params /* 0x00000001800091F0-0x00000001800091F0 */ object[] args) => default; // 0x00000001802C64F0-0x00000001802C6560 } namespace Il2CppTests.TestSources diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs index 9c2b7cd..4b7a3c5 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs @@ -10,31 +10,31 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x1000EC00-0x1000C110 -[assembly: AssemblyCopyright] // 0x1000EC00-0x1000C110 -[assembly: AssemblyDefaultAlias] // 0x1000EC00-0x1000C110 -[assembly: AssemblyDelaySign] // 0x1000EC00-0x1000C110 -[assembly: AssemblyDescription] // 0x1000EC00-0x1000C110 -[assembly: AssemblyFileVersion] // 0x1000EC00-0x1000C110 -[assembly: AssemblyInformationalVersion] // 0x1000EC00-0x1000C110 -[assembly: AssemblyKeyFile] // 0x1000EC00-0x1000C110 -[assembly: AssemblyProduct] // 0x1000EC00-0x1000C110 -[assembly: AssemblyTitle] // 0x1000EC00-0x1000C110 -[assembly: CLSCompliant] // 0x1000EC00-0x1000C110 -[assembly: CompilationRelaxations] // 0x1000EC00-0x1000C110 -[assembly: ComVisible] // 0x1000EC00-0x1000C110 -[assembly: Debuggable] // 0x1000EC00-0x1000C110 -[assembly: DefaultDependency] // 0x1000EC00-0x1000C110 -[assembly: Guid] // 0x1000EC00-0x1000C110 -[assembly: NeutralResourcesLanguage] // 0x1000EC00-0x1000C110 +// [assembly: AssemblyCompany] // 0x1000EC00-0x1000C110 +// [assembly: AssemblyCopyright] // 0x1000EC00-0x1000C110 +// [assembly: AssemblyDefaultAlias] // 0x1000EC00-0x1000C110 +// [assembly: AssemblyDelaySign] // 0x1000EC00-0x1000C110 +// [assembly: AssemblyDescription] // 0x1000EC00-0x1000C110 +// [assembly: AssemblyFileVersion] // 0x1000EC00-0x1000C110 +// [assembly: AssemblyInformationalVersion] // 0x1000EC00-0x1000C110 +// [assembly: AssemblyKeyFile] // 0x1000EC00-0x1000C110 +// [assembly: AssemblyProduct] // 0x1000EC00-0x1000C110 +// [assembly: AssemblyTitle] // 0x1000EC00-0x1000C110 +// [assembly: CLSCompliant] // 0x1000EC00-0x1000C110 +// [assembly: CompilationRelaxations] // 0x1000EC00-0x1000C110 +// [assembly: ComVisible] // 0x1000EC00-0x1000C110 +// [assembly: Debuggable] // 0x1000EC00-0x1000C110 +// [assembly: DefaultDependency] // 0x1000EC00-0x1000C110 +// [assembly: Guid] // 0x1000EC00-0x1000C110 +// [assembly: NeutralResourcesLanguage] // 0x1000EC00-0x1000C110 [assembly: RuntimeCompatibility] // 0x1000EC00-0x1000C110 -[assembly: SatelliteContractVersion] // 0x1000EC00-0x1000C110 +// [assembly: SatelliteContractVersion] // 0x1000EC00-0x1000C110 [assembly: StringFreezing] // 0x1000EC00-0x1000C110 -[assembly: TypeLibVersion] // 0x1000EC00-0x1000C110 +// [assembly: TypeLibVersion] // 0x1000EC00-0x1000C110 // Image 1: Properties.dll - 1810-1811 -[assembly: CompilationRelaxations] // 0x1000D0F0-0x1000D0F0 -[assembly: Debuggable] // 0x1000D0F0-0x1000D0F0 +// [assembly: CompilationRelaxations] // 0x1000D0F0-0x1000D0F0 +// [assembly: Debuggable] // 0x1000D0F0-0x1000D0F0 [assembly: RuntimeCompatibility] // 0x1000D0F0-0x1000D0F0 internal static class Consts // TypeDefIndex: 100 @@ -77,8 +77,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x100BF000-0x100BF000 // Methods - public static string GetText(string msg) {} // 0x100F7810-0x100F7810 - public static string GetText(string fmt, params /* 0x10009AD0-0x10009AD0 */ object[] args) {} // 0x10261460-0x102614B0 + public static string GetText(string msg) => default; // 0x100F7810-0x100F7810 + public static string GetText(string fmt, params /* 0x10009AD0-0x10009AD0 */ object[] args) => default; // 0x10261460-0x102614B0 } namespace Il2CppTests.TestSources diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs index 8712805..5e0f463 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs @@ -10,31 +10,31 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000000018000E980-0x000000018000CB80 -[assembly: AssemblyCopyright] // 0x000000018000E980-0x000000018000CB80 -[assembly: AssemblyDefaultAlias] // 0x000000018000E980-0x000000018000CB80 -[assembly: AssemblyDelaySign] // 0x000000018000E980-0x000000018000CB80 -[assembly: AssemblyDescription] // 0x000000018000E980-0x000000018000CB80 -[assembly: AssemblyFileVersion] // 0x000000018000E980-0x000000018000CB80 -[assembly: AssemblyInformationalVersion] // 0x000000018000E980-0x000000018000CB80 -[assembly: AssemblyKeyFile] // 0x000000018000E980-0x000000018000CB80 -[assembly: AssemblyProduct] // 0x000000018000E980-0x000000018000CB80 -[assembly: AssemblyTitle] // 0x000000018000E980-0x000000018000CB80 -[assembly: CLSCompliant] // 0x000000018000E980-0x000000018000CB80 -[assembly: CompilationRelaxations] // 0x000000018000E980-0x000000018000CB80 -[assembly: ComVisible] // 0x000000018000E980-0x000000018000CB80 -[assembly: Debuggable] // 0x000000018000E980-0x000000018000CB80 -[assembly: DefaultDependency] // 0x000000018000E980-0x000000018000CB80 -[assembly: Guid] // 0x000000018000E980-0x000000018000CB80 -[assembly: NeutralResourcesLanguage] // 0x000000018000E980-0x000000018000CB80 +// [assembly: AssemblyCompany] // 0x000000018000E980-0x000000018000CB80 +// [assembly: AssemblyCopyright] // 0x000000018000E980-0x000000018000CB80 +// [assembly: AssemblyDefaultAlias] // 0x000000018000E980-0x000000018000CB80 +// [assembly: AssemblyDelaySign] // 0x000000018000E980-0x000000018000CB80 +// [assembly: AssemblyDescription] // 0x000000018000E980-0x000000018000CB80 +// [assembly: AssemblyFileVersion] // 0x000000018000E980-0x000000018000CB80 +// [assembly: AssemblyInformationalVersion] // 0x000000018000E980-0x000000018000CB80 +// [assembly: AssemblyKeyFile] // 0x000000018000E980-0x000000018000CB80 +// [assembly: AssemblyProduct] // 0x000000018000E980-0x000000018000CB80 +// [assembly: AssemblyTitle] // 0x000000018000E980-0x000000018000CB80 +// [assembly: CLSCompliant] // 0x000000018000E980-0x000000018000CB80 +// [assembly: CompilationRelaxations] // 0x000000018000E980-0x000000018000CB80 +// [assembly: ComVisible] // 0x000000018000E980-0x000000018000CB80 +// [assembly: Debuggable] // 0x000000018000E980-0x000000018000CB80 +// [assembly: DefaultDependency] // 0x000000018000E980-0x000000018000CB80 +// [assembly: Guid] // 0x000000018000E980-0x000000018000CB80 +// [assembly: NeutralResourcesLanguage] // 0x000000018000E980-0x000000018000CB80 [assembly: RuntimeCompatibility] // 0x000000018000E980-0x000000018000CB80 -[assembly: SatelliteContractVersion] // 0x000000018000E980-0x000000018000CB80 +// [assembly: SatelliteContractVersion] // 0x000000018000E980-0x000000018000CB80 [assembly: StringFreezing] // 0x000000018000E980-0x000000018000CB80 -[assembly: TypeLibVersion] // 0x000000018000E980-0x000000018000CB80 +// [assembly: TypeLibVersion] // 0x000000018000E980-0x000000018000CB80 // Image 1: References.dll - 1810-1812 -[assembly: CompilationRelaxations] // 0x000000018000CAF0-0x000000018000CAF0 -[assembly: Debuggable] // 0x000000018000CAF0-0x000000018000CAF0 +// [assembly: CompilationRelaxations] // 0x000000018000CAF0-0x000000018000CAF0 +// [assembly: Debuggable] // 0x000000018000CAF0-0x000000018000CAF0 [assembly: RuntimeCompatibility] // 0x000000018000CAF0-0x000000018000CAF0 internal static class Consts // TypeDefIndex: 100 @@ -77,8 +77,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x00000001800E2000-0x00000001800E2000 // Methods - public static string GetText(string msg) {} // 0x0000000180123590-0x0000000180123590 - public static string GetText(string fmt, params /* 0x0000000180009C10-0x0000000180009C10 */ object[] args) {} // 0x00000001802C64F0-0x00000001802C6560 + public static string GetText(string msg) => default; // 0x0000000180123590-0x0000000180123590 + public static string GetText(string fmt, params /* 0x0000000180009C10-0x0000000180009C10 */ object[] args) => default; // 0x00000001802C64F0-0x00000001802C6560 } namespace Il2CppTests.TestSources @@ -94,7 +94,7 @@ namespace Il2CppTests.TestSources // Methods public void MethodWithRefParameters(int a, ref int b, int c, ref int d) {} // 0x00000001800EA7B0-0x00000001800EA7B0 public void MethodWithInRefOut(in int a, ref int b, out int c) {} // 0x00000001803E0E50-0x00000001803E0E60 - public ref float MethodWithRefReturnType() {} // 0x00000001803E0E60-0x00000001803E0E60 + public ref float MethodWithRefReturnType() => default; // 0x00000001803E0E60-0x00000001803E0E60 } [Obsolete] // 0x000000018000CB80-0x000000018000CAF0 diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs index 53091e9..a921b1a 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs @@ -10,31 +10,31 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x1000F7A0-0x1000DD10 -[assembly: AssemblyCopyright] // 0x1000F7A0-0x1000DD10 -[assembly: AssemblyDefaultAlias] // 0x1000F7A0-0x1000DD10 -[assembly: AssemblyDelaySign] // 0x1000F7A0-0x1000DD10 -[assembly: AssemblyDescription] // 0x1000F7A0-0x1000DD10 -[assembly: AssemblyFileVersion] // 0x1000F7A0-0x1000DD10 -[assembly: AssemblyInformationalVersion] // 0x1000F7A0-0x1000DD10 -[assembly: AssemblyKeyFile] // 0x1000F7A0-0x1000DD10 -[assembly: AssemblyProduct] // 0x1000F7A0-0x1000DD10 -[assembly: AssemblyTitle] // 0x1000F7A0-0x1000DD10 -[assembly: CLSCompliant] // 0x1000F7A0-0x1000DD10 -[assembly: CompilationRelaxations] // 0x1000F7A0-0x1000DD10 -[assembly: ComVisible] // 0x1000F7A0-0x1000DD10 -[assembly: Debuggable] // 0x1000F7A0-0x1000DD10 -[assembly: DefaultDependency] // 0x1000F7A0-0x1000DD10 -[assembly: Guid] // 0x1000F7A0-0x1000DD10 -[assembly: NeutralResourcesLanguage] // 0x1000F7A0-0x1000DD10 +// [assembly: AssemblyCompany] // 0x1000F7A0-0x1000DD10 +// [assembly: AssemblyCopyright] // 0x1000F7A0-0x1000DD10 +// [assembly: AssemblyDefaultAlias] // 0x1000F7A0-0x1000DD10 +// [assembly: AssemblyDelaySign] // 0x1000F7A0-0x1000DD10 +// [assembly: AssemblyDescription] // 0x1000F7A0-0x1000DD10 +// [assembly: AssemblyFileVersion] // 0x1000F7A0-0x1000DD10 +// [assembly: AssemblyInformationalVersion] // 0x1000F7A0-0x1000DD10 +// [assembly: AssemblyKeyFile] // 0x1000F7A0-0x1000DD10 +// [assembly: AssemblyProduct] // 0x1000F7A0-0x1000DD10 +// [assembly: AssemblyTitle] // 0x1000F7A0-0x1000DD10 +// [assembly: CLSCompliant] // 0x1000F7A0-0x1000DD10 +// [assembly: CompilationRelaxations] // 0x1000F7A0-0x1000DD10 +// [assembly: ComVisible] // 0x1000F7A0-0x1000DD10 +// [assembly: Debuggable] // 0x1000F7A0-0x1000DD10 +// [assembly: DefaultDependency] // 0x1000F7A0-0x1000DD10 +// [assembly: Guid] // 0x1000F7A0-0x1000DD10 +// [assembly: NeutralResourcesLanguage] // 0x1000F7A0-0x1000DD10 [assembly: RuntimeCompatibility] // 0x1000F7A0-0x1000DD10 -[assembly: SatelliteContractVersion] // 0x1000F7A0-0x1000DD10 +// [assembly: SatelliteContractVersion] // 0x1000F7A0-0x1000DD10 [assembly: StringFreezing] // 0x1000F7A0-0x1000DD10 -[assembly: TypeLibVersion] // 0x1000F7A0-0x1000DD10 +// [assembly: TypeLibVersion] // 0x1000F7A0-0x1000DD10 // Image 1: References.dll - 1810-1812 -[assembly: CompilationRelaxations] // 0x1000DC90-0x1000DC90 -[assembly: Debuggable] // 0x1000DC90-0x1000DC90 +// [assembly: CompilationRelaxations] // 0x1000DC90-0x1000DC90 +// [assembly: Debuggable] // 0x1000DC90-0x1000DC90 [assembly: RuntimeCompatibility] // 0x1000DC90-0x1000DC90 internal static class Consts // TypeDefIndex: 100 @@ -77,8 +77,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x100BF000-0x100BF000 // Methods - public static string GetText(string msg) {} // 0x100F7810-0x100F7810 - public static string GetText(string fmt, params /* 0x1000A660-0x1000A660 */ object[] args) {} // 0x10261460-0x102614B0 + public static string GetText(string msg) => default; // 0x100F7810-0x100F7810 + public static string GetText(string fmt, params /* 0x1000A660-0x1000A660 */ object[] args) => default; // 0x10261460-0x102614B0 } namespace Il2CppTests.TestSources @@ -94,7 +94,7 @@ namespace Il2CppTests.TestSources // Methods public void MethodWithRefParameters(int a, ref int b, int c, ref int d) {} // 0x100C5530-0x100C5530 public void MethodWithInRefOut(in int a, ref int b, out int c) {} // 0x1034DA60-0x1034DA70 - public ref float MethodWithRefReturnType() {} // 0x1034DA70-0x1034DA70 + public ref float MethodWithRefReturnType() => default; // 0x1034DA70-0x1034DA70 } [Obsolete] // 0x1000DD10-0x1000DC90 diff --git a/Il2CppTests/TestExpectedResults/GenericTypes.cs b/Il2CppTests/TestExpectedResults/GenericTypes.cs index 44b0733..6035a89 100644 --- a/Il2CppTests/TestExpectedResults/GenericTypes.cs +++ b/Il2CppTests/TestExpectedResults/GenericTypes.cs @@ -11,75 +11,75 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000A534C-0x000A5640 -[assembly: AssemblyCopyright] // 0x000A534C-0x000A5640 -[assembly: AssemblyDefaultAlias] // 0x000A534C-0x000A5640 -[assembly: AssemblyDelaySign] // 0x000A534C-0x000A5640 -[assembly: AssemblyDescription] // 0x000A534C-0x000A5640 -[assembly: AssemblyFileVersion] // 0x000A534C-0x000A5640 -[assembly: AssemblyInformationalVersion] // 0x000A534C-0x000A5640 -[assembly: AssemblyKeyFile] // 0x000A534C-0x000A5640 -[assembly: AssemblyProduct] // 0x000A534C-0x000A5640 -[assembly: AssemblyTitle] // 0x000A534C-0x000A5640 -[assembly: CLSCompliant] // 0x000A534C-0x000A5640 -[assembly: CompilationRelaxations] // 0x000A534C-0x000A5640 -[assembly: ComVisible] // 0x000A534C-0x000A5640 -[assembly: Debuggable] // 0x000A534C-0x000A5640 -[assembly: DefaultDependency] // 0x000A534C-0x000A5640 -[assembly: Guid] // 0x000A534C-0x000A5640 -[assembly: NeutralResourcesLanguage] // 0x000A534C-0x000A5640 -[assembly: RuntimeCompatibility] // 0x000A534C-0x000A5640 -[assembly: SatelliteContractVersion] // 0x000A534C-0x000A5640 -[assembly: StringFreezing] // 0x000A534C-0x000A5640 -[assembly: TypeLibVersion] // 0x000A534C-0x000A5640 +// [assembly: AssemblyCompany] // 0x000A5524-0x000A5818 +// [assembly: AssemblyCopyright] // 0x000A5524-0x000A5818 +// [assembly: AssemblyDefaultAlias] // 0x000A5524-0x000A5818 +// [assembly: AssemblyDelaySign] // 0x000A5524-0x000A5818 +// [assembly: AssemblyDescription] // 0x000A5524-0x000A5818 +// [assembly: AssemblyFileVersion] // 0x000A5524-0x000A5818 +// [assembly: AssemblyInformationalVersion] // 0x000A5524-0x000A5818 +// [assembly: AssemblyKeyFile] // 0x000A5524-0x000A5818 +// [assembly: AssemblyProduct] // 0x000A5524-0x000A5818 +// [assembly: AssemblyTitle] // 0x000A5524-0x000A5818 +// [assembly: CLSCompliant] // 0x000A5524-0x000A5818 +// [assembly: CompilationRelaxations] // 0x000A5524-0x000A5818 +// [assembly: ComVisible] // 0x000A5524-0x000A5818 +// [assembly: Debuggable] // 0x000A5524-0x000A5818 +// [assembly: DefaultDependency] // 0x000A5524-0x000A5818 +// [assembly: Guid] // 0x000A5524-0x000A5818 +// [assembly: NeutralResourcesLanguage] // 0x000A5524-0x000A5818 +[assembly: RuntimeCompatibility] // 0x000A5524-0x000A5818 +// [assembly: SatelliteContractVersion] // 0x000A5524-0x000A5818 +[assembly: StringFreezing] // 0x000A5524-0x000A5818 +// [assembly: TypeLibVersion] // 0x000A5524-0x000A5818 -// Image 1: GenericTypes.dll - 1810-1821 -[assembly: CompilationRelaxations] // 0x000A5754-0x000A5754 -[assembly: Debuggable] // 0x000A5754-0x000A5754 -[assembly: RuntimeCompatibility] // 0x000A5754-0x000A5754 +// Image 1: GenericTypes.dll - 1810-1827 +// [assembly: CompilationRelaxations] // 0x000A592C-0x000A592C +// [assembly: Debuggable] // 0x000A592C-0x000A592C +[assembly: RuntimeCompatibility] // 0x000A592C-0x000A592C internal static class Consts // TypeDefIndex: 100 { // Fields - public const string MonoVersion = "2.6.5.0"; // Metadata: 0x000ECCEC - public const string MonoCompany = "MONO development team"; // Metadata: 0x000ECCF7 - public const string MonoProduct = "MONO Common language infrastructure"; // Metadata: 0x000ECD10 - public const string MonoCopyright = "(c) various MONO Authors"; // Metadata: 0x000ECD37 - public const string FxVersion = "2.0.0.0"; // Metadata: 0x000ECD53 - public const string VsVersion = "8.0.0.0"; // Metadata: 0x000ECD5E - public const string FxFileVersion = "2.0.50727.1433"; // Metadata: 0x000ECD69 - public const string VsFileVersion = "8.0.50727.1433"; // Metadata: 0x000ECD7B - public const string AssemblyI18N = "I18N, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECD8D - public const string AssemblyMicrosoft_VisualStudio = "Microsoft.VisualStudio, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECDD8 - public const string AssemblyMicrosoft_VisualStudio_Web = "Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECE35 - public const string AssemblyMicrosoft_VSDesigner = "Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECE96 - public const string AssemblyMono_Http = "Mono.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECEF1 - public const string AssemblyMono_Posix = "Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECF41 - public const string AssemblyMono_Security = "Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECF92 - public const string AssemblyMono_Messaging_RabbitMQ = "Mono.Messaging.RabbitMQ, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECFE6 - public const string AssemblyCorlib = "mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED044 - public const string AssemblySystem = "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED093 - public const string AssemblySystem_Data = "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED0E0 - public const string AssemblySystem_Design = "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED132 - public const string AssemblySystem_DirectoryServices = "System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED186 - public const string AssemblySystem_Drawing = "System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED1E5 - public const string AssemblySystem_Drawing_Design = "System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED23A - public const string AssemblySystem_Messaging = "System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED296 - public const string AssemblySystem_Security = "System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED2ED - public const string AssemblySystem_ServiceProcess = "System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED343 - public const string AssemblySystem_Web = "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED39F - public const string AssemblySystem_Windows_Forms = "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED3F0 - public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED44B + public const string MonoVersion = "2.6.5.0"; // Metadata: 0x000ECED8 + public const string MonoCompany = "MONO development team"; // Metadata: 0x000ECEE3 + public const string MonoProduct = "MONO Common language infrastructure"; // Metadata: 0x000ECEFC + public const string MonoCopyright = "(c) various MONO Authors"; // Metadata: 0x000ECF23 + public const string FxVersion = "2.0.0.0"; // Metadata: 0x000ECF3F + public const string VsVersion = "8.0.0.0"; // Metadata: 0x000ECF4A + public const string FxFileVersion = "2.0.50727.1433"; // Metadata: 0x000ECF55 + public const string VsFileVersion = "8.0.50727.1433"; // Metadata: 0x000ECF67 + public const string AssemblyI18N = "I18N, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ECF79 + public const string AssemblyMicrosoft_VisualStudio = "Microsoft.VisualStudio, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ECFC4 + public const string AssemblyMicrosoft_VisualStudio_Web = "Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED021 + public const string AssemblyMicrosoft_VSDesigner = "Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED082 + public const string AssemblyMono_Http = "Mono.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED0DD + public const string AssemblyMono_Posix = "Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED12D + public const string AssemblyMono_Security = "Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED17E + public const string AssemblyMono_Messaging_RabbitMQ = "Mono.Messaging.RabbitMQ, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"; // Metadata: 0x000ED1D2 + public const string AssemblyCorlib = "mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED230 + public const string AssemblySystem = "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED27F + public const string AssemblySystem_Data = "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED2CC + public const string AssemblySystem_Design = "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED31E + public const string AssemblySystem_DirectoryServices = "System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED372 + public const string AssemblySystem_Drawing = "System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED3D1 + public const string AssemblySystem_Drawing_Design = "System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED426 + public const string AssemblySystem_Messaging = "System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED482 + public const string AssemblySystem_Security = "System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED4D9 + public const string AssemblySystem_ServiceProcess = "System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED52F + public const string AssemblySystem_Web = "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; // Metadata: 0x000ED58B + public const string AssemblySystem_Windows_Forms = "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED5DC + public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; // Metadata: 0x000ED637 } internal sealed class Locale // TypeDefIndex: 101 { // Constructors - private Locale() {} // 0x003ECCE8-0x003ECCF0 + private Locale() {} // 0x003ED1B0-0x003ED1B8 // Methods - public static string GetText(string msg) {} // 0x003ECCF0-0x003ECCF4 - public static string GetText(string fmt, params /* 0x000A3B78-0x000A3B88 */ object[] args) {} // 0x003ECCF4-0x003ECD80 + public static string GetText(string msg) => default; // 0x003ED1B8-0x003ED1BC + public static string GetText(string fmt, params /* 0x000A3D50-0x000A3D60 */ object[] args) => default; // 0x003ED1BC-0x003ED248 } namespace Il2CppTests.TestSources @@ -115,10 +115,10 @@ namespace Il2CppTests.TestSources internal class Test // TypeDefIndex: 1819 { // Constructors - public Test() {} // 0x00561A3C-0x00561A44 + public Test() {} // 0x00561F04-0x00561F0C // Methods - public void GenericTypesTest() {} // 0x00561880-0x00561A3C + public void GenericTypesTest() {} // 0x00561D48-0x00561F04 } internal class ConstrainedValueType // TypeDefIndex: 1820 @@ -131,11 +131,45 @@ namespace Il2CppTests.TestSources internal class ConstrainedRefType // TypeDefIndex: 1821 where R : class { + // Nested types + private class NestedWithAutomaticConstraints // TypeDefIndex: 1822 + { + // Constructors + public NestedWithAutomaticConstraints() {} + } + + private class NestedWithNewGenericParameter // TypeDefIndex: 1823 + { + // Constructors + public NestedWithNewGenericParameter() {} + } + + private class NestedWithNewGenericParameterAndConstraint // TypeDefIndex: 1824 + where T : new() + { + // Constructors + public NestedWithNewGenericParameterAndConstraint() {} + } + + private class NestedWithNewGenericParameterAndDependentConstraint // TypeDefIndex: 1825 + where T : G, new() + { + // Constructors + public NestedWithNewGenericParameterAndDependentConstraint() {} + } + + private enum NestedEnumWithAutomaticConstraints // TypeDefIndex: 1826 + { + + } + + private delegate void NestedDelegateWithAutomaticConstraints(); // TypeDefIndex: 1827; 0x00000000-0x00000000 + // Constructors public ConstrainedRefType() {} // Methods - [NullableContext] // 0x000A5740-0x000A5754 + // [NullableContext] // 0x000A5918-0x000A592C public void ConstrainedMethodNotNull(N notnullArgument, R bar) {} public void ConstrainedUnmanaged(U unmanagedArgument) where U : struct {} diff --git a/Il2CppTests/TestExpectedResults/Methods.cs b/Il2CppTests/TestExpectedResults/Methods.cs index 50a0198..00cccd2 100644 --- a/Il2CppTests/TestExpectedResults/Methods.cs +++ b/Il2CppTests/TestExpectedResults/Methods.cs @@ -11,31 +11,31 @@ using System.Runtime.InteropServices; using System.Text; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000A5098-0x000A538C -[assembly: AssemblyCopyright] // 0x000A5098-0x000A538C -[assembly: AssemblyDefaultAlias] // 0x000A5098-0x000A538C -[assembly: AssemblyDelaySign] // 0x000A5098-0x000A538C -[assembly: AssemblyDescription] // 0x000A5098-0x000A538C -[assembly: AssemblyFileVersion] // 0x000A5098-0x000A538C -[assembly: AssemblyInformationalVersion] // 0x000A5098-0x000A538C -[assembly: AssemblyKeyFile] // 0x000A5098-0x000A538C -[assembly: AssemblyProduct] // 0x000A5098-0x000A538C -[assembly: AssemblyTitle] // 0x000A5098-0x000A538C -[assembly: CLSCompliant] // 0x000A5098-0x000A538C -[assembly: CompilationRelaxations] // 0x000A5098-0x000A538C -[assembly: ComVisible] // 0x000A5098-0x000A538C -[assembly: Debuggable] // 0x000A5098-0x000A538C -[assembly: DefaultDependency] // 0x000A5098-0x000A538C -[assembly: Guid] // 0x000A5098-0x000A538C -[assembly: NeutralResourcesLanguage] // 0x000A5098-0x000A538C +// [assembly: AssemblyCompany] // 0x000A5098-0x000A538C +// [assembly: AssemblyCopyright] // 0x000A5098-0x000A538C +// [assembly: AssemblyDefaultAlias] // 0x000A5098-0x000A538C +// [assembly: AssemblyDelaySign] // 0x000A5098-0x000A538C +// [assembly: AssemblyDescription] // 0x000A5098-0x000A538C +// [assembly: AssemblyFileVersion] // 0x000A5098-0x000A538C +// [assembly: AssemblyInformationalVersion] // 0x000A5098-0x000A538C +// [assembly: AssemblyKeyFile] // 0x000A5098-0x000A538C +// [assembly: AssemblyProduct] // 0x000A5098-0x000A538C +// [assembly: AssemblyTitle] // 0x000A5098-0x000A538C +// [assembly: CLSCompliant] // 0x000A5098-0x000A538C +// [assembly: CompilationRelaxations] // 0x000A5098-0x000A538C +// [assembly: ComVisible] // 0x000A5098-0x000A538C +// [assembly: Debuggable] // 0x000A5098-0x000A538C +// [assembly: DefaultDependency] // 0x000A5098-0x000A538C +// [assembly: Guid] // 0x000A5098-0x000A538C +// [assembly: NeutralResourcesLanguage] // 0x000A5098-0x000A538C [assembly: RuntimeCompatibility] // 0x000A5098-0x000A538C -[assembly: SatelliteContractVersion] // 0x000A5098-0x000A538C +// [assembly: SatelliteContractVersion] // 0x000A5098-0x000A538C [assembly: StringFreezing] // 0x000A5098-0x000A538C -[assembly: TypeLibVersion] // 0x000A5098-0x000A538C +// [assembly: TypeLibVersion] // 0x000A5098-0x000A538C // Image 1: Methods.dll - 1810-1822 -[assembly: CompilationRelaxations] // 0x000A538C-0x000A538C -[assembly: Debuggable] // 0x000A538C-0x000A538C +// [assembly: CompilationRelaxations] // 0x000A538C-0x000A538C +// [assembly: Debuggable] // 0x000A538C-0x000A538C [assembly: RuntimeCompatibility] // 0x000A538C-0x000A538C internal static class Consts // TypeDefIndex: 100 @@ -78,8 +78,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x003EC600-0x003EC608 // Methods - public static string GetText(string msg) {} // 0x003EC608-0x003EC60C - public static string GetText(string fmt, params /* 0x000A38C4-0x000A38D4 */ object[] args) {} // 0x003EC60C-0x003EC698 + public static string GetText(string msg) => default; // 0x003EC608-0x003EC60C + public static string GetText(string fmt, params /* 0x000A38C4-0x000A38D4 */ object[] args) => default; // 0x003EC60C-0x003EC698 } namespace Il2CppTests.TestSources @@ -91,14 +91,14 @@ namespace Il2CppTests.TestSources // Methods public virtual void VirtualMethod() {} // 0x00561188-0x0056118C - public double ValueTypeReturnMethod() {} // 0x0056118C-0x00561198 - public StringBuilder ReferenceTypeReturnMethod() {} // 0x005611B4-0x00561220 + public double ValueTypeReturnMethod() => default; // 0x0056118C-0x00561198 + public StringBuilder ReferenceTypeReturnMethod() => default; // 0x005611B4-0x00561220 } public static class TestExtension // TypeDefIndex: 1812 { // Methods - public static double DivideByXExtension(int a, float x) {} // 0x00561198-0x005611B4 + public static double DivideByXExtension(int a, float x) => default; // 0x00561198-0x005611B4 } internal abstract class TestAbstract // TypeDefIndex: 1813 @@ -188,6 +188,6 @@ namespace Il2CppTests.TestSources public TestNewNonVirtualMethod() {} // 0x0056128C-0x00561294 // Methods - public int ValueTypeReturnMethod() {} // 0x00561284-0x0056128C + public int ValueTypeReturnMethod() => default; // 0x00561284-0x0056128C } } diff --git a/Il2CppTests/TestExpectedResults/Properties.cs b/Il2CppTests/TestExpectedResults/Properties.cs index deec525..50516d5 100644 --- a/Il2CppTests/TestExpectedResults/Properties.cs +++ b/Il2CppTests/TestExpectedResults/Properties.cs @@ -10,31 +10,31 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000A4DEC-0x000A50E0 -[assembly: AssemblyCopyright] // 0x000A4DEC-0x000A50E0 -[assembly: AssemblyDefaultAlias] // 0x000A4DEC-0x000A50E0 -[assembly: AssemblyDelaySign] // 0x000A4DEC-0x000A50E0 -[assembly: AssemblyDescription] // 0x000A4DEC-0x000A50E0 -[assembly: AssemblyFileVersion] // 0x000A4DEC-0x000A50E0 -[assembly: AssemblyInformationalVersion] // 0x000A4DEC-0x000A50E0 -[assembly: AssemblyKeyFile] // 0x000A4DEC-0x000A50E0 -[assembly: AssemblyProduct] // 0x000A4DEC-0x000A50E0 -[assembly: AssemblyTitle] // 0x000A4DEC-0x000A50E0 -[assembly: CLSCompliant] // 0x000A4DEC-0x000A50E0 -[assembly: CompilationRelaxations] // 0x000A4DEC-0x000A50E0 -[assembly: ComVisible] // 0x000A4DEC-0x000A50E0 -[assembly: Debuggable] // 0x000A4DEC-0x000A50E0 -[assembly: DefaultDependency] // 0x000A4DEC-0x000A50E0 -[assembly: Guid] // 0x000A4DEC-0x000A50E0 -[assembly: NeutralResourcesLanguage] // 0x000A4DEC-0x000A50E0 +// [assembly: AssemblyCompany] // 0x000A4DEC-0x000A50E0 +// [assembly: AssemblyCopyright] // 0x000A4DEC-0x000A50E0 +// [assembly: AssemblyDefaultAlias] // 0x000A4DEC-0x000A50E0 +// [assembly: AssemblyDelaySign] // 0x000A4DEC-0x000A50E0 +// [assembly: AssemblyDescription] // 0x000A4DEC-0x000A50E0 +// [assembly: AssemblyFileVersion] // 0x000A4DEC-0x000A50E0 +// [assembly: AssemblyInformationalVersion] // 0x000A4DEC-0x000A50E0 +// [assembly: AssemblyKeyFile] // 0x000A4DEC-0x000A50E0 +// [assembly: AssemblyProduct] // 0x000A4DEC-0x000A50E0 +// [assembly: AssemblyTitle] // 0x000A4DEC-0x000A50E0 +// [assembly: CLSCompliant] // 0x000A4DEC-0x000A50E0 +// [assembly: CompilationRelaxations] // 0x000A4DEC-0x000A50E0 +// [assembly: ComVisible] // 0x000A4DEC-0x000A50E0 +// [assembly: Debuggable] // 0x000A4DEC-0x000A50E0 +// [assembly: DefaultDependency] // 0x000A4DEC-0x000A50E0 +// [assembly: Guid] // 0x000A4DEC-0x000A50E0 +// [assembly: NeutralResourcesLanguage] // 0x000A4DEC-0x000A50E0 [assembly: RuntimeCompatibility] // 0x000A4DEC-0x000A50E0 -[assembly: SatelliteContractVersion] // 0x000A4DEC-0x000A50E0 +// [assembly: SatelliteContractVersion] // 0x000A4DEC-0x000A50E0 [assembly: StringFreezing] // 0x000A4DEC-0x000A50E0 -[assembly: TypeLibVersion] // 0x000A4DEC-0x000A50E0 +// [assembly: TypeLibVersion] // 0x000A4DEC-0x000A50E0 // Image 1: Properties.dll - 1810-1811 -[assembly: CompilationRelaxations] // 0x000A5264-0x000A5264 -[assembly: Debuggable] // 0x000A5264-0x000A5264 +// [assembly: CompilationRelaxations] // 0x000A5264-0x000A5264 +// [assembly: Debuggable] // 0x000A5264-0x000A5264 [assembly: RuntimeCompatibility] // 0x000A5264-0x000A5264 internal static class Consts // TypeDefIndex: 100 @@ -77,8 +77,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x003EC6A8-0x003EC6B0 // Methods - public static string GetText(string msg) {} // 0x003EC6B0-0x003EC6B4 - public static string GetText(string fmt, params /* 0x000A3618-0x000A3628 */ object[] args) {} // 0x003EC6B4-0x003EC740 + public static string GetText(string msg) => default; // 0x003EC6B0-0x003EC6B4 + public static string GetText(string fmt, params /* 0x000A3618-0x000A3628 */ object[] args) => default; // 0x003EC6B4-0x003EC740 } namespace Il2CppTests.TestSources diff --git a/Il2CppTests/TestExpectedResults/References.cs b/Il2CppTests/TestExpectedResults/References.cs index cc01e72..71908a6 100644 --- a/Il2CppTests/TestExpectedResults/References.cs +++ b/Il2CppTests/TestExpectedResults/References.cs @@ -10,31 +10,31 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Image 0: mscorlib.dll - 0-1809 -[assembly: AssemblyCompany] // 0x000A4F30-0x000A5224 -[assembly: AssemblyCopyright] // 0x000A4F30-0x000A5224 -[assembly: AssemblyDefaultAlias] // 0x000A4F30-0x000A5224 -[assembly: AssemblyDelaySign] // 0x000A4F30-0x000A5224 -[assembly: AssemblyDescription] // 0x000A4F30-0x000A5224 -[assembly: AssemblyFileVersion] // 0x000A4F30-0x000A5224 -[assembly: AssemblyInformationalVersion] // 0x000A4F30-0x000A5224 -[assembly: AssemblyKeyFile] // 0x000A4F30-0x000A5224 -[assembly: AssemblyProduct] // 0x000A4F30-0x000A5224 -[assembly: AssemblyTitle] // 0x000A4F30-0x000A5224 -[assembly: CLSCompliant] // 0x000A4F30-0x000A5224 -[assembly: CompilationRelaxations] // 0x000A4F30-0x000A5224 -[assembly: ComVisible] // 0x000A4F30-0x000A5224 -[assembly: Debuggable] // 0x000A4F30-0x000A5224 -[assembly: DefaultDependency] // 0x000A4F30-0x000A5224 -[assembly: Guid] // 0x000A4F30-0x000A5224 -[assembly: NeutralResourcesLanguage] // 0x000A4F30-0x000A5224 +// [assembly: AssemblyCompany] // 0x000A4F30-0x000A5224 +// [assembly: AssemblyCopyright] // 0x000A4F30-0x000A5224 +// [assembly: AssemblyDefaultAlias] // 0x000A4F30-0x000A5224 +// [assembly: AssemblyDelaySign] // 0x000A4F30-0x000A5224 +// [assembly: AssemblyDescription] // 0x000A4F30-0x000A5224 +// [assembly: AssemblyFileVersion] // 0x000A4F30-0x000A5224 +// [assembly: AssemblyInformationalVersion] // 0x000A4F30-0x000A5224 +// [assembly: AssemblyKeyFile] // 0x000A4F30-0x000A5224 +// [assembly: AssemblyProduct] // 0x000A4F30-0x000A5224 +// [assembly: AssemblyTitle] // 0x000A4F30-0x000A5224 +// [assembly: CLSCompliant] // 0x000A4F30-0x000A5224 +// [assembly: CompilationRelaxations] // 0x000A4F30-0x000A5224 +// [assembly: ComVisible] // 0x000A4F30-0x000A5224 +// [assembly: Debuggable] // 0x000A4F30-0x000A5224 +// [assembly: DefaultDependency] // 0x000A4F30-0x000A5224 +// [assembly: Guid] // 0x000A4F30-0x000A5224 +// [assembly: NeutralResourcesLanguage] // 0x000A4F30-0x000A5224 [assembly: RuntimeCompatibility] // 0x000A4F30-0x000A5224 -[assembly: SatelliteContractVersion] // 0x000A4F30-0x000A5224 +// [assembly: SatelliteContractVersion] // 0x000A4F30-0x000A5224 [assembly: StringFreezing] // 0x000A4F30-0x000A5224 -[assembly: TypeLibVersion] // 0x000A4F30-0x000A5224 +// [assembly: TypeLibVersion] // 0x000A4F30-0x000A5224 // Image 1: References.dll - 1810-1812 -[assembly: CompilationRelaxations] // 0x000A525C-0x000A525C -[assembly: Debuggable] // 0x000A525C-0x000A525C +// [assembly: CompilationRelaxations] // 0x000A525C-0x000A525C +// [assembly: Debuggable] // 0x000A525C-0x000A525C [assembly: RuntimeCompatibility] // 0x000A525C-0x000A525C internal static class Consts // TypeDefIndex: 100 @@ -77,8 +77,8 @@ internal sealed class Locale // TypeDefIndex: 101 private Locale() {} // 0x003EC4F8-0x003EC500 // Methods - public static string GetText(string msg) {} // 0x003EC500-0x003EC504 - public static string GetText(string fmt, params /* 0x000A375C-0x000A376C */ object[] args) {} // 0x003EC504-0x003EC590 + public static string GetText(string msg) => default; // 0x003EC500-0x003EC504 + public static string GetText(string fmt, params /* 0x000A375C-0x000A376C */ object[] args) => default; // 0x003EC504-0x003EC590 } namespace Il2CppTests.TestSources @@ -94,7 +94,7 @@ namespace Il2CppTests.TestSources // Methods public void MethodWithRefParameters(int a, ref int b, int c, ref int d) {} // 0x00561080-0x00561084 public void MethodWithInRefOut(in int a, ref int b, out int c) {} // 0x00561084-0x00561090 - public ref float MethodWithRefReturnType() {} // 0x00561090-0x00561098 + public ref float MethodWithRefReturnType() => default; // 0x00561090-0x00561098 } [Obsolete] // 0x000A5224-0x000A525C