Beispiel #1
0
        public void Insert(string key)
        {
            if (string.IsNullOrEmpty(key))
            {
                throw new ArgumentNullException();
            }

            _trieInsert.Insert(key);
        }
Beispiel #2
0
        public void Insert(string key, T value)
        {
            if (string.IsNullOrEmpty(key))
            {
                throw new ArgumentNullException();
            }

            if (value == null)
            {
                throw new ArgumentNullException();
            }

            _trieInsert.Insert(key, value);
        }