public override string ToString() { if (AttributeGroups != null) { var output = ""; foreach (var attributeGroup in AttributeGroups) { if (output.Length > 1) { output += ", "; } output += "{" + attributeGroup + "}"; } return(AttributeSet + ", " + output); } return(AttributeSet.ToString()); }
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 AttributeSetRefinement() { AttributeSet = new AttributeSet(); AttributeGroups = new List <AttributeGroup>(); }
public AttributeSetRefinement(AttributeSet attributeSet, IEnumerable <AttributeGroup> attributeGroups) { AttributeSet = attributeSet; AttributeGroups = attributeGroups.ToList(); }
public AttributeSetRefinement(AttributeSet attributeSet) { AttributeSet = attributeSet; }