Example #1
0
 /// <summary>
 /// Sets the fields of the object from a native JET_RECORDLIST struct.
 /// </summary>
 /// <param name="value">
 /// The native recordlist to set the values from.
 /// </param>
 internal void SetFromNativeRecordlist(NATIVE_RECORDLIST value)
 {
     this.tableid = new JET_TABLEID {
         Value = value.tableid
     };
     this.cRecords         = checked ((int)value.cRecords);
     this.columnidBookmark = new JET_COLUMNID {
         Value = value.columnidBookmark
     };
 }
        public void Setup()
        {
            this.native = new NATIVE_RECORDLIST
            {
                tableid = (IntPtr)0x1000,
                cRecords = 100,
                columnidBookmark = 1,
            };

            this.converted = new JET_RECORDLIST();
            this.converted.SetFromNativeRecordlist(this.native);
        }
Example #3
0
 /// <summary>
 /// Sets the fields of the object from a native JET_RECORDLIST struct.
 /// </summary>
 /// <param name="value">
 /// The native recordlist to set the values from.
 /// </param>
 internal void SetFromNativeRecordlist(NATIVE_RECORDLIST value)
 {
     this.tableid = new JET_TABLEID { Value = value.tableid };
     this.cRecords = checked((int)value.cRecords);
     this.columnidBookmark = new JET_COLUMNID { Value = value.columnidBookmark };
 }