public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append(_baseItem.ToString()); foreach (Properties p in _properties.Keys) { int r = _properties[p]; if (r == 1) { sb.Append(" " + p.ToString()); } else { sb.Append(" " + r.ToString() + "*" + p.ToString()); } } return(sb.ToString()); }
public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append(_baseItem.ToString()); bool first = true; foreach (Properties p in _properties.Keys) { Range r = _properties[p]; sb.Append(" " + r.ToString() + " " + p.ToString()); if (!first) { sb.Append(", "); } first = false; } return(sb.ToString()); }