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 ConvertRetinfoToNative() { var retinfo = new JET_RETINFO { ibLongValue = 1, itagSequence = 2 }; NATIVE_RETINFO native = retinfo.GetNativeRetinfo(); Assert.AreEqual(1U, native.ibLongValue); Assert.AreEqual(2U, native.itagSequence); }