예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Gate != 0)
            {
                hash ^= Gate.GetHashCode();
            }
            hash ^= Cosumes.GetHashCode();
            if (SceneId.Length != 0)
            {
                hash ^= SceneId.GetHashCode();
            }
            if (Star != 0)
            {
                hash ^= Star.GetHashCode();
            }
            if (Evo != 0)
            {
                hash ^= Evo.GetHashCode();
            }
            hash ^= awards_.GetHashCode();
            return(hash);
        }
예제 #2
0
 public bool Equals(AppointmentGateRulePB other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (Gate != other.Gate)
     {
         return(false);
     }
     if (!Cosumes.Equals(other.Cosumes))
     {
         return(false);
     }
     if (SceneId != other.SceneId)
     {
         return(false);
     }
     if (Star != other.Star)
     {
         return(false);
     }
     if (Evo != other.Evo)
     {
         return(false);
     }
     if (!awards_.Equals(other.awards_))
     {
         return(false);
     }
     return(true);
 }