コード例 #1
0
ファイル: PiAxis.cs プロジェクト: helloyou2012/ChartProject
 /// <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;
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
ファイル: PiAxis.cs プロジェクト: helloyou2012/ChartProject
 /// <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( PiAxis b, PiAxis a )
 {
     Axis.DoClone( b, a );
 }
コード例 #4
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(PiAxis b, PiAxis a)
 {
     Axis.DoClone(b, a);
 }