/// <summary> /// Sets the fields of the object from a NATIVE_RETINFO structure. /// </summary> /// <param name="value">The NATIVE_RETINFO which will be used to set the fields.</param> internal void SetFromNativeRetinfo(NATIVE_RETINFO value) { this.ibLongValue = checked((int)value.ibLongValue); this.itagSequence = checked((int)value.itagSequence); var columnid = new JET_COLUMNID { Value = value.columnidNextTagged }; this.columnidNextTagged = columnid; }
/// <summary> /// Get a NATIVE_RETINFO structure representing the object. /// </summary> /// <returns>A NATIVE_RETINFO whose members match the class.</returns> internal NATIVE_RETINFO GetNativeRetinfo() { var retinfo = new NATIVE_RETINFO(); retinfo.cbStruct = checked((uint) NATIVE_RETINFO.Size); retinfo.ibLongValue = checked((uint) this.ibLongValue); retinfo.itagSequence = checked((uint) this.itagSequence); return retinfo; }
public void ConvertRetinfoFromNative() { var native = new NATIVE_RETINFO { columnidNextTagged = 257 }; var retinfo = new JET_RETINFO(); retinfo.SetFromNativeRetinfo(native); Assert.AreEqual(257U, retinfo.columnidNextTagged.Value); }
/// <summary> /// Get a NATIVE_RETINFO structure representing the object. /// </summary> /// <returns>A NATIVE_RETINFO whose members match the class.</returns> internal NATIVE_RETINFO GetNativeRetinfo() { var retinfo = new NATIVE_RETINFO(); retinfo.cbStruct = checked ((uint)NATIVE_RETINFO.Size); retinfo.ibLongValue = checked ((uint)this.ibLongValue); retinfo.itagSequence = checked ((uint)this.itagSequence); return(retinfo); }
/// <summary> /// Sets the fields of the object from a NATIVE_RETINFO structure. /// </summary> /// <param name="value">The NATIVE_RETINFO which will be used to set the fields.</param> internal void SetFromNativeRetinfo(NATIVE_RETINFO value) { this.ibLongValue = checked ((int)value.ibLongValue); this.itagSequence = checked ((int)value.itagSequence); var columnid = new JET_COLUMNID { Value = value.columnidNextTagged }; this.columnidNextTagged = columnid; }