mirror of
https://github.com/LukeFZ/Il2CppInspectorRedux.git
synced 2025-12-11 05:49:44 +05:00
Model: Fix DeclaringType doesn't work for concrete generic instances from TypeSpecs
This commit is contained in:
@@ -693,6 +693,9 @@ namespace Il2CppInspector.Reflection {
|
||||
// Same visibility attributes as generic type definition
|
||||
Attributes = genericTypeDefinition.Attributes;
|
||||
|
||||
// Even though this isn't a TypeDef, we have to set this so that DeclaringType works in later references
|
||||
Index = genericTypeDefinition.Index;
|
||||
|
||||
// Same name as generic type definition
|
||||
Assembly = genericTypeDefinition.Assembly;
|
||||
Namespace = genericTypeDefinition.Namespace;
|
||||
|
||||
Reference in New Issue
Block a user