Esempio 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 (GetType() != a.GetType())
            {
                throw new XwPlotException("Clone not defined in derived type. Help!");
            }
            DoClone(this, a);
            return(a);
        }
Esempio n. 2
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 (GetType() != a.GetType()) {
         throw new XwPlotException( "Clone not defined in derived type. Help!" );
     }
     DoClone (this, a);
     return a;
 }