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