Пример #1
0
 public void AddKey(char key)
 {
     if (Children[key - 'a'] == null)
     {
         Children[key - 'a'] = new EngishTrieNodeSimple();
     }
 }
Пример #2
0
        public bool TryGet(char key, out EngishTrieNodeSimple node)
        {
            node = null;
            if (Children[key - 'a'] == null)
            {
                return(false);
            }

            node = Children[key - 'a'];
            return(true);
        }