Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            hash ^= pattern_.GetHashCode();
            if (NameField.Length != 0)
            {
                hash ^= NameField.GetHashCode();
            }
            if (History != global::Google.Api.ResourceDescriptor.Types.History.Unspecified)
            {
                hash ^= History.GetHashCode();
            }
            if (Plural.Length != 0)
            {
                hash ^= Plural.GetHashCode();
            }
            if (Singular.Length != 0)
            {
                hash ^= Singular.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        // hash code is based on hash codes of all combined names
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 31 + Plural.GetHashCode();
            hash = hash * 31 + Single.GetHashCode();
            hash = hash * 31 + Adjective.GetHashCode();
            return(base.GetHashCode());
        }
Esempio n. 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (Plural != null ? Plural.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Female != null ? Female.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FemalePlural != null ? FemalePlural.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 4
0
        public override int GetHashCode()
        {
            var hash = 0x1505L;

            if (Context != null)
            {
                hash = ((hash << 5) + hash) ^ Context.GetHashCode();
            }
            hash = ((hash << 5) + hash) ^ Singular.GetHashCode();
            if (Plural != null)
            {
                hash = ((hash << 5) + hash) ^ Plural.GetHashCode();
            }

            return(hash.GetHashCode());
        }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
 public override int GetHashCode()
 {
     return(Singular.GetHashCode() ^ (Plural?.GetHashCode() ?? 0) ^ (Context?.GetHashCode() ?? 0));
 }