コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (ActType != 0)
            {
                hash ^= ActType.GetHashCode();
            }
            if (Pro != 0)
            {
                hash ^= Pro.GetHashCode();
            }
            if (Power != 0)
            {
                hash ^= Power.GetHashCode();
            }
            if (DepartmentLevel != 0)
            {
                hash ^= DepartmentLevel.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (NeedTime != 0)
            {
                hash ^= NeedTime.GetHashCode();
            }
            hash ^= Fans.GetHashCode();
            hash ^= Consume.GetHashCode();
            hash ^= awards_.GetHashCode();
            if (RandomeFansNum != 0)
            {
                hash ^= RandomeFansNum.GetHashCode();
            }
            if (Order != 0)
            {
                hash ^= Order.GetHashCode();
            }
            if (MovieId != 0)
            {
                hash ^= MovieId.GetHashCode();
            }
            return(hash);
        }