public void AddKey(char key) { if (Children[key - 'a'] == null) { Children[key - 'a'] = new EngishTrieNodeSimple(); } }
public bool TryGet(char key, out EngishTrieNodeSimple node) { node = null; if (Children[key - 'a'] == null) { return(false); } node = Children[key - 'a']; return(true); }