public override bool Equals(object obj) { if (!(obj is LexicalInfo)) { return(false); } LexicalInfo other = (LexicalInfo)obj; return(this.ToString() == other.ToString()); }