diff --git a/Il2CppTests/Il2CppTests.csproj b/Il2CppTests/Il2CppTests.csproj index 9182cd8..ed4f79f 100644 --- a/Il2CppTests/Il2CppTests.csproj +++ b/Il2CppTests/Il2CppTests.csproj @@ -18,6 +18,7 @@ + @@ -27,15 +28,12 @@ - - - - - - - - - + + + + + + @@ -45,12 +43,12 @@ - - - + + + diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs new file mode 100644 index 0000000..17d6927 --- /dev/null +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs @@ -0,0 +1,19 @@ +// Image 0: mscorlib.dll - 0 +// Image 1: Properties.dll - 1810 + +// Namespace: Il2CppTests.TestSources +internal class Test // TypeDefIndex: 1811 +{ + // Fields + + // Properties + private int prop1 { get; set; } // 0x00000001800ECD10 0x0000000180143AD0 + protected int prop2 { get; private set; } // 0x0000000180156360 0x00000001803E0E90 + protected int prop3 { private get; set; } // 0x00000001800ED060 0x000000018019DD90 + public static int prop4 { private get; set; } // 0x00000001803E0E50 0x00000001803E0EA0 + + // Constructors + public Test(); // 0x00000001800E2000 + +} + diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs new file mode 100644 index 0000000..827c236 --- /dev/null +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs @@ -0,0 +1,19 @@ +// Image 0: mscorlib.dll - 0 +// Image 1: Properties.dll - 1810 + +// Namespace: Il2CppTests.TestSources +internal class Test // TypeDefIndex: 1811 +{ + // Fields + + // 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; } // 0x1034DA60 0x1034DA90 + + // Constructors + public Test(); // 0x100BF000 + +} + diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs new file mode 100644 index 0000000..7fc9579 --- /dev/null +++ b/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs @@ -0,0 +1,27 @@ +// Image 0: mscorlib.dll - 0 +// Image 1: References.dll - 1810 + +// Namespace: Il2CppTests.TestSources +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 MethowWithInRefOut(in int a, ref int b, out int c); // 0x00000001803E0E60 + public ref float MethodWithRefReturnType(); // 0x00000001803E0E50 +} + +// 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 new file mode 100644 index 0000000..40b75c5 --- /dev/null +++ b/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs @@ -0,0 +1,27 @@ +// Image 0: mscorlib.dll - 0 +// Image 1: References.dll - 1810 + +// Namespace: Il2CppTests.TestSources +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 MethowWithInRefOut(in int a, ref int b, out int c); // 0x1034DA70 + public ref float MethodWithRefReturnType(); // 0x1034DA60 +} + +// Namespace: Il2CppTests.TestSources +[Obsolete] // 0x1000DD10 +public struct RefStruct // TypeDefIndex: 1812 +{ + // Fields + private int structField1; // 0x08 + +} + diff --git a/Il2CppTests/TestExpectedResults/Properties.cs b/Il2CppTests/TestExpectedResults/Properties.cs new file mode 100644 index 0000000..7b5dfa3 --- /dev/null +++ b/Il2CppTests/TestExpectedResults/Properties.cs @@ -0,0 +1,19 @@ +// Image 0: mscorlib.dll - 0 +// Image 1: Properties.dll - 1810 + +// Namespace: Il2CppTests.TestSources +internal class Test // TypeDefIndex: 1811 +{ + // Fields + + // Properties + private int prop1 { get; set; } // 0x00561178 0x00561180 + protected int prop2 { get; private set; } // 0x00561188 0x00561190 + protected int prop3 { private get; set; } // 0x00561198 0x005611A0 + public static int prop4 { private get; set; } // 0x005611A8 0x0056120C + + // Constructors + public Test(); // 0x00561270 + +} + diff --git a/Il2CppTests/TestExpectedResults/References.cs b/Il2CppTests/TestExpectedResults/References.cs new file mode 100644 index 0000000..4e7c1a5 --- /dev/null +++ b/Il2CppTests/TestExpectedResults/References.cs @@ -0,0 +1,27 @@ +// Image 0: mscorlib.dll - 0 +// Image 1: References.dll - 1810 + +// Namespace: Il2CppTests.TestSources +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 MethowWithInRefOut(in int a, ref int b, out int c); // 0x00561084 + public ref float MethodWithRefReturnType(); // 0x00561090 +} + +// Namespace: Il2CppTests.TestSources +[Obsolete] // 0x000A5224 +public struct RefStruct // TypeDefIndex: 1812 +{ + // Fields + private int structField1; // 0x08 + +} +