Exemplo n.º 1
0
		/// <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;
		}
Exemplo n.º 2
0
		/// <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;
		}
Exemplo n.º 3
0
		/// <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;
		}