public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return "";StringBuilder sb = new StringBuilder();String filler = "";for (Iterator<QueryNode> it = getChildren().iterator(); it.hasNext();) {sb.append(filler).append(it.next().toQueryString(escapeSyntaxParser));filler = " OR ";}if ((getParent() != null && getParent() instanceof GroupQueryNode)|| isRoot())return sb.toString();elsereturn "( " + 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 (var child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = " OR ";}if ((Parent != null && Parent is GroupQueryNode)|| IsRoot)return sb.ToString();elsereturn "( " + sb.ToString() + " )";}
