NPlot.TradingDateTimeAxis.Clone C# (CSharp) Method

Clone() public method

Deep copy of DateTimeAxis.
public Clone ( ) : object
return object
        public override object Clone()
        {
            TradingDateTimeAxis a = new TradingDateTimeAxis();
            // ensure that this isn't being called on a derived type. If it is, then oh no!
            if (this.GetType() != a.GetType())
            {
                throw new NPlotException( "Clone not defined in derived type. Help!" );
            }
            DoClone( this, a );
            return a;
        }