예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <summary>
 /// Reset all instance field to their default states.
 /// <returns>this.</returns>
 /// </summary>
 protected override IRecordInterface ResetImpl()
 {
     base.ResetImpl();
     this._dataType = null;
     return(this);
 }
예제 #3
0
 /// <summary>
 /// Sets null to DataType property.
 /// </summary>
 public void NullifyDataType()
 {
     this._dataType = null;
 }
예제 #4
0
 /// <summary>
 /// Sets null to ElementType property.
 /// </summary>
 public void NullifyElementType()
 {
     this._elementType = null;
 }