public void ToStringFormatted(Output output) { AttributeSet.ToStringFormatted(output); if (AttributeGroups != null) { output.AppendAndBreak(","); var first = true; foreach (var attributeGroup in AttributeGroups) { if (first) { first = false; } else { output.AppendAndBreak(","); } output.Append("{"); attributeGroup.ToStringFormatted(output); output.Append("}"); } } }
public void ToStringFormatted(Output output) { var first = true; foreach (var attribute in Attributes) { if (first) { first = false; } else { output.AppendAndBreak(","); } attribute.ToStringFormatted(output); } }