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

            if (FortressTemplateGmtId.Length != 0)
            {
                hash ^= FortressTemplateGmtId.GetHashCode();
            }
            if (OwningTeamId.Length != 0)
            {
                hash ^= OwningTeamId.GetHashCode();
            }
            if (ElectoralVotes != 0L)
            {
                hash ^= ElectoralVotes.GetHashCode();
            }
            if (SeasonId.Length != 0)
            {
                hash ^= SeasonId.GetHashCode();
            }
            if (RegionId.Length != 0)
            {
                hash ^= RegionId.GetHashCode();
            }
            if (WcActiveUntilMs != 0L)
            {
                hash ^= WcActiveUntilMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (RegionId != null)
         {
             hashCode = hashCode * 59 + RegionId.GetHashCode();
         }
         if (RegionNm != null)
         {
             hashCode = hashCode * 59 + RegionNm.GetHashCode();
         }
         if (FarmId != null)
         {
             hashCode = hashCode * 59 + FarmId.GetHashCode();
         }
         if (Plant != null)
         {
             hashCode = hashCode * 59 + Plant.GetHashCode();
         }
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (SeasonId.Length != 0)
            {
                hash ^= SeasonId.GetHashCode();
            }
            if (RegionId.Length != 0)
            {
                hash ^= RegionId.GetHashCode();
            }
            if (scores_ != null)
            {
                hash ^= Scores.GetHashCode();
            }
            if (RegionName.Length != 0)
            {
                hash ^= RegionName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (RouteId != null ? RouteId.GetHashCode() : 0);
         result = (result * 397) ^ (RegionId != null ? RegionId.GetHashCode() : 0);
         result = (result * 397) ^ RouteDate.GetHashCode();
         return(result);
     }
 }
Ejemplo n.º 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (RegionId.Length != 0)
            {
                hash ^= RegionId.GetHashCode();
            }
            if (Status != global::Yandex.Cloud.Compute.V1.Zone.Types.Status.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 6
0
        public override int GetHashCode()
        {
            int hashCode = 1398642568;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(_name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <Region> .Default.GetHashCode(Region);

            hashCode = hashCode * -1521134295 + RegionId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(_description);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + EqualityComparer <List <CategoryTouristicSpot> > .Default.GetHashCode(Categories);

            hashCode = hashCode * -1521134295 + EqualityComparer <List <Accommodation> > .Default.GetHashCode(Accommodations);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Image);

            return(hashCode);
        }
Ejemplo n.º 7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (FolderId.Length != 0)
            {
                hash ^= FolderId.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            if (RegionId.Length != 0)
            {
                hash ^= RegionId.GetHashCode();
            }
            hash ^= targets_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }