예제 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            OptionPair other  = (OptionPair)obj;
            bool       equals = SecurityCode.IgnoreCaseEquals(other.SecurityCode) && StrikePrice.AlmostEqual(other.StrikePrice) &&
                                Expiry == other.Expiry && PremiumMultiplier == other.PremiumMultiplier;

            return(equals);
        }