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

            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (FailureReason != 0)
            {
                hash ^= FailureReason.GetHashCode();
            }
            if (FailureMessage.Length != 0)
            {
                hash ^= FailureMessage.GetHashCode();
            }
            if (SessionId.Length != 0)
            {
                hash ^= SessionId.GetHashCode();
            }
            if (expiry_ != null)
            {
                hash ^= Expiry.GetHashCode();
            }
            if (ExpiresIn != 0)
            {
                hash ^= ExpiresIn.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hashCode = SecurityCode.GetHashCode() ^ StrikePrice.GetHashCode() ^
                           Expiry.GetHashCode() ^ PremiumMultiplier.GetHashCode();

            return(hashCode);
        }
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = Expiry != null?Expiry.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Retry != null ? Retry.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Logout != null ? Logout.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Takeover != null ? Takeover.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (LearnMore != null ? LearnMore.GetHashCode() : 0);
                return(hashCode);
            }
        }
Example #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasUri)
            {
                hash ^= Uri.GetHashCode();
            }
            if (HasExpiry)
            {
                hash ^= Expiry.GetHashCode();
            }
            if (HasStatusCode)
            {
                hash ^= StatusCode.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #5
0
 public override int GetHashCode()
 {
     return(base.GetHashCode() + Expiry.GetHashCode() + OptionType.GetHashCode()
            + Strike.GetHashCode());
 }