public bool Equals(SavedClientOrder order_)
 {
     if (null == (object)order_)
     {
         return(false);
     }
     return(this.symbol.Equals(order_.symbol) && this.side.Equals(order_.side) && this.tradingDay.Equals(order_.tradingDay));
 }
        /// <summary>
        /// Orders of same stock name, direction and tradingDay are considered same.
        /// When set to merge order, these orders will be merged.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (null == obj)
            {
                return(false);
            }

            SavedClientOrder order = obj as SavedClientOrder;

            if (null == (System.Object)order)
            {
                return(false);
            }

            return(this.symbol.Equals(order.symbol) && this.side.Equals(order.side) && this.tradingDay.Equals(order.tradingDay));
        }