コード例 #1
0
ファイル: Data.cs プロジェクト: xuchuansheng/GenXSource
		/// <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;
		}
コード例 #2
0
ファイル: Data.cs プロジェクト: xuchuansheng/GenXSource
		/// <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;
		}
コード例 #3
0
ファイル: Data.cs プロジェクト: xuchuansheng/GenXSource
		/// <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;
		}