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

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (ElementType != 0)
            {
                hash ^= ElementType.GetHashCode();
            }
            if (ElementModule != 0)
            {
                hash ^= ElementModule.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (NeedUnlock != 0)
            {
                hash ^= NeedUnlock.GetHashCode();
            }
            if (unlockClaim_ != null)
            {
                hash ^= UnlockClaim.GetHashCode();
            }
            if (Desc.Length != 0)
            {
                hash ^= Desc.GetHashCode();
            }
            return(hash);
        }