public override int GetHashCode() { if (fHashCode == 0) { fHashCode = 19 * TagID + 7; fHashCode ^= 11 * EntityID + 11; fHashCode ^= 17 * EntityType + 21; if (!String.IsNullOrEmpty(TagName)) { fHashCode ^= TagName.GetHashCode(); } if (!String.IsNullOrEmpty(TagColor)) { fHashCode ^= TagColor.GetHashCode(); } if (!String.IsNullOrEmpty(TagTextColor)) { fHashCode ^= TagTextColor.GetHashCode(); } if (!String.IsNullOrEmpty(EntityName)) { fHashCode ^= EntityName.GetHashCode(); } } return(fHashCode); }