public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return "";StringBuilder sb = new StringBuilder();String filler = "";for (QueryNode child : getChildren()) {sb.append(filler).append(child.toQueryString(escapeSyntaxParser));filler = " AND ";}if ((getParent() != null && getParent() instanceof GroupQueryNode)|| isRoot())return sb.toString();else return "( " + sb.toString() + " )";}
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){var children = GetChildren();if (children == null || children.Count == 0)return "";StringBuilder sb = new StringBuilder();string filler = "";foreach (IQueryNode child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = " AND ";}if ((Parent != null && Parent is GroupQueryNode)|| IsRoot)return sb.ToString();else return "( " + sb.ToString() + " )";}