예제 #1
0
        public override int GetHashCode()
        {
            var hashCode = -810527825;

            hashCode = hashCode * -1521134295 + VendorId.GetHashCode();
            hashCode = hashCode * -1521134295 + ProductId.GetHashCode();
            return(hashCode);
        }
예제 #2
0
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(VendorId.GetHashCode() * 17 ^

                       (MessageId != null
                            ? MessageId.GetHashCode() * 11
                            : 0) ^

                       (Data != null
                            ? Data.GetHashCode()
                            : 0));
            }
        }