public final void removeFields(String name) {Iterator<IndexableField> it = fields.iterator();while (it.hasNext()) {IndexableField field = it.next();if (field.name().equals(name)) {it.remove();}}}

public void RemoveFields(string name){for (int i = fields.Count - 1; i >= 0; i--){IIndexableField field = fields[i];if (field.Name.Equals(name, StringComparison.Ordinal)){fields.Remove(field);}}}
