diff --git a/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs b/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs index fda7aaf..ab3cb37 100644 --- a/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs +++ b/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -33,7 +37,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x000A6D34 [assembly: RuntimeCompatibility] // 0x000A6D34 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -68,7 +71,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -79,53 +81,54 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x000A50D8 */ object[] args); // 0x003EE224 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1813 +namespace Il2CppTests.TestSources { - // Fields - private int[] foo; // 0x08 - private int[] bar; // 0x0C - private float[][] arrayOfArrays; // 0x10 - private float[,] twoDimensionalArray; // 0x14 - private float[,,] threeDimensionalArray; // 0x18 - private unsafe int*[] arrayOfPointer; // 0x1C - private unsafe int** pointerToPointer; // 0x20 - private unsafe float*[][,,][] confusedElephant; // 0x24 - - // Properties - public unsafe int* PointerProperty { get; set; } // 0x00562EEC 0x00562EF4 - public unsafe int* this[int i] { get; } // 0x00562F10 - public unsafe int this[int* p] { get; } // 0x00562F18 - public unsafe float* this[float* fp] { get; } // 0x00562F20 - - // Nested types - private struct fixedSizeArrayStruct // TypeDefIndex: 1814 + internal class Test // TypeDefIndex: 1813 { // Fields - private unsafe fixed /* 0x000A6C98 */ int fixedSizeArray[0]; // 0x08 - } - - public unsafe delegate void OnUnsafe(int* ud); // TypeDefIndex: 1816; 0x00562F3C - - public class NestedUnsafe // TypeDefIndex: 1817 - where T : struct - { + private int[] foo; // 0x08 + private int[] bar; // 0x0C + private float[][] arrayOfArrays; // 0x10 + private float[,] twoDimensionalArray; // 0x14 + private float[,,] threeDimensionalArray; // 0x18 + private unsafe int*[] arrayOfPointer; // 0x1C + private unsafe int** pointerToPointer; // 0x20 + private unsafe float*[][,,][] confusedElephant; // 0x24 + + // Properties + public unsafe int* PointerProperty { get; set; } // 0x00562EEC 0x00562EF4 + public unsafe int* this[int i] { get; } // 0x00562F10 + public unsafe int this[int* p] { get; } // 0x00562F18 + public unsafe float* this[float* fp] { get; } // 0x00562F20 + + // Nested types + private struct fixedSizeArrayStruct // TypeDefIndex: 1814 + { + // Fields + private unsafe fixed /* 0x000A6C98 */ int fixedSizeArray[0]; // 0x08 + } + + public unsafe delegate void OnUnsafe(int* ud); // TypeDefIndex: 1816; 0x00562F3C + + public class NestedUnsafe // TypeDefIndex: 1817 + where T : struct + { + // Constructors + public NestedUnsafe(); + + // Methods + private unsafe T* UnsafeGenericReturn(); + private unsafe void UnsafeGenericMethod(T* pt); + } + // Constructors - public NestedUnsafe(); - + public unsafe Test(int* u); // 0x00562E78 + // Methods - private unsafe T* UnsafeGenericReturn(); - private unsafe void UnsafeGenericMethod(T* pt); + public int[] FooMethod(int[][] bar); // 0x00562DA0 + public int[,] BarMethod(int[,,] baz); // 0x00562E00 + public unsafe void UnsafeMethod(int* unsafePointerArgument); // 0x00562EFC + public unsafe int* UnsafeReturnMethod(); // 0x00562F00 + public unsafe int* UnsafeMethod2(int* i); // 0x00562F08 } - - // Constructors - public unsafe Test(int* u); // 0x00562E78 - - // Methods - public int[] FooMethod(int[][] bar); // 0x00562DA0 - public int[,] BarMethod(int[,,] baz); // 0x00562E00 - public unsafe void UnsafeMethod(int* unsafePointerArgument); // 0x00562EFC - public unsafe int* UnsafeReturnMethod(); // 0x00562F00 - public unsafe int* UnsafeMethod2(int* i); // 0x00562F08 } - diff --git a/Il2CppTests/TestExpectedResults/CustomAttributeData.cs b/Il2CppTests/TestExpectedResults/CustomAttributeData.cs index c22d702..e8d1683 100644 --- a/Il2CppTests/TestExpectedResults/CustomAttributeData.cs +++ b/Il2CppTests/TestExpectedResults/CustomAttributeData.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -35,7 +39,6 @@ using Il2CppTests.TestSources; [assembly: Example] // 0x000A526C [assembly: RuntimeCompatibility] // 0x000A526C -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -70,7 +73,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -81,46 +83,45 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x000A35A8 */ object[] args); // 0x003EC70C } -// Namespace: Il2CppTests.TestSources -public enum ExampleKind // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - FirstKind = 0, - SecondKind = 1, - ThirdKind = 2, - FourthKind = 3 + public enum ExampleKind // TypeDefIndex: 1811 + { + FirstKind = 0, + SecondKind = 1, + ThirdKind = 2, + FourthKind = 3 + } + + [AttributeUsage] // 0x000A5070 + public class ExampleAttribute : Attribute // TypeDefIndex: 1812 + { + // Fields + private ExampleKind kindValue; // 0x08 + private string noteValue; // 0x0C + private string[] arrayStrings; // 0x10 + private int[] arrayNumbers; // 0x14 + + // Properties + public ExampleKind Kind { get; } // 0x005612FC + public string[] Strings { get; } // 0x00561304 + public string Note { get; set; } // 0x0056130C 0x00561314 + public int[] Numbers { get; set; } // 0x0056131C 0x00561324 + + // Constructors + public ExampleAttribute(ExampleKind initKind, string[] initStrings); // 0x00561288 + public ExampleAttribute(ExampleKind initKind); // 0x005612B0 + public ExampleAttribute(); // 0x005612D8 + } + + [Example] // 0x000A5084 + public class Test // TypeDefIndex: 1813 + { + // Constructors + public Test(); // 0x00561330 + + // Methods + [Example] // 0x000A5208 + public void TestMethod([Example] /* 0x000A525C */ object arg); // 0x0056132C + } } - -// Namespace: Il2CppTests.TestSources -[AttributeUsage] // 0x000A5070 -public class ExampleAttribute : Attribute // TypeDefIndex: 1812 -{ - // Fields - private ExampleKind kindValue; // 0x08 - private string noteValue; // 0x0C - private string[] arrayStrings; // 0x10 - private int[] arrayNumbers; // 0x14 - - // Properties - public ExampleKind Kind { get; } // 0x005612FC - public string[] Strings { get; } // 0x00561304 - public string Note { get; set; } // 0x0056130C 0x00561314 - public int[] Numbers { get; set; } // 0x0056131C 0x00561324 - - // Constructors - public ExampleAttribute(ExampleKind initKind, string[] initStrings); // 0x00561288 - public ExampleAttribute(ExampleKind initKind); // 0x005612B0 - public ExampleAttribute(); // 0x005612D8 -} - -// Namespace: Il2CppTests.TestSources -[Example] // 0x000A5084 -public class Test // TypeDefIndex: 1813 -{ - // Constructors - public Test(); // 0x00561330 - - // Methods - [Example] // 0x000A5208 - public void TestMethod([Example] /* 0x000A525C */ object arg); // 0x0056132C -} - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs index df21243..a82b7fb 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -33,7 +37,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x000000018000C1C0 [assembly: RuntimeCompatibility] // 0x000000018000C1C0 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -68,7 +71,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -79,53 +81,54 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x00000001800090A0 */ object[] args); // 0x00000001802C64F0 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1813 +namespace Il2CppTests.TestSources { - // Fields - private int[] foo; // 0x10 - private int[] bar; // 0x20 - private float[][] arrayOfArrays; // 0x30 - private float[,] twoDimensionalArray; // 0x40 - private float[,,] threeDimensionalArray; // 0x50 - private unsafe int*[] arrayOfPointer; // 0x10 - private unsafe int** pointerToPointer; // 0x19 - private unsafe float*[][,,][] confusedElephant; // 0x8047EDC0 - - // Properties - public unsafe int* PointerProperty { get; set; } // 0x00000001801513A0 0x00000001801140B0 - public unsafe int* this[int i] { get; } // 0x00000001800EA8C0 - public unsafe int this[int* p] { get; } // 0x00000001800EA8C0 - public unsafe float* this[float* fp] { get; } // 0x00000001800EA8C0 - - // Nested types - private struct fixedSizeArrayStruct // TypeDefIndex: 1814 + internal class Test // TypeDefIndex: 1813 { // Fields - private unsafe fixed /* 0x000000018000C310 */ int fixedSizeArray[0]; // 0x10 - } - - public unsafe delegate void OnUnsafe(int* ud); // TypeDefIndex: 1816; 0x00000001803E0E50 - - public class NestedUnsafe // TypeDefIndex: 1817 - where T : struct - { + private int[] foo; // 0x10 + private int[] bar; // 0x20 + private float[][] arrayOfArrays; // 0x30 + private float[,] twoDimensionalArray; // 0x40 + private float[,,] threeDimensionalArray; // 0x50 + private unsafe int*[] arrayOfPointer; // 0x10 + private unsafe int** pointerToPointer; // 0x19 + private unsafe float*[][,,][] confusedElephant; // 0x8047EDC0 + + // Properties + public unsafe int* PointerProperty { get; set; } // 0x00000001801513A0 0x00000001801140B0 + public unsafe int* this[int i] { get; } // 0x00000001800EA8C0 + public unsafe int this[int* p] { get; } // 0x00000001800EA8C0 + public unsafe float* this[float* fp] { get; } // 0x00000001800EA8C0 + + // Nested types + private struct fixedSizeArrayStruct // TypeDefIndex: 1814 + { + // Fields + private unsafe fixed /* 0x000000018000C310 */ int fixedSizeArray[0]; // 0x10 + } + + public unsafe delegate void OnUnsafe(int* ud); // TypeDefIndex: 1816; 0x00000001803E0E50 + + public class NestedUnsafe // TypeDefIndex: 1817 + where T : struct + { + // Constructors + public NestedUnsafe(); + + // Methods + private unsafe T* UnsafeGenericReturn(); + private unsafe void UnsafeGenericMethod(T* pt); + } + // Constructors - public NestedUnsafe(); - + public unsafe Test(int* u); // 0x00000001803E1130 + // Methods - private unsafe T* UnsafeGenericReturn(); - private unsafe void UnsafeGenericMethod(T* pt); + public int[] FooMethod(int[][] bar); // 0x00000001803E10F0 + public int[,] BarMethod(int[,,] baz); // 0x00000001803E10A0 + public unsafe void UnsafeMethod(int* unsafePointerArgument); // 0x00000001800EA7B0 + public unsafe int* UnsafeReturnMethod(); // 0x00000001800EA8C0 + public unsafe int* UnsafeMethod2(int* i); // 0x000000018012FC60 } - - // Constructors - public unsafe Test(int* u); // 0x00000001803E1130 - - // Methods - public int[] FooMethod(int[][] bar); // 0x00000001803E10F0 - public int[,] BarMethod(int[,,] baz); // 0x00000001803E10A0 - public unsafe void UnsafeMethod(int* unsafePointerArgument); // 0x00000001800EA7B0 - public unsafe int* UnsafeReturnMethod(); // 0x00000001800EA8C0 - public unsafe int* UnsafeMethod2(int* i); // 0x000000018012FC60 } - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs index 1c71ebf..6581b6b 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -33,7 +37,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x1000D250 [assembly: RuntimeCompatibility] // 0x1000D250 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -68,7 +71,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -79,53 +81,54 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x10009AA0 */ object[] args); // 0x10261460 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1813 +namespace Il2CppTests.TestSources { - // Fields - private int[] foo; // 0x08 - private int[] bar; // 0x0C - private float[][] arrayOfArrays; // 0x10 - private float[,] twoDimensionalArray; // 0x14 - private float[,,] threeDimensionalArray; // 0x18 - private unsafe int*[] arrayOfPointer; // 0x1C - private unsafe int** pointerToPointer; // 0x20 - private unsafe float*[][,,][] confusedElephant; // 0x24 - - // Properties - public unsafe int* PointerProperty { get; set; } // 0x100EB040 0x100EB250 - public unsafe int* this[int i] { get; } // 0x100C5600 - public unsafe int this[int* p] { get; } // 0x100C5600 - public unsafe float* this[float* fp] { get; } // 0x100C5600 - - // Nested types - private struct fixedSizeArrayStruct // TypeDefIndex: 1814 + internal class Test // TypeDefIndex: 1813 { // Fields - private unsafe fixed /* 0x1000D370 */ int fixedSizeArray[0]; // 0x08 - } - - public unsafe delegate void OnUnsafe(int* ud); // TypeDefIndex: 1816; 0x1034DA60 - - public class NestedUnsafe // TypeDefIndex: 1817 - where T : struct - { + private int[] foo; // 0x08 + private int[] bar; // 0x0C + private float[][] arrayOfArrays; // 0x10 + private float[,] twoDimensionalArray; // 0x14 + private float[,,] threeDimensionalArray; // 0x18 + private unsafe int*[] arrayOfPointer; // 0x1C + private unsafe int** pointerToPointer; // 0x20 + private unsafe float*[][,,][] confusedElephant; // 0x24 + + // Properties + public unsafe int* PointerProperty { get; set; } // 0x100EB040 0x100EB250 + public unsafe int* this[int i] { get; } // 0x100C5600 + public unsafe int this[int* p] { get; } // 0x100C5600 + public unsafe float* this[float* fp] { get; } // 0x100C5600 + + // Nested types + private struct fixedSizeArrayStruct // TypeDefIndex: 1814 + { + // Fields + private unsafe fixed /* 0x1000D370 */ int fixedSizeArray[0]; // 0x08 + } + + public unsafe delegate void OnUnsafe(int* ud); // TypeDefIndex: 1816; 0x1034DA60 + + public class NestedUnsafe // TypeDefIndex: 1817 + where T : struct + { + // Constructors + public NestedUnsafe(); + + // Methods + private unsafe T* UnsafeGenericReturn(); + private unsafe void UnsafeGenericMethod(T* pt); + } + // Constructors - public NestedUnsafe(); - + public unsafe Test(int* u); // 0x1034DD10 + // Methods - private unsafe T* UnsafeGenericReturn(); - private unsafe void UnsafeGenericMethod(T* pt); + public int[] FooMethod(int[][] bar); // 0x1034DCE0 + public int[,] BarMethod(int[,,] baz); // 0x1034DC90 + public unsafe void UnsafeMethod(int* unsafePointerArgument); // 0x100C5530 + public unsafe int* UnsafeReturnMethod(); // 0x100C5600 + public unsafe int* UnsafeMethod2(int* i); // 0x10102390 } - - // Constructors - public unsafe Test(int* u); // 0x1034DD10 - - // Methods - public int[] FooMethod(int[][] bar); // 0x1034DCE0 - public int[,] BarMethod(int[,,] baz); // 0x1034DC90 - public unsafe void UnsafeMethod(int* unsafePointerArgument); // 0x100C5530 - public unsafe int* UnsafeReturnMethod(); // 0x100C5600 - public unsafe int* UnsafeMethod2(int* i); // 0x10102390 } - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x64.cs index 6e04a76..a098dbd 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x64.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -35,7 +39,6 @@ using Il2CppTests.TestSources; [assembly: Example] // 0x000000018000C4B0 [assembly: RuntimeCompatibility] // 0x000000018000C4B0 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -70,7 +73,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -81,46 +83,45 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x0000000180009150 */ object[] args); // 0x00000001802C64F0 } -// Namespace: Il2CppTests.TestSources -public enum ExampleKind // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - FirstKind = 0, - SecondKind = 1, - ThirdKind = 2, - FourthKind = 3 + public enum ExampleKind // TypeDefIndex: 1811 + { + FirstKind = 0, + SecondKind = 1, + ThirdKind = 2, + FourthKind = 3 + } + + [AttributeUsage] // 0x000000018000C5B0 + public class ExampleAttribute : Attribute // TypeDefIndex: 1812 + { + // Fields + private ExampleKind kindValue; // 0x10 + private string noteValue; // 0x20 + private string[] arrayStrings; // 0x29 + private int[] arrayNumbers; // 0x8047D628 + + // Properties + public ExampleKind Kind { get; } // 0x00000001800ECD10 + public string[] Strings { get; } // 0x00000001800EAEB0 + public string Note { get; set; } // 0x00000001803E0EE0 0x00000001800EAEE0 + public int[] Numbers { get; set; } // 0x00000001803E0EF0 0x000000018015B760 + + // Constructors + public ExampleAttribute(ExampleKind initKind, string[] initStrings); // 0x00000001803E0E70 + public ExampleAttribute(ExampleKind initKind); // 0x00000001803E0EB0 + public ExampleAttribute(); // 0x00000001803E0E50 + } + + [Example] // 0x000000018000C5D0 + public class Test // TypeDefIndex: 1813 + { + // Constructors + public Test(); // 0x00000001800E2000 + + // Methods + [Example] // 0x000000018000C710 + public void TestMethod([Example] /* 0x000000018000C750 */ object arg); // 0x00000001800EA7B0 + } } - -// Namespace: Il2CppTests.TestSources -[AttributeUsage] // 0x000000018000C5B0 -public class ExampleAttribute : Attribute // TypeDefIndex: 1812 -{ - // Fields - private ExampleKind kindValue; // 0x10 - private string noteValue; // 0x20 - private string[] arrayStrings; // 0x29 - private int[] arrayNumbers; // 0x8047D628 - - // Properties - public ExampleKind Kind { get; } // 0x00000001800ECD10 - public string[] Strings { get; } // 0x00000001800EAEB0 - public string Note { get; set; } // 0x00000001803E0EE0 0x00000001800EAEE0 - public int[] Numbers { get; set; } // 0x00000001803E0EF0 0x000000018015B760 - - // Constructors - public ExampleAttribute(ExampleKind initKind, string[] initStrings); // 0x00000001803E0E70 - public ExampleAttribute(ExampleKind initKind); // 0x00000001803E0EB0 - public ExampleAttribute(); // 0x00000001803E0E50 -} - -// Namespace: Il2CppTests.TestSources -[Example] // 0x000000018000C5D0 -public class Test // TypeDefIndex: 1813 -{ - // Constructors - public Test(); // 0x00000001800E2000 - - // Methods - [Example] // 0x000000018000C710 - public void TestMethod([Example] /* 0x000000018000C750 */ object arg); // 0x00000001800EA7B0 -} - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x86.cs index 0b5ec25..56898ab 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-CustomAttributeData-x86.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -35,7 +39,6 @@ using Il2CppTests.TestSources; [assembly: Example] // 0x1000D360 [assembly: RuntimeCompatibility] // 0x1000D360 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -70,7 +73,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -81,46 +83,45 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x10009B80 */ object[] args); // 0x10261460 } -// Namespace: Il2CppTests.TestSources -public enum ExampleKind // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - FirstKind = 0, - SecondKind = 1, - ThirdKind = 2, - FourthKind = 3 + public enum ExampleKind // TypeDefIndex: 1811 + { + FirstKind = 0, + SecondKind = 1, + ThirdKind = 2, + FourthKind = 3 + } + + [AttributeUsage] // 0x1000D430 + public class ExampleAttribute : Attribute // TypeDefIndex: 1812 + { + // Fields + private ExampleKind kindValue; // 0x08 + private string noteValue; // 0x0C + private string[] arrayStrings; // 0x10 + private int[] arrayNumbers; // 0x14 + + // Properties + public ExampleKind Kind { get; } // 0x100BF0C0 + public string[] Strings { get; } // 0x100BFC20 + public string Note { get; set; } // 0x100C5B30 0x100C5B50 + public int[] Numbers { get; set; } // 0x100EF0C0 0x10127B00 + + // Constructors + public ExampleAttribute(ExampleKind initKind, string[] initStrings); // 0x1034DA90 + public ExampleAttribute(ExampleKind initKind); // 0x1034DAC0 + public ExampleAttribute(); // 0x1034DA60 + } + + [Example] // 0x1000D450 + public class Test // TypeDefIndex: 1813 + { + // Constructors + public Test(); // 0x100BF000 + + // Methods + [Example] // 0x1000D550 + public void TestMethod([Example] /* 0x1000D590 */ object arg); // 0x100C5530 + } } - -// Namespace: Il2CppTests.TestSources -[AttributeUsage] // 0x1000D430 -public class ExampleAttribute : Attribute // TypeDefIndex: 1812 -{ - // Fields - private ExampleKind kindValue; // 0x08 - private string noteValue; // 0x0C - private string[] arrayStrings; // 0x10 - private int[] arrayNumbers; // 0x14 - - // Properties - public ExampleKind Kind { get; } // 0x100BF0C0 - public string[] Strings { get; } // 0x100BFC20 - public string Note { get; set; } // 0x100C5B30 0x100C5B50 - public int[] Numbers { get; set; } // 0x100EF0C0 0x10127B00 - - // Constructors - public ExampleAttribute(ExampleKind initKind, string[] initStrings); // 0x1034DA90 - public ExampleAttribute(ExampleKind initKind); // 0x1034DAC0 - public ExampleAttribute(); // 0x1034DA60 -} - -// Namespace: Il2CppTests.TestSources -[Example] // 0x1000D450 -public class Test // TypeDefIndex: 1813 -{ - // Constructors - public Test(); // 0x100BF000 - - // Methods - [Example] // 0x1000D550 - public void TestMethod([Example] /* 0x1000D590 */ object arg); // 0x100C5530 -} - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x64.cs index 4a41c92..dcbf84b 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x64.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; @@ -34,7 +38,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x000000018000C150 [assembly: RuntimeCompatibility] // 0x000000018000C150 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -69,7 +72,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -80,75 +82,71 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x00000001800090D0 */ object[] args); // 0x00000001802C64F0 } -// Namespace: Il2CppTests.TestSources -public class Base // TypeDefIndex: 1815 +namespace Il2CppTests.TestSources { - // Constructors - public Base(); -} - -// Namespace: Il2CppTests.TestSources -public class Derived : Base // TypeDefIndex: 1816 -{ - // Fields - public G> F; // 0x00 - - // Nested types - public class Nested // TypeDefIndex: 1817 + public class Base // TypeDefIndex: 1815 { // Constructors - public Nested(); + public Base(); } - // Constructors - public Derived(); + public class Derived : Base // TypeDefIndex: 1816 + { + // Fields + public G> F; // 0x00 + + // Nested types + public class Nested // TypeDefIndex: 1817 + { + // Constructors + public Nested(); + } + + // Constructors + public Derived(); + } + + public class G // TypeDefIndex: 1818 + { + // Constructors + public G(); + } + + internal class Test // TypeDefIndex: 1819 + { + // Constructors + public Test(); // 0x00000001800E2000 + + // Methods + public void GenericTypesTest(); // 0x00000001803E0ED0 + } + + internal class ConstrainedValueType // TypeDefIndex: 1820 + where V : struct + { + // Constructors + public ConstrainedValueType(); + } + + internal class ConstrainedRefType // TypeDefIndex: 1821 + where R : class + { + // Constructors + public ConstrainedRefType(); + + // Methods + [NullableContext] // 0x0000000180009190 + public void ConstrainedMethodNotNull(N notnullArgument, R bar); + public void ConstrainedUnmanaged(U unmanagedArgument) + where U : struct; + public void MultipleConstraintsMethod(C constrained) + where C : R, new(); + public void MultipleArgumentsMultipleConstraintsMethod(B baseArgument, I interfaceArgument) + where B : Derived, new() + where I : Test, IDisposable, IEnumerable; + public void DelegateConstraint(D del) + where D : Delegate; + public void EnumConstraint(E enumeration) + where E : Enum; + } } - -// Namespace: Il2CppTests.TestSources -public class G // TypeDefIndex: 1818 -{ - // Constructors - public G(); -} - -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1819 -{ - // Constructors - public Test(); // 0x00000001800E2000 - - // Methods - public void GenericTypesTest(); // 0x00000001803E0ED0 -} - -// Namespace: Il2CppTests.TestSources -internal class ConstrainedValueType // TypeDefIndex: 1820 - where V : struct -{ - // Constructors - public ConstrainedValueType(); -} - -// Namespace: Il2CppTests.TestSources -internal class ConstrainedRefType // TypeDefIndex: 1821 - where R : class -{ - // Constructors - public ConstrainedRefType(); - - // Methods - [NullableContext] // 0x0000000180009190 - public void ConstrainedMethodNotNull(N notnullArgument, R bar); - public void ConstrainedUnmanaged(U unmanagedArgument) - where U : struct; - public void MultipleConstraintsMethod(C constrained) - where C : R, new(); - public void MultipleArgumentsMultipleConstraintsMethod(B baseArgument, I interfaceArgument) - where B : Derived, new() - where I : Test, IDisposable, IEnumerable; - public void DelegateConstraint(D del) - where D : Delegate; - public void EnumConstraint(E enumeration) - where E : Enum; -} - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x86.cs index 1db8072..cfca02b 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-GenericTypes-x86.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; @@ -34,7 +38,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x1000D1B0 [assembly: RuntimeCompatibility] // 0x1000D1B0 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -69,7 +72,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -80,75 +82,71 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x10009B20 */ object[] args); // 0x10261460 } -// Namespace: Il2CppTests.TestSources -public class Base // TypeDefIndex: 1815 +namespace Il2CppTests.TestSources { - // Constructors - public Base(); -} - -// Namespace: Il2CppTests.TestSources -public class Derived : Base // TypeDefIndex: 1816 -{ - // Fields - public G> F; // 0x00 - - // Nested types - public class Nested // TypeDefIndex: 1817 + public class Base // TypeDefIndex: 1815 { // Constructors - public Nested(); + public Base(); } - // Constructors - public Derived(); + public class Derived : Base // TypeDefIndex: 1816 + { + // Fields + public G> F; // 0x00 + + // Nested types + public class Nested // TypeDefIndex: 1817 + { + // Constructors + public Nested(); + } + + // Constructors + public Derived(); + } + + public class G // TypeDefIndex: 1818 + { + // Constructors + public G(); + } + + internal class Test // TypeDefIndex: 1819 + { + // Constructors + public Test(); // 0x100BF000 + + // Methods + public void GenericTypesTest(); // 0x1034DB10 + } + + internal class ConstrainedValueType // TypeDefIndex: 1820 + where V : struct + { + // Constructors + public ConstrainedValueType(); + } + + internal class ConstrainedRefType // TypeDefIndex: 1821 + where R : class + { + // Constructors + public ConstrainedRefType(); + + // Methods + [NullableContext] // 0x10009AA0 + public void ConstrainedMethodNotNull(N notnullArgument, R bar); + public void ConstrainedUnmanaged(U unmanagedArgument) + where U : struct; + public void MultipleConstraintsMethod(C constrained) + where C : R, new(); + public void MultipleArgumentsMultipleConstraintsMethod(B baseArgument, I interfaceArgument) + where B : Derived, new() + where I : Test, IDisposable, IEnumerable; + public void DelegateConstraint(D del) + where D : Delegate; + public void EnumConstraint(E enumeration) + where E : Enum; + } } - -// Namespace: Il2CppTests.TestSources -public class G // TypeDefIndex: 1818 -{ - // Constructors - public G(); -} - -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1819 -{ - // Constructors - public Test(); // 0x100BF000 - - // Methods - public void GenericTypesTest(); // 0x1034DB10 -} - -// Namespace: Il2CppTests.TestSources -internal class ConstrainedValueType // TypeDefIndex: 1820 - where V : struct -{ - // Constructors - public ConstrainedValueType(); -} - -// Namespace: Il2CppTests.TestSources -internal class ConstrainedRefType // TypeDefIndex: 1821 - where R : class -{ - // Constructors - public ConstrainedRefType(); - - // Methods - [NullableContext] // 0x10009AA0 - public void ConstrainedMethodNotNull(N notnullArgument, R bar); - public void ConstrainedUnmanaged(U unmanagedArgument) - where U : struct; - public void MultipleConstraintsMethod(C constrained) - where C : R, new(); - public void MultipleArgumentsMultipleConstraintsMethod(B baseArgument, I interfaceArgument) - where B : Derived, new() - where I : Test, IDisposable, IEnumerable; - public void DelegateConstraint(D del) - where D : Delegate; - public void EnumConstraint(E enumeration) - where E : Enum; -} - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x64.cs index 516d8df..b37f9cd 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x64.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -34,7 +38,6 @@ using System.Text; [assembly: Debuggable] // 0x000000018000CAF0 [assembly: RuntimeCompatibility] // 0x000000018000CAF0 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -69,7 +72,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -80,122 +82,112 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x0000000180009C10 */ object[] args); // 0x00000001802C64F0 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - // Constructors - public Test(); // 0x00000001800E2000 + internal class Test // TypeDefIndex: 1811 + { + // Constructors + public Test(); // 0x00000001800E2000 + + // Methods + public virtual void VirtualMethod(); // 0x00000001800EA7B0 + public double ValueTypeReturnMethod(); // 0x00000001803E0EC0 + public StringBuilder ReferenceTypeReturnMethod(); // 0x00000001803E0E70 + } - // Methods - public virtual void VirtualMethod(); // 0x00000001800EA7B0 - public double ValueTypeReturnMethod(); // 0x00000001803E0EC0 - public StringBuilder ReferenceTypeReturnMethod(); // 0x00000001803E0E70 + public static class TestExtension // TypeDefIndex: 1812 + { + // Methods + public static double DivideByXExtension(int a, float x); // 0x00000001803E0E50 + } + + internal abstract class TestAbstract // TypeDefIndex: 1813 + { + // Constructors + protected TestAbstract(); // 0x00000001800E2000 + + // Methods + public abstract void AbstractMethod(); + } + + internal class TestOverride : Test // TypeDefIndex: 1814 + { + // Constructors + public TestOverride(); // 0x00000001800E2000 + + // Methods + public override void VirtualMethod(); // 0x00000001800EA7B0 + } + + internal class TestHideVirtual : Test // TypeDefIndex: 1815 + { + // Constructors + public TestHideVirtual(); // 0x00000001800E2000 + + // Methods + public new void VirtualMethod(); // 0x00000001800EA7B0 + } + + internal class TestHideOverride : TestOverride // TypeDefIndex: 1816 + { + // Constructors + public TestHideOverride(); // 0x00000001800E2000 + + // Methods + public new void VirtualMethod(); // 0x00000001800EA7B0 + } + + internal class TestOverrideAbstract : TestAbstract // TypeDefIndex: 1817 + { + // Constructors + public TestOverrideAbstract(); // 0x00000001800E2000 + + // Methods + public override void AbstractMethod(); // 0x00000001800EA7B0 + } + + internal class TestHideAbstractOverride : TestOverrideAbstract // TypeDefIndex: 1818 + { + // Constructors + public TestHideAbstractOverride(); // 0x00000001800E2000 + + // Methods + public new void AbstractMethod(); // 0x00000001800EA7B0 + } + + internal class TestHideVirtualAndNewVirtual : Test // TypeDefIndex: 1819 + { + // Constructors + public TestHideVirtualAndNewVirtual(); // 0x00000001800E2000 + + // Methods + public virtual new void VirtualMethod(); // 0x00000001800EA7B0 + } + + internal class TestHideOverrideAndNewVirtual : TestOverride // TypeDefIndex: 1820 + { + // Constructors + public TestHideOverrideAndNewVirtual(); // 0x00000001800E2000 + + // Methods + public virtual new void VirtualMethod(); // 0x00000001800EA7B0 + } + + internal abstract class TestAbstractNew : TestOverride // TypeDefIndex: 1821 + { + // Constructors + protected TestAbstractNew(); // 0x00000001800E2000 + + // Methods + public abstract new void VirtualMethod(); + } + + internal class TestNewNonVirtualMethod : Test // TypeDefIndex: 1822 + { + // Constructors + public TestNewNonVirtualMethod(); // 0x00000001800E2000 + + // Methods + public int ValueTypeReturnMethod(); // 0x0000000180119A50 + } } - -// Namespace: Il2CppTests.TestSources -public static class TestExtension // TypeDefIndex: 1812 -{ - // Methods - public static double DivideByXExtension(int a, float x); // 0x00000001803E0E50 -} - -// Namespace: Il2CppTests.TestSources -internal abstract class TestAbstract // TypeDefIndex: 1813 -{ - // Constructors - protected TestAbstract(); // 0x00000001800E2000 - - // Methods - public abstract void AbstractMethod(); -} - -// Namespace: Il2CppTests.TestSources -internal class TestOverride : Test // TypeDefIndex: 1814 -{ - // Constructors - public TestOverride(); // 0x00000001800E2000 - - // Methods - public override void VirtualMethod(); // 0x00000001800EA7B0 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideVirtual : Test // TypeDefIndex: 1815 -{ - // Constructors - public TestHideVirtual(); // 0x00000001800E2000 - - // Methods - public new void VirtualMethod(); // 0x00000001800EA7B0 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideOverride : TestOverride // TypeDefIndex: 1816 -{ - // Constructors - public TestHideOverride(); // 0x00000001800E2000 - - // Methods - public new void VirtualMethod(); // 0x00000001800EA7B0 -} - -// Namespace: Il2CppTests.TestSources -internal class TestOverrideAbstract : TestAbstract // TypeDefIndex: 1817 -{ - // Constructors - public TestOverrideAbstract(); // 0x00000001800E2000 - - // Methods - public override void AbstractMethod(); // 0x00000001800EA7B0 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideAbstractOverride : TestOverrideAbstract // TypeDefIndex: 1818 -{ - // Constructors - public TestHideAbstractOverride(); // 0x00000001800E2000 - - // Methods - public new void AbstractMethod(); // 0x00000001800EA7B0 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideVirtualAndNewVirtual : Test // TypeDefIndex: 1819 -{ - // Constructors - public TestHideVirtualAndNewVirtual(); // 0x00000001800E2000 - - // Methods - public virtual new void VirtualMethod(); // 0x00000001800EA7B0 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideOverrideAndNewVirtual : TestOverride // TypeDefIndex: 1820 -{ - // Constructors - public TestHideOverrideAndNewVirtual(); // 0x00000001800E2000 - - // Methods - public virtual new void VirtualMethod(); // 0x00000001800EA7B0 -} - -// Namespace: Il2CppTests.TestSources -internal abstract class TestAbstractNew : TestOverride // TypeDefIndex: 1821 -{ - // Constructors - protected TestAbstractNew(); // 0x00000001800E2000 - - // Methods - public abstract new void VirtualMethod(); -} - -// Namespace: Il2CppTests.TestSources -internal class TestNewNonVirtualMethod : Test // TypeDefIndex: 1822 -{ - // Constructors - public TestNewNonVirtualMethod(); // 0x00000001800E2000 - - // Methods - public int ValueTypeReturnMethod(); // 0x0000000180119A50 -} - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x86.cs index e2e49d9..1604e7b 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Methods-x86.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -34,7 +38,6 @@ using System.Text; [assembly: Debuggable] // 0x1000DC90 [assembly: RuntimeCompatibility] // 0x1000DC90 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -69,7 +72,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -80,122 +82,112 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x1000A660 */ object[] args); // 0x10261460 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - // Constructors - public Test(); // 0x100BF000 + internal class Test // TypeDefIndex: 1811 + { + // Constructors + public Test(); // 0x100BF000 + + // Methods + public virtual void VirtualMethod(); // 0x100C5530 + public double ValueTypeReturnMethod(); // 0x1034DAD0 + public StringBuilder ReferenceTypeReturnMethod(); // 0x1034DA90 + } - // Methods - public virtual void VirtualMethod(); // 0x100C5530 - public double ValueTypeReturnMethod(); // 0x1034DAD0 - public StringBuilder ReferenceTypeReturnMethod(); // 0x1034DA90 + public static class TestExtension // TypeDefIndex: 1812 + { + // Methods + public static double DivideByXExtension(int a, float x); // 0x1034DA60 + } + + internal abstract class TestAbstract // TypeDefIndex: 1813 + { + // Constructors + protected TestAbstract(); // 0x100BF000 + + // Methods + public abstract void AbstractMethod(); + } + + internal class TestOverride : Test // TypeDefIndex: 1814 + { + // Constructors + public TestOverride(); // 0x100BF000 + + // Methods + public override void VirtualMethod(); // 0x100C5530 + } + + internal class TestHideVirtual : Test // TypeDefIndex: 1815 + { + // Constructors + public TestHideVirtual(); // 0x100BF000 + + // Methods + public new void VirtualMethod(); // 0x100C5530 + } + + internal class TestHideOverride : TestOverride // TypeDefIndex: 1816 + { + // Constructors + public TestHideOverride(); // 0x100BF000 + + // Methods + public new void VirtualMethod(); // 0x100C5530 + } + + internal class TestOverrideAbstract : TestAbstract // TypeDefIndex: 1817 + { + // Constructors + public TestOverrideAbstract(); // 0x100BF000 + + // Methods + public override void AbstractMethod(); // 0x100C5530 + } + + internal class TestHideAbstractOverride : TestOverrideAbstract // TypeDefIndex: 1818 + { + // Constructors + public TestHideAbstractOverride(); // 0x100BF000 + + // Methods + public new void AbstractMethod(); // 0x100C5530 + } + + internal class TestHideVirtualAndNewVirtual : Test // TypeDefIndex: 1819 + { + // Constructors + public TestHideVirtualAndNewVirtual(); // 0x100BF000 + + // Methods + public virtual new void VirtualMethod(); // 0x100C5530 + } + + internal class TestHideOverrideAndNewVirtual : TestOverride // TypeDefIndex: 1820 + { + // Constructors + public TestHideOverrideAndNewVirtual(); // 0x100BF000 + + // Methods + public virtual new void VirtualMethod(); // 0x100C5530 + } + + internal abstract class TestAbstractNew : TestOverride // TypeDefIndex: 1821 + { + // Constructors + protected TestAbstractNew(); // 0x100BF000 + + // Methods + public abstract new void VirtualMethod(); + } + + internal class TestNewNonVirtualMethod : Test // TypeDefIndex: 1822 + { + // Constructors + public TestNewNonVirtualMethod(); // 0x100BF000 + + // Methods + public int ValueTypeReturnMethod(); // 0x100EF660 + } } - -// Namespace: Il2CppTests.TestSources -public static class TestExtension // TypeDefIndex: 1812 -{ - // Methods - public static double DivideByXExtension(int a, float x); // 0x1034DA60 -} - -// Namespace: Il2CppTests.TestSources -internal abstract class TestAbstract // TypeDefIndex: 1813 -{ - // Constructors - protected TestAbstract(); // 0x100BF000 - - // Methods - public abstract void AbstractMethod(); -} - -// Namespace: Il2CppTests.TestSources -internal class TestOverride : Test // TypeDefIndex: 1814 -{ - // Constructors - public TestOverride(); // 0x100BF000 - - // Methods - public override void VirtualMethod(); // 0x100C5530 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideVirtual : Test // TypeDefIndex: 1815 -{ - // Constructors - public TestHideVirtual(); // 0x100BF000 - - // Methods - public new void VirtualMethod(); // 0x100C5530 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideOverride : TestOverride // TypeDefIndex: 1816 -{ - // Constructors - public TestHideOverride(); // 0x100BF000 - - // Methods - public new void VirtualMethod(); // 0x100C5530 -} - -// Namespace: Il2CppTests.TestSources -internal class TestOverrideAbstract : TestAbstract // TypeDefIndex: 1817 -{ - // Constructors - public TestOverrideAbstract(); // 0x100BF000 - - // Methods - public override void AbstractMethod(); // 0x100C5530 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideAbstractOverride : TestOverrideAbstract // TypeDefIndex: 1818 -{ - // Constructors - public TestHideAbstractOverride(); // 0x100BF000 - - // Methods - public new void AbstractMethod(); // 0x100C5530 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideVirtualAndNewVirtual : Test // TypeDefIndex: 1819 -{ - // Constructors - public TestHideVirtualAndNewVirtual(); // 0x100BF000 - - // Methods - public virtual new void VirtualMethod(); // 0x100C5530 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideOverrideAndNewVirtual : TestOverride // TypeDefIndex: 1820 -{ - // Constructors - public TestHideOverrideAndNewVirtual(); // 0x100BF000 - - // Methods - public virtual new void VirtualMethod(); // 0x100C5530 -} - -// Namespace: Il2CppTests.TestSources -internal abstract class TestAbstractNew : TestOverride // TypeDefIndex: 1821 -{ - // Constructors - protected TestAbstractNew(); // 0x100BF000 - - // Methods - public abstract new void VirtualMethod(); -} - -// Namespace: Il2CppTests.TestSources -internal class TestNewNonVirtualMethod : Test // TypeDefIndex: 1822 -{ - // Constructors - public TestNewNonVirtualMethod(); // 0x100BF000 - - // Methods - public int ValueTypeReturnMethod(); // 0x100EF660 -} - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs index 5217040..518dce3 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -33,7 +37,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x000000018000C0D0 [assembly: RuntimeCompatibility] // 0x000000018000C0D0 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -68,7 +71,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -79,21 +81,22 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x00000001800091F0 */ object[] args); // 0x00000001802C64F0 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - // Properties - private int prop1 { get; set; } // 0x00000001800ECD10 0x0000000180143AD0 - protected int prop2 { get; private set; } // 0x0000000180156360 0x00000001803E0F20 - protected int prop3 { private get; set; } // 0x00000001800ED060 0x000000018019DD90 - public static int prop4 { private get; set; } // 0x00000001803E0EE0 0x00000001803E0F30 - public string this[int i] { get; } // 0x00000001803E0E80 - public string this[double d] { get; } // 0x00000001803E0E50 - public string this[long l] { set; } // 0x00000001800EA7B0 - public string this[float f] { get; set; } // 0x00000001803E0EB0 0x00000001800EA7B0 - public bool this[int i, int j] { get; } // 0x000000018010E420 - - // Constructors - public Test(); // 0x00000001800E2000 + internal class Test // TypeDefIndex: 1811 + { + // Properties + private int prop1 { get; set; } // 0x00000001800ECD10 0x0000000180143AD0 + protected int prop2 { get; private set; } // 0x0000000180156360 0x00000001803E0F20 + protected int prop3 { private get; set; } // 0x00000001800ED060 0x000000018019DD90 + public static int prop4 { private get; set; } // 0x00000001803E0EE0 0x00000001803E0F30 + public string this[int i] { get; } // 0x00000001803E0E80 + public string this[double d] { get; } // 0x00000001803E0E50 + public string this[long l] { set; } // 0x00000001800EA7B0 + public string this[float f] { get; set; } // 0x00000001803E0EB0 0x00000001800EA7B0 + public bool this[int i, int j] { get; } // 0x000000018010E420 + + // Constructors + public Test(); // 0x00000001800E2000 + } } - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs index 983837b..7d60199 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -33,7 +37,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x1000D0F0 [assembly: RuntimeCompatibility] // 0x1000D0F0 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -68,7 +71,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -79,21 +81,22 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x10009AD0 */ object[] args); // 0x10261460 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - // Properties - private int prop1 { get; set; } // 0x100BF0C0 0x100EB270 - protected int prop2 { get; private set; } // 0x100C5B30 0x100C5B50 - protected int prop3 { private get; set; } // 0x100BFC20 0x100C5B40 - public static int prop4 { private get; set; } // 0x1034DAF0 0x1034DB20 - public string this[int i] { get; } // 0x1034DA90 - public string this[double d] { get; } // 0x1034DA60 - public string this[long l] { set; } // 0x100C5530 - public string this[float f] { get; set; } // 0x1034DAC0 0x100C5530 - public bool this[int i, int j] { get; } // 0x100E5880 - - // Constructors - public Test(); // 0x100BF000 + internal class Test // TypeDefIndex: 1811 + { + // Properties + private int prop1 { get; set; } // 0x100BF0C0 0x100EB270 + protected int prop2 { get; private set; } // 0x100C5B30 0x100C5B50 + protected int prop3 { private get; set; } // 0x100BFC20 0x100C5B40 + public static int prop4 { private get; set; } // 0x1034DAF0 0x1034DB20 + public string this[int i] { get; } // 0x1034DA90 + public string this[double d] { get; } // 0x1034DA60 + public string this[long l] { set; } // 0x100C5530 + public string this[float f] { get; set; } // 0x1034DAC0 0x100C5530 + public bool this[int i, int j] { get; } // 0x100E5880 + + // Constructors + public Test(); // 0x100BF000 + } } - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs index bb32aaf..f5ba1ae 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -33,7 +37,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x000000018000CAF0 [assembly: RuntimeCompatibility] // 0x000000018000CAF0 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -68,7 +71,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -79,26 +81,26 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x0000000180009C10 */ object[] args); // 0x00000001802C64F0 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - // Fields - private float floatField; // 0x10 + internal class Test // TypeDefIndex: 1811 + { + // Fields + private float floatField; // 0x10 + + // Constructors + public Test(); // 0x00000001800E2000 + + // Methods + public void MethodWithRefParameters(int a, ref int b, int c, ref int d); // 0x00000001800EA7B0 + public void MethodWithInRefOut(in int a, ref int b, out int c); // 0x00000001803E0E50 + public ref float MethodWithRefReturnType(); // 0x00000001803E0E60 + } - // Constructors - public Test(); // 0x00000001800E2000 - - // Methods - public void MethodWithRefParameters(int a, ref int b, int c, ref int d); // 0x00000001800EA7B0 - public void MethodWithInRefOut(in int a, ref int b, out int c); // 0x00000001803E0E50 - public ref float MethodWithRefReturnType(); // 0x00000001803E0E60 + [Obsolete] // 0x000000018000CB80 + public struct RefStruct // TypeDefIndex: 1812 + { + // Fields + private int structField1; // 0x10 + } } - -// Namespace: Il2CppTests.TestSources -[Obsolete] // 0x000000018000CB80 -public struct RefStruct // TypeDefIndex: 1812 -{ - // Fields - private int structField1; // 0x10 -} - diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs index 5c33029..bfacf5c 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -33,7 +37,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x1000DC90 [assembly: RuntimeCompatibility] // 0x1000DC90 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -68,7 +71,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -79,26 +81,26 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x1000A660 */ object[] args); // 0x10261460 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - // Fields - private float floatField; // 0x08 + internal class Test // TypeDefIndex: 1811 + { + // Fields + private float floatField; // 0x08 + + // Constructors + public Test(); // 0x100BF000 + + // Methods + public void MethodWithRefParameters(int a, ref int b, int c, ref int d); // 0x100C5530 + public void MethodWithInRefOut(in int a, ref int b, out int c); // 0x1034DA60 + public ref float MethodWithRefReturnType(); // 0x1034DA70 + } - // Constructors - public Test(); // 0x100BF000 - - // Methods - public void MethodWithRefParameters(int a, ref int b, int c, ref int d); // 0x100C5530 - public void MethodWithInRefOut(in int a, ref int b, out int c); // 0x1034DA60 - public ref float MethodWithRefReturnType(); // 0x1034DA70 + [Obsolete] // 0x1000DD10 + public struct RefStruct // TypeDefIndex: 1812 + { + // Fields + private int structField1; // 0x08 + } } - -// Namespace: Il2CppTests.TestSources -[Obsolete] // 0x1000DD10 -public struct RefStruct // TypeDefIndex: 1812 -{ - // Fields - private int structField1; // 0x08 -} - diff --git a/Il2CppTests/TestExpectedResults/GenericTypes.cs b/Il2CppTests/TestExpectedResults/GenericTypes.cs index 9a0d1ff..87321eb 100644 --- a/Il2CppTests/TestExpectedResults/GenericTypes.cs +++ b/Il2CppTests/TestExpectedResults/GenericTypes.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; @@ -34,7 +38,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x000A5754 [assembly: RuntimeCompatibility] // 0x000A5754 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -69,7 +72,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -80,75 +82,71 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x000A3B78 */ object[] args); // 0x003ECCF4 } -// Namespace: Il2CppTests.TestSources -public class Base // TypeDefIndex: 1815 +namespace Il2CppTests.TestSources { - // Constructors - public Base(); -} - -// Namespace: Il2CppTests.TestSources -public class Derived : Base // TypeDefIndex: 1816 -{ - // Fields - public G> F; // 0x00 - - // Nested types - public class Nested // TypeDefIndex: 1817 + public class Base // TypeDefIndex: 1815 { // Constructors - public Nested(); + public Base(); } - // Constructors - public Derived(); + public class Derived : Base // TypeDefIndex: 1816 + { + // Fields + public G> F; // 0x00 + + // Nested types + public class Nested // TypeDefIndex: 1817 + { + // Constructors + public Nested(); + } + + // Constructors + public Derived(); + } + + public class G // TypeDefIndex: 1818 + { + // Constructors + public G(); + } + + internal class Test // TypeDefIndex: 1819 + { + // Constructors + public Test(); // 0x00561A3C + + // Methods + public void GenericTypesTest(); // 0x00561880 + } + + internal class ConstrainedValueType // TypeDefIndex: 1820 + where V : struct + { + // Constructors + public ConstrainedValueType(); + } + + internal class ConstrainedRefType // TypeDefIndex: 1821 + where R : class + { + // Constructors + public ConstrainedRefType(); + + // Methods + [NullableContext] // 0x000A5740 + public void ConstrainedMethodNotNull(N notnullArgument, R bar); + public void ConstrainedUnmanaged(U unmanagedArgument) + where U : struct; + public void MultipleConstraintsMethod(C constrained) + where C : R, new(); + public void MultipleArgumentsMultipleConstraintsMethod(B baseArgument, I interfaceArgument) + where B : Derived, new() + where I : Test, IDisposable, IEnumerable; + public void DelegateConstraint(D del) + where D : Delegate; + public void EnumConstraint(E enumeration) + where E : Enum; + } } - -// Namespace: Il2CppTests.TestSources -public class G // TypeDefIndex: 1818 -{ - // Constructors - public G(); -} - -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1819 -{ - // Constructors - public Test(); // 0x00561A3C - - // Methods - public void GenericTypesTest(); // 0x00561880 -} - -// Namespace: Il2CppTests.TestSources -internal class ConstrainedValueType // TypeDefIndex: 1820 - where V : struct -{ - // Constructors - public ConstrainedValueType(); -} - -// Namespace: Il2CppTests.TestSources -internal class ConstrainedRefType // TypeDefIndex: 1821 - where R : class -{ - // Constructors - public ConstrainedRefType(); - - // Methods - [NullableContext] // 0x000A5740 - public void ConstrainedMethodNotNull(N notnullArgument, R bar); - public void ConstrainedUnmanaged(U unmanagedArgument) - where U : struct; - public void MultipleConstraintsMethod(C constrained) - where C : R, new(); - public void MultipleArgumentsMultipleConstraintsMethod(B baseArgument, I interfaceArgument) - where B : Derived, new() - where I : Test, IDisposable, IEnumerable; - public void DelegateConstraint(D del) - where D : Delegate; - public void EnumConstraint(E enumeration) - where E : Enum; -} - diff --git a/Il2CppTests/TestExpectedResults/Methods.cs b/Il2CppTests/TestExpectedResults/Methods.cs index f0a38d3..87b489b 100644 --- a/Il2CppTests/TestExpectedResults/Methods.cs +++ b/Il2CppTests/TestExpectedResults/Methods.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -34,7 +38,6 @@ using System.Text; [assembly: Debuggable] // 0x000A538C [assembly: RuntimeCompatibility] // 0x000A538C -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -69,7 +72,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -80,122 +82,112 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x000A38C4 */ object[] args); // 0x003EC60C } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - // Constructors - public Test(); // 0x00561220 + internal class Test // TypeDefIndex: 1811 + { + // Constructors + public Test(); // 0x00561220 + + // Methods + public virtual void VirtualMethod(); // 0x00561188 + public double ValueTypeReturnMethod(); // 0x0056118C + public StringBuilder ReferenceTypeReturnMethod(); // 0x005611B4 + } - // Methods - public virtual void VirtualMethod(); // 0x00561188 - public double ValueTypeReturnMethod(); // 0x0056118C - public StringBuilder ReferenceTypeReturnMethod(); // 0x005611B4 + public static class TestExtension // TypeDefIndex: 1812 + { + // Methods + public static double DivideByXExtension(int a, float x); // 0x00561198 + } + + internal abstract class TestAbstract // TypeDefIndex: 1813 + { + // Constructors + protected TestAbstract(); // 0x00561228 + + // Methods + public abstract void AbstractMethod(); + } + + internal class TestOverride : Test // TypeDefIndex: 1814 + { + // Constructors + public TestOverride(); // 0x00561238 + + // Methods + public override void VirtualMethod(); // 0x00561294 + } + + internal class TestHideVirtual : Test // TypeDefIndex: 1815 + { + // Constructors + public TestHideVirtual(); // 0x00561270 + + // Methods + public new void VirtualMethod(); // 0x0056126C + } + + internal class TestHideOverride : TestOverride // TypeDefIndex: 1816 + { + // Constructors + public TestHideOverride(); // 0x00561258 + + // Methods + public new void VirtualMethod(); // 0x00561254 + } + + internal class TestOverrideAbstract : TestAbstract // TypeDefIndex: 1817 + { + // Constructors + public TestOverrideAbstract(); // 0x0056124C + + // Methods + public override void AbstractMethod(); // 0x00561298 + } + + internal class TestHideAbstractOverride : TestOverrideAbstract // TypeDefIndex: 1818 + { + // Constructors + public TestHideAbstractOverride(); // 0x00561244 + + // Methods + public new void AbstractMethod(); // 0x00561240 + } + + internal class TestHideVirtualAndNewVirtual : Test // TypeDefIndex: 1819 + { + // Constructors + public TestHideVirtualAndNewVirtual(); // 0x0056127C + + // Methods + public virtual new void VirtualMethod(); // 0x00561278 + } + + internal class TestHideOverrideAndNewVirtual : TestOverride // TypeDefIndex: 1820 + { + // Constructors + public TestHideOverrideAndNewVirtual(); // 0x00561264 + + // Methods + public virtual new void VirtualMethod(); // 0x00561260 + } + + internal abstract class TestAbstractNew : TestOverride // TypeDefIndex: 1821 + { + // Constructors + protected TestAbstractNew(); // 0x00561230 + + // Methods + public abstract new void VirtualMethod(); + } + + internal class TestNewNonVirtualMethod : Test // TypeDefIndex: 1822 + { + // Constructors + public TestNewNonVirtualMethod(); // 0x0056128C + + // Methods + public int ValueTypeReturnMethod(); // 0x00561284 + } } - -// Namespace: Il2CppTests.TestSources -public static class TestExtension // TypeDefIndex: 1812 -{ - // Methods - public static double DivideByXExtension(int a, float x); // 0x00561198 -} - -// Namespace: Il2CppTests.TestSources -internal abstract class TestAbstract // TypeDefIndex: 1813 -{ - // Constructors - protected TestAbstract(); // 0x00561228 - - // Methods - public abstract void AbstractMethod(); -} - -// Namespace: Il2CppTests.TestSources -internal class TestOverride : Test // TypeDefIndex: 1814 -{ - // Constructors - public TestOverride(); // 0x00561238 - - // Methods - public override void VirtualMethod(); // 0x00561294 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideVirtual : Test // TypeDefIndex: 1815 -{ - // Constructors - public TestHideVirtual(); // 0x00561270 - - // Methods - public new void VirtualMethod(); // 0x0056126C -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideOverride : TestOverride // TypeDefIndex: 1816 -{ - // Constructors - public TestHideOverride(); // 0x00561258 - - // Methods - public new void VirtualMethod(); // 0x00561254 -} - -// Namespace: Il2CppTests.TestSources -internal class TestOverrideAbstract : TestAbstract // TypeDefIndex: 1817 -{ - // Constructors - public TestOverrideAbstract(); // 0x0056124C - - // Methods - public override void AbstractMethod(); // 0x00561298 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideAbstractOverride : TestOverrideAbstract // TypeDefIndex: 1818 -{ - // Constructors - public TestHideAbstractOverride(); // 0x00561244 - - // Methods - public new void AbstractMethod(); // 0x00561240 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideVirtualAndNewVirtual : Test // TypeDefIndex: 1819 -{ - // Constructors - public TestHideVirtualAndNewVirtual(); // 0x0056127C - - // Methods - public virtual new void VirtualMethod(); // 0x00561278 -} - -// Namespace: Il2CppTests.TestSources -internal class TestHideOverrideAndNewVirtual : TestOverride // TypeDefIndex: 1820 -{ - // Constructors - public TestHideOverrideAndNewVirtual(); // 0x00561264 - - // Methods - public virtual new void VirtualMethod(); // 0x00561260 -} - -// Namespace: Il2CppTests.TestSources -internal abstract class TestAbstractNew : TestOverride // TypeDefIndex: 1821 -{ - // Constructors - protected TestAbstractNew(); // 0x00561230 - - // Methods - public abstract new void VirtualMethod(); -} - -// Namespace: Il2CppTests.TestSources -internal class TestNewNonVirtualMethod : Test // TypeDefIndex: 1822 -{ - // Constructors - public TestNewNonVirtualMethod(); // 0x0056128C - - // Methods - public int ValueTypeReturnMethod(); // 0x00561284 -} - diff --git a/Il2CppTests/TestExpectedResults/Properties.cs b/Il2CppTests/TestExpectedResults/Properties.cs index c101401..5e010b8 100644 --- a/Il2CppTests/TestExpectedResults/Properties.cs +++ b/Il2CppTests/TestExpectedResults/Properties.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -33,7 +37,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x000A5264 [assembly: RuntimeCompatibility] // 0x000A5264 -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -68,7 +71,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -79,21 +81,22 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x000A3618 */ object[] args); // 0x003EC6B4 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - // Properties - private int prop1 { get; set; } // 0x00561230 0x00561238 - protected int prop2 { get; private set; } // 0x00561240 0x00561248 - protected int prop3 { private get; set; } // 0x00561250 0x00561258 - public static int prop4 { private get; set; } // 0x00561260 0x005612C4 - public string this[int i] { get; } // 0x00561328 - public string this[double d] { get; } // 0x00561384 - public string this[long l] { set; } // 0x005613DC - public string this[float f] { get; set; } // 0x005613E0 0x0056143C - public bool this[int i, int j] { get; } // 0x00561440 - - // Constructors - public Test(); // 0x00561448 + internal class Test // TypeDefIndex: 1811 + { + // Properties + private int prop1 { get; set; } // 0x00561230 0x00561238 + protected int prop2 { get; private set; } // 0x00561240 0x00561248 + protected int prop3 { private get; set; } // 0x00561250 0x00561258 + public static int prop4 { private get; set; } // 0x00561260 0x005612C4 + public string this[int i] { get; } // 0x00561328 + public string this[double d] { get; } // 0x00561384 + public string this[long l] { set; } // 0x005613DC + public string this[float f] { get; set; } // 0x005613E0 0x0056143C + public bool this[int i, int j] { get; } // 0x00561440 + + // Constructors + public Test(); // 0x00561448 + } } - diff --git a/Il2CppTests/TestExpectedResults/References.cs b/Il2CppTests/TestExpectedResults/References.cs index 24f3822..08724ac 100644 --- a/Il2CppTests/TestExpectedResults/References.cs +++ b/Il2CppTests/TestExpectedResults/References.cs @@ -1,4 +1,8 @@ -using System; +/* + * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty + */ + +using System; using System.Diagnostics; using System.Reflection; using System.Resources; @@ -33,7 +37,6 @@ using System.Runtime.InteropServices; [assembly: Debuggable] // 0x000A525C [assembly: RuntimeCompatibility] // 0x000A525C -// Namespace: internal static class Consts // TypeDefIndex: 100 { // Fields @@ -68,7 +71,6 @@ internal static class Consts // TypeDefIndex: 100 public const string AssemblySystem_Core = "System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; } -// Namespace: internal sealed class Locale // TypeDefIndex: 101 { // Constructors @@ -79,26 +81,26 @@ internal sealed class Locale // TypeDefIndex: 101 public static string GetText(string fmt, params /* 0x000A375C */ object[] args); // 0x003EC504 } -// Namespace: Il2CppTests.TestSources -internal class Test // TypeDefIndex: 1811 +namespace Il2CppTests.TestSources { - // Fields - private float floatField; // 0x08 + internal class Test // TypeDefIndex: 1811 + { + // Fields + private float floatField; // 0x08 + + // Constructors + public Test(); // 0x00561098 + + // Methods + public void MethodWithRefParameters(int a, ref int b, int c, ref int d); // 0x00561080 + public void MethodWithInRefOut(in int a, ref int b, out int c); // 0x00561084 + public ref float MethodWithRefReturnType(); // 0x00561090 + } - // Constructors - public Test(); // 0x00561098 - - // Methods - public void MethodWithRefParameters(int a, ref int b, int c, ref int d); // 0x00561080 - public void MethodWithInRefOut(in int a, ref int b, out int c); // 0x00561084 - public ref float MethodWithRefReturnType(); // 0x00561090 + [Obsolete] // 0x000A5224 + public struct RefStruct // TypeDefIndex: 1812 + { + // Fields + private int structField1; // 0x08 + } } - -// Namespace: Il2CppTests.TestSources -[Obsolete] // 0x000A5224 -public struct RefStruct // TypeDefIndex: 1812 -{ - // Fields - private int structField1; // 0x08 -} -