Forex_Strategy_Builder.Order.Copy C# (CSharp) Method

Copy() public method

Makes a deep copy.
public Copy ( ) : Order
return Order
        public Order Copy()
        {
            Order order = new Order();

            order.ordDir    = this.ordDir;
            order.ordType   = this.ordType;
            order.ordCond   = this.ordCond;
            order.ordStatus = this.ordStatus;
            order.ordSender = this.ordSender;
            order.ordOrigin = this.ordOrigin;
            order.ordNumb   = this.ordNumb;
            order.ordIF     = this.ordIF;
            order.ordPos    = this.ordPos;
            order.ordLots   = this.ordLots;
            order.ordPrice  = this.ordPrice;
            order.ordPrice2 = this.ordPrice2;
            order.ordNote   = this.ordNote;

            return order;
        }