public void AddChild(TrieNode child) { int indexChar = CharFunctions.CharToIndex(child.NodeChar); this.Childs[indexChar] = child; child.Parent = this; }
public TrieNode GetChild(char childChar) { int indexChar = CharFunctions.CharToIndex(childChar); return(this.Childs[indexChar]); }