private void OutputTypeArguments (CodeTypeReferenceCollection typeArguments, StringBuilder sb, int count)
{
if (count == 0) {
return;
} else if (typeArguments.Count == 0) {
// generic type definition
sb.Append ("<>");
return;
}
sb.Append ('<');
// write first type argument
sb.Append (GetTypeOutput (typeArguments[0]));
// subsequent type argument are prefixed by ', ' separator
for (int i = 1; i < count; i++) {
sb.Append (", ");
sb.Append (GetTypeOutput (typeArguments[i]));
}
sb.Append ('>');
}
#endif