Model: Use square brackets for generic type parameters in FullName

This commit is contained in:
Katy Coe
2019-11-02 17:23:04 +01:00
parent a0dae073d2
commit f3e9c27ae7

View File

@@ -97,8 +97,8 @@ namespace Il2CppInspector.Reflection {
+ (Namespace.Length > 0? "." : "")
+ (DeclaringType != null? DeclaringType.Name + "." : "")
+ base.Name
+ (GenericTypeParameters != null ? "<" + string.Join(", ", GenericTypeParameters.Select(x => x.Name)) + ">" : "")
+ (GenericTypeArguments != null ? "<" + string.Join(", ", GenericTypeArguments.Select(x => x.Name)) + ">" : "")
+ (GenericTypeParameters != null ? "[" + string.Join(", ", GenericTypeParameters.Select(x => x.Name)) + "]" : "")
+ (GenericTypeArguments != null ? "[" + string.Join(", ", GenericTypeArguments.Select(x => x.Name)) + "]" : "")
+ (IsArray? "[]" : "");
// TODO: Alot of other generics stuff