/// <summary> /// Copies from another data array either with a deep or a shallow copy, depending on the /// <see cref="deepCopy">deepCopy</see> value. /// </summary> public void CopyFrom(Data d) { Modified = d.Modified; deepCopy = d.deepCopy; if (d.deepCopy) { Length = d.Length; for (int i = 0; i < length; i++) { this[i] = d[i]; } } else { length = d.length; } autoResize = d.autoResize; }
/// <summary> /// Returns either a deep or a shallow copy, depending on the /// <see cref="deepCopy">deepCopy</see> value. /// </summary> public Data Clone() { Data d = new Data(); d.CopyFrom(this); return d; }
/// <summary> /// Copies from another DataColumn with either a deep or shallow copy, depending on the value of /// the <c>deepCopy</c> field. /// </summary> public void CopyFrom(DataColumn r) { base.CopyFrom(r); if (r.source != null) { source = (string)r.source.Clone(); } x = r.x; y = r.y; dx = r.dx; dy = r.dy; }