Пример #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }

            USeSimpleOrderNum orderNum = obj as USeSimpleOrderNum;

            if (string.IsNullOrEmpty(this.OrderNum) == false &&
                this.OrderNum == orderNum.OrderNum)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Пример #2
0
        /// <summary>
        /// 克隆USeSimpleOrderNum。
        /// </summary>
        /// <returns></returns>
        public override USeOrderNum Clone()
        {
            USeSimpleOrderNum orderNum = new USeSimpleOrderNum(this.OrderNum);

            return(orderNum);
        }