From 509b0cb7780be789489f71aba1ca349e63ca35df Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sat, 2 Nov 2019 18:43:22 +0100 Subject: [PATCH] Model: Set IsGeneric* properties when creating type from IL2CPP_TYPE_GENERICINST --- Il2CppInspector/Reflection/TypeInfo.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Il2CppInspector/Reflection/TypeInfo.cs b/Il2CppInspector/Reflection/TypeInfo.cs index 022808b..ce88753 100644 --- a/Il2CppInspector/Reflection/TypeInfo.cs +++ b/Il2CppInspector/Reflection/TypeInfo.cs @@ -304,7 +304,10 @@ namespace Il2CppInspector.Reflection { MemberType = memberType | MemberTypes.NestedType; } - // TODO: Generic* properties and ContainsGenericParameters + IsGenericType = true; + IsGenericParameter = false; + IsGenericTypeDefinition = false; // This is a use of a generic type definition + ContainsGenericParameters = true; // Get the instantiation var genericInstance = image.ReadMappedObject(generic.context.class_inst);