diff --git a/Il2CppInspector.Common/Reflection/TypeInfo.cs b/Il2CppInspector.Common/Reflection/TypeInfo.cs index ab2c198..8309a44 100644 --- a/Il2CppInspector.Common/Reflection/TypeInfo.cs +++ b/Il2CppInspector.Common/Reflection/TypeInfo.cs @@ -912,6 +912,10 @@ namespace Il2CppInspector.Reflection { if (IsEnum) refs.Add(GetEnumUnderlyingType()); + // Generic type definition + if (genericTypeDefinition != null) + refs.Add(genericTypeDefinition); + // Generic type parameters and constraints refs.UnionWith(GetGenericArguments()); refs.UnionWith(GetGenericParameterConstraints());