示例#1
0
        public void AddTerm(Term term)
        {
            if (_items.Count != _separator.Count)
            {
                throw new NotSupportedException("Must call AddTerm AddSeparator in that order");
            }

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