/// <summary> /// Deep copy of PiAxis. /// </summary> /// <returns>A copy of the LinearAxis Class.</returns> public override object Clone() { PiAxis a = new PiAxis(); // 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( "Error. Clone method is not defined in derived type." ); } DoClone( this, a ); return a; }
/// <summary> /// Deep copy of PiAxis. /// </summary> /// <returns>A copy of the LinearAxis Class.</returns> public override object Clone() { PiAxis a = new PiAxis(); // 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("Error. Clone method is not defined in derived type."); } DoClone(this, a); return(a); }