Example #1
0
        /// <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;
        }
Example #2
0
 /// <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;
 }
Example #3
0
        public void ConvertRetinfoFromNative()
        {
            var native = new NATIVE_RETINFO { columnidNextTagged = 257 };

            var retinfo = new JET_RETINFO();
            retinfo.SetFromNativeRetinfo(native);

            Assert.AreEqual(257U, retinfo.columnidNextTagged.Value);
        }
Example #4
0
        /// <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);
        }
Example #5
0
        /// <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;
        }