Add generic type definition to list of type references

This commit is contained in:
Robert Xiao
2020-04-11 00:17:37 -07:00
committed by Katy
parent 2c164aec02
commit 648840c714

View File

@@ -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());