示例#1
0
        public override void ValueExprToString(StringBuilder @out, int indent) {
            if (_inListConstantsOnly != null) {
                @out.Append("constant values, ")
                    .Append(_inListConstantsOnly.Length)
                    .Append(" entries")
                    .Append(NEWLINE);
                for (int i = 0; i < _inListConstantsOnly.Length; i++) {
                    @out.Append(Indent.CreateIndent(indent))
                        .Append("value #")
                        .Append(i)
                        .Append(": ");
                    FilterSpecParamConstantForge.ValueExprToString(@out, _inListConstantsOnly[i]);
                    @out.Append(NEWLINE);
                }
            }

            @out.Append("non-constant values, ")
                .Append(_listOfValues.Count)
                .Append(" entries")
                .Append(NEWLINE);
            
            int valueIndex = 0;
            foreach (FilterSpecParamInValueForge forge in _listOfValues) {
                @out.Append(Indent.CreateIndent(indent))
                    .Append("value #")
                    .Append(valueIndex)
                    .Append(": ");
                forge.ValueToString(@out);
                @out.Append(NEWLINE);
                valueIndex++;
            }
        }
 public void ValueToString(StringBuilder @out)
 {
     FilterSpecParamConstantForge.ValueExprToString(@out, Constant);
 }