Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = TaxonId;
         hashCode = (hashCode * 397) ^ (ScientificName != null ? ScientificName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CommonName != null ? CommonName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SearchMatchName != null ? SearchMatchName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Author != null ? Author.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (NameCategory != null ? NameCategory.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)TaxonStatus;
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     return(ScientificName.GetHashCode());
 }