Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Sets null to DataType property.
 /// </summary>
 public void NullifyDataType()
 {
     this._dataType = null;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Sets null to ElementType property.
 /// </summary>
 public void NullifyElementType()
 {
     this._elementType = null;
 }