public void ToString(StringBuilder sb, int indent) { sb.Append(' ', indent); var innerIndent = indent + 4; sb.AppendLine("{"); sb.Append(' ', innerIndent); sb.Append("!Type = "); sb.AppendLine(GetType().Name); sb.Append(' ', innerIndent); sb.Append("Id = "); NamedTupleCommon.AppendValueLine(sb, Id, innerIndent); sb.Append(' ', innerIndent); sb.Append("FirstName = "); NamedTupleCommon.AppendStringLine(sb, FirstName, innerIndent); sb.Append(' ', innerIndent); sb.Append("LastName = "); NamedTupleCommon.AppendStringLine(sb, LastName, innerIndent); sb.Append(' ', innerIndent); sb.Append("Aliases = "); NamedTupleCommon.AppendReferenceLine(sb, Aliases, innerIndent); sb.Append(' ', innerIndent); sb.Append("InvoiceAddress = "); NamedTupleCommon.AppendReferenceLine(sb, InvoiceAddress, innerIndent); sb.Append(' ', innerIndent); sb.Append("DeliveryAddress = "); NamedTupleCommon.AppendReferenceLine(sb, DeliveryAddress, innerIndent); sb.Append(' ', indent); sb.AppendLine("}"); }
public void ToString(StringBuilder sb, int indent) { sb.Append(' ', indent); var innerIndent = indent + 4; sb.AppendLine("{"); sb.Append(' ', innerIndent); sb.Append("!Type = "); sb.AppendLine(GetType().Name); sb.Append(' ', innerIndent); sb.Append("Id = "); NamedTupleCommon.AppendValueLine(sb, Id, innerIndent); sb.Append(' ', innerIndent); sb.Append("CareOf = "); NamedTupleCommon.AppendStringLine(sb, CareOf, innerIndent); sb.Append(' ', innerIndent); sb.Append("Address1 = "); NamedTupleCommon.AppendStringLine(sb, Address1, innerIndent); sb.Append(' ', innerIndent); sb.Append("Address2 = "); NamedTupleCommon.AppendStringLine(sb, Address2, innerIndent); sb.Append(' ', innerIndent); sb.Append("Address3 = "); NamedTupleCommon.AppendStringLine(sb, Address3, innerIndent); sb.Append(' ', innerIndent); sb.Append("Address4 = "); NamedTupleCommon.AppendStringLine(sb, Address4, innerIndent); sb.Append(' ', innerIndent); sb.Append("City = "); NamedTupleCommon.AppendStringLine(sb, City, innerIndent); sb.Append(' ', innerIndent); sb.Append("Zip = "); NamedTupleCommon.AppendStringLine(sb, Zip, innerIndent); sb.Append(' ', innerIndent); sb.Append("County = "); NamedTupleCommon.AppendStringLine(sb, County, innerIndent); sb.Append(' ', innerIndent); sb.Append("Country = "); NamedTupleCommon.AppendStringLine(sb, Country, innerIndent); sb.Append(' ', indent); sb.AppendLine("}"); }