コード例 #1
0
        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());
        }
コード例 #2
0
 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("}");
         }
     }
 }
コード例 #3
0
 public AttributeSetRefinement()
 {
     AttributeSet    = new AttributeSet();
     AttributeGroups = new List <AttributeGroup>();
 }
コード例 #4
0
 public AttributeSetRefinement(AttributeSet attributeSet, IEnumerable <AttributeGroup> attributeGroups)
 {
     AttributeSet    = attributeSet;
     AttributeGroups = attributeGroups.ToList();
 }
コード例 #5
0
 public AttributeSetRefinement(AttributeSet attributeSet)
 {
     AttributeSet = attributeSet;
 }