/// <summary> /// Determines whether the specified <see cref="T:System.Object" /> is equal /// to the current <see cref="T:System.Object" />. /// </summary> /// <param name="obj">The object to compare with the current object.</param> /// <returns> /// true if the specified object is equal to the current object; otherwise, /// false. /// </returns> public bool Equals(TrieNode obj) { if (obj != null && obj.Letter == this.Letter) { return true; } return false; }
/// <summary> /// Initializes a new instance of the <see cref="Trie" /> class. /// </summary> public Trie() { this.rootNode = new TrieNode(' '); }