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

            if (FromPlayerID != 0)
            {
                hash ^= FromPlayerID.GetHashCode();
            }
            if (FromCardID != 0)
            {
                hash ^= FromCardID.GetHashCode();
            }
            if (TargetID != 0)
            {
                hash ^= TargetID.GetHashCode();
            }
            if (TargetCardID != 0)
            {
                hash ^= TargetCardID.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FromPlayerID != 0)
            {
                hash ^= FromPlayerID.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            return(hash);
        }