public override bool Equals(object obj)
{
TrieNode that;
return
obj != null
&& (that = obj as TrieNode) != null
&& that.Character == this.Character;
}
public override int GetHashCode()