System.Xml.Serialization.SerializationCodeGenerator.GetArrayDeclaration C# (CSharp) Method

GetArrayDeclaration() private method

private GetArrayDeclaration ( Type type, string length ) : string
type Type
length string
return string
		string GetArrayDeclaration (Type type, string length)
		{
			Type t = type.GetElementType();
			System.Text.StringBuilder sb = new System.Text.StringBuilder ();
			sb.Append ('[').Append (length).Append (']');
			while (t.IsArray) {
				sb.Append ("[]");
				t = t.GetElementType();
			}
			sb.Insert (0, ToCSharpFullName (t));
			return sb.ToString ();
		}
SerializationCodeGenerator