Model: Use + in FullName for nested types, no spaces between generic type parameters

This commit is contained in:
Katy Coe
2019-11-02 17:51:10 +01:00
parent 39fafb6c94
commit 5f8aced688

View File

@@ -104,10 +104,10 @@ namespace Il2CppInspector.Reflection {
(IsPointer? "void *" : "")
+ Namespace
+ (Namespace.Length > 0? "." : "")
+ (DeclaringType != null? DeclaringType.Name + "." : "")
+ (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