Example #1
0
        public override bool Equals(object obj)
        {
            var other = obj as ExecutionCondition;

            if (other == null)
            {
                return(false);
            }

            return(base.Equals(obj) &&
                   Exchange.Equals(other.Exchange) &&
                   SecType.Equals(other.SecType) &&
                   Symbol.Equals(other.Symbol));
        }
Example #2
0
    public override bool Equals(object?obj)
    {
        ExecutionCondition?other = obj as ExecutionCondition;

        if (other == null)
        {
            return(false);
        }

        return(base.Equals(obj) &&
               Exchange.Equals(other.Exchange, System.StringComparison.Ordinal) &&
               SecType.Equals(other.SecType, System.StringComparison.Ordinal) &&
               Symbol.Equals(other.Symbol, System.StringComparison.Ordinal));
    }