예제 #1
0
 public override void ToStringFormatted(Output output)
 {
     output.BreakAndIndent();
     output.Append("(");
     base.ToStringFormatted(output);
     output.Append(")");
 }
예제 #2
0
        public override string ToString()
        {
            var output           = new Output();
            var definitionStatus = DefinitionStatus.ToStringOutput();

            output.Append(definitionStatus);
            if (definitionStatus.Length > 0)
            {
                output.Append(" ");
            }
            SubExpression.ToStringFormatted(output);
            return(output.ToString());
        }
예제 #3
0
 public virtual void ToStringFormatted(Output output)
 {
     output.Append(string.Join(" + ", FocusConcepts));
     if (Refinement != null)
     {
         output.AppendAndIndent(":");
         Refinement.ToStringFormatted(output);
     }
 }
        public void ToStringFormatted(Output output)
        {
            var first = true;

            foreach (var attributeGroup in AttributeGroups)
            {
                if (first)
                {
                    first = false;
                }
                else
                {
                    output.AppendAndBreak(",");
                }
                output.Append("{");
                attributeGroup.ToStringFormatted(output);
                output.Append("}");
            }
        }
예제 #5
0
 public override void ToStringFormatted(Output output)
 {
     output.Append("#");
     output.Append(Value.ToString(CultureInfo.InvariantCulture));
 }
예제 #6
0
 public override void ToStringFormatted(Output output)
 {
     output.Append("\"");
     output.Append(Value);
     output.Append("\"");
 }