Exemplo n.º 1
0
 /// <summary>
 /// Deep copy of DateTimeAxis.
 /// </summary>
 /// <returns>A copy of the DateTimeAxis Class.</returns>
 public override object Clone()
 {
     DateTimeAxis a = new DateTimeAxis();
     // 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;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Helper method for Clone.
 /// </summary>
 /// <param name="a">The original object to clone.</param>
 /// <param name="b">The cloned object.</param>
 protected static void DoClone( DateTimeAxis b, DateTimeAxis a )
 {
     Axis.DoClone( b, a );
 }
Exemplo n.º 3
0
 /// <summary>
 /// Helper method for Clone.
 /// </summary>
 /// <param name="a">The original object to clone.</param>
 /// <param name="b">The cloned object.</param>
 protected static void DoClone(DateTimeAxis b, DateTimeAxis a)
 {
     Axis.DoClone(b, a);
 }