public override int GetHashCode() { int result = firstPos.GetHashCode(); result = 31 * result + secondPos.GetHashCode(); return(result); }
public override int GetHashCode() { unchecked { var hashCode = Definition.GetHashCode(); hashCode = (hashCode * 397) ^ Examples.GetHashCode(); hashCode = (hashCode * 397) ^ PartOfSpeech.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hashcode = Vav.GetHashCode() * 17; hashcode += Subordination.GetHashCode() * 17; hashcode += PrepositionChars.GetHashCode() * 17; hashcode += DefiniteArticle.GetHashCode() * 17; hashcode += PartOfSpeech.GetHashCode() * 17; hashcode += Gender.GetHashCode() * 17; hashcode += Plural.GetHashCode() * 17; hashcode += Person.GetHashCode() * 17; hashcode += ConstructState.GetHashCode() * 17; hashcode += OwnershipGender.GetHashCode() * 17; hashcode += OwnershipPlural.GetHashCode() * 17; hashcode += OwnershipPerson.GetHashCode() * 17; return(hashcode); }
/// <summary> /// Serves as a hash function for a <see cref="KeywordsGlossary.InflectedForm"/> object. /// </summary> /// <returns> /// A hash code for this instance that is suitable for use in hashing algorithms and data structures such as /// a hash table. /// </returns> public override int GetHashCode() { return(ObjectX.GenerateHashCode(m_PartOfSpeech.GetHashCode(), this.Word.GetHashCode())); }