1
0
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:
Kevin Glynn 2010-10-15 17:38:06 +02:00
parent 613e11c377
commit 9822bd2bcc

View File

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