public String toString(String field) {final StringBuilder buffer = new StringBuilder();if (!term.field().equals(field)) {buffer.append(term.field());buffer.append(":");}buffer.append(term.text());buffer.append('~');buffer.append(maxEdits);return buffer.toString();}
public override string ToString(string field){var buffer = new StringBuilder();if (!term.Field.Equals(field, StringComparison.Ordinal)){buffer.Append(term.Field);buffer.Append(":");}buffer.Append(term.Text());buffer.Append('~');buffer.Append(Convert.ToString(maxEdits));buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}