public new String ToString() { var result = new StringWriter(); result.WriteLine("Version: {0}", this.Version); result.WriteLine("OperationID: {0}", OperationIdExt.ToString(this.OperationId)); result.WriteLine("StatusCode: {0}", this.StatusCode.ToString()); foreach (KeyValuePair <AttrGroups, List <Attribute> > pair in this.AttrGroup) { result.WriteLine("{0} [", pair.Key.ToString()); foreach (Attribute attr in pair.Value) { result.WriteLine(" {0} [", TagsExt.ToString(attr.Tag)); result.WriteLine(" Name: {0}", attr.Name); result.WriteLine(" Value: {0}", attr.ValueAsObject.ToString()); result.WriteLine(" ]"); } result.WriteLine("]"); } if (this.Data != null && this.Data.Length > 0) { result.WriteLine("Data: Size={0}", this.Data.Length); } return(result.ToString()); }
public Attribute(Tag tag, String value) : this(tag, TagsExt.ToString(tag), value) { }