Mono.CSharp.CSharpCodeGenerator.OutputTypeArguments C# (CSharp) Method

OutputTypeArguments() private method

private OutputTypeArguments ( CodeTypeReferenceCollection typeArguments, StringBuilder sb, int count ) : void
typeArguments CodeTypeReferenceCollection
sb StringBuilder
count int
return void
		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
CSharpCodeGenerator