public Option(OptionPair rootPair, string optionNumber, string optionCode) : base(optionNumber) { if (rootPair != null) { RootPair = rootPair; SecurityCode = rootPair.SecurityCode; } OptionCode = optionCode; }
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); }