java: public CharSequence toQueryString(EscapeQuerySyntax escaper) {StringBuilder path = new StringBuilder();path.append("/").append(getFirstPathElement());for (QueryText pathelement : getPathElements(1)) {CharSequence value = escaper.escape(pathelement.value, Locale.getDefault(), Type.STRING);path.append("/\"").append(value).append("\"");}return path.toString();}
C#: public override string ToQueryString(IEscapeQuerySyntax escaper){StringBuilder path = new StringBuilder();path.Append("/").Append(GetFirstPathElement());foreach (QueryText pathelement in GetPathElements(1)){string value = escaper.Escape(new StringCharSequence(pathelement.Value),CultureInfo.InvariantCulture, EscapeQuerySyntaxType.STRING).ToString();path.Append("/\"").Append(value).Append("\"");}return path.ToString();}