示例#1
0
 /// <summary>
 /// Deep copy of LinearAxis.
 /// </summary>
 /// <returns>A copy of the LinearAxis Class</returns>
 public override object Clone()
 {
     LinearAxis a = new LinearAxis();
     // 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!");
     }
     this.DoClone(this, a);
     return a;
 }
示例#2
0
		/// <summary>
		/// Deep copy of LinearAxis.
		/// </summary>
		/// <returns>A copy of the LinearAxis Class</returns>
		public override object Clone()
		{
			LinearAxis a = new LinearAxis();
			// 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!" );
			}
			this.DoClone( this, a );
			return a;
		}