private AuditTrie <T> Query(string text, int index) { if (text.Length == index) { return(this); } char levelIndex = text[index]; if (!Level.ContainsKey(levelIndex)) { Level[levelIndex] = new AuditTrie <T>(this); } return(Level[levelIndex].Query(text, index + 1)); }
public AuditTrie(AuditTrie <T> parent) { this._parent = parent; }