/// <summary> /// Deep copies content from src instance to this. /// <param name="source">Source for copy.</param> /// <returns>this.</returns> /// </summary> protected override IRecordInterface CopyFromImpl(IRecordInfo source) { base.CopyFromImpl(source); if (typeof(IDataFieldInfo).IsInstanceOfType(source)) { IDataFieldInfo typedSource = ((IDataFieldInfo)(source)); if ((typedSource.DataType != null)) { if (((this.DataType == null) || (this.DataType.GetType() == typedSource.DataType.GetType()))) { this.DataType = ((DataType)(typedSource.DataType.Clone())); } else { this.DataType.CopyFrom(typedSource.DataType); } } else { this.DataType = null; } } return(this); }
/// <summary> /// Reset all instance field to their default states. /// <returns>this.</returns> /// </summary> protected override IRecordInterface ResetImpl() { base.ResetImpl(); this._dataType = null; return(this); }
/// <summary> /// Sets null to DataType property. /// </summary> public void NullifyDataType() { this._dataType = null; }
/// <summary> /// Sets null to ElementType property. /// </summary> public void NullifyElementType() { this._elementType = null; }