public string ToString(object value) { if (!(value is Array array) || !ElementType.IsAssignableFrom(array.GetType().GetElementType())) { throw new ArgumentException("value"); } StringBuilder builder = new StringBuilder(); builder.Append("["); for (int i = 0; i < array.Length; i++) { if (i > 0) { builder.Append(", "); } builder.Append(InternalParser.ToString(array.GetValue(i))); } builder.Append("]"); return(builder.ToString()); }
public override string GetStringValue() { return(parser.ToString(Value)); }