Exemple #1
0
        /// <summary>
        /// Creates either a deep or shallow copy, depending on the <see cref="Data.deepCopy"/> value.
        /// </summary>
        new public SmallData Clone()
        {
            SmallData d = new SmallData();

            d.CopyFrom(this);
            return(d);
        }
Exemple #2
0
 /// <summary>
 /// Copies from another data array either with a deep or shallow copy, depending on the
 /// <see cref="Data.deepCopy"/> value.
 /// </summary>
 public void CopyFrom(SmallData d)
 {
     base.CopyFrom(d);
     if (!d.deepCopy)
     {
         data = d.data;
     }
 }
Exemple #3
0
 /// <summary>
 /// Copies from another FunctionItem.
 /// </summary>
 /// <param name="src"></param>
 public override void CopyFrom(Item src)
 {
     base.CopyFrom(src);
     p    = ((FunctionItem)src).p.Clone();
     dfdp = ((FunctionItem)src).dfdp.Clone();
 }