mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
Print Type Parameters too
This commit is contained in:
parent
613e11c377
commit
9822bd2bcc
@ -10,7 +10,12 @@ namespace cs2j
|
||||
if (t.IsGenericType) {
|
||||
typeName.Append(t.GetGenericTypeDefinition().FullName + "[");
|
||||
foreach(Type a in t.GetGenericArguments()) {
|
||||
typeName.Append(buildTypeName(a) + ",");
|
||||
if (a.IsGenericParameter) {
|
||||
typeName.Append(a.Name + ",");
|
||||
}
|
||||
else {
|
||||
typeName.Append(buildTypeName(a) + ",");
|
||||
}
|
||||
}
|
||||
typeName.Remove(typeName.Length - 1,1);
|
||||
typeName.Append("]");
|
||||
|
Loading…
x
Reference in New Issue
Block a user