public override string ToString() { var sb = new StringBuilder(); sb.AppendLine($"Item Name: {this.ItemName} Has {this.ChildrenCount?.ToString() ?? "no"} children and its size is {StringUtil.GetSizeString(this._dataLength)}"); sb.AppendLine($"ParentId: {this.ParentID}"); if (this.Fields != null) { foreach (KeyValuePair <string, FieldListMappingModel> fields in Fields) { sb.AppendLine(); sb.AppendLine("Processing fields of key " + fields.Key); foreach (KeyValuePair <ID, string> field in fields.Value) { sb.AppendLine($" \t {IDsNameHelper.ToString((ID)field.Key)} -> {field.Value}"); } } } if ((_childIds != null) && (_childIds.Count > 0)) { sb.AppendLine("Children: {0}".FormatWith(_childIds.Count)); foreach (var childId in _childIds) { sb.AppendLine(childId.ToString()); } } else { sb.AppendLine("No childrenIDs found"); } return(sb.ToString()); }
public override string ToString() { var sb = new StringBuilder(); foreach (KeyValuePair <ID, string> keyValuePair in Converted) { sb.AppendLine($"{IDsNameHelper.ToString((ID)keyValuePair.Key)} -> {keyValuePair.Value}"); } return(sb.ToString()); }