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

GetTypeOutput() protected method

protected GetTypeOutput ( CodeTypeReference type ) : string
type CodeTypeReference
return string
		protected override string GetTypeOutput (CodeTypeReference type)
		{
#if NET_2_0
			if ((type.Options & CodeTypeReferenceOptions.GenericTypeParameter) != 0)
				return type.BaseType;
#endif

			string typeOutput = null;

			if (type.ArrayElementType != null) {
				typeOutput = GetTypeOutput (type.ArrayElementType);
			} else {
				typeOutput = DetermineTypeOutput (type);
			}

			int rank = type.ArrayRank;
			if (rank > 0) {
				typeOutput += '[';
				for (--rank; rank > 0; --rank) {
					typeOutput += ',';
				}
				typeOutput += ']';
			}

			return typeOutput;
		}
CSharpCodeGenerator