public TermFilter(Term term) { if (term == null) { throw new System.ArgumentException("Term must not be null"); } else if (term.Field() == null) { throw new System.ArgumentException("Field must not be null"); } this.term = term; }