예제 #1
0
 public bool Equals(ProfessionRank other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (PotentialRankPoints != other.PotentialRankPoints)
     {
         return(false);
     }
     if (!requirements_.Equals(other.requirements_))
     {
         return(false);
     }
     if (!ProfessionNodesMap.Equals(other.ProfessionNodesMap))
     {
         return(false);
     }
     if (ShowInUi != other.ShowInUi)
     {
         return(false);
     }
     if (Id != other.Id)
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PotentialRankPoints != 0)
            {
                hash ^= PotentialRankPoints.GetHashCode();
            }
            hash ^= requirements_.GetHashCode();
            hash ^= ProfessionNodesMap.GetHashCode();
            if (ShowInUi != false)
            {
                hash ^= ShowInUi.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }