public void AddTerm(Term term) { if (_items.Count != _separator.Count) { throw new NotSupportedException("Must call AddTerm AddSeparator in that order"); } _items.Add(term); }
internal void AddTerm(Term term) { if (_items.Count == _separator.Count) { _items.Add (term); } else { throw new NotSupportedException ("Must call AddTerm AddSeparator in that order"); } }