Microsoft.Isam.Esent.Interop.JET_ENUMCOLUMNID.GetNativeEnumColumnid C# (CSharp) Method

GetNativeEnumColumnid() private method

Gets the native (interop) version of this object.
private GetNativeEnumColumnid ( ) : NATIVE_ENUMCOLUMNID
return NATIVE_ENUMCOLUMNID
        internal NATIVE_ENUMCOLUMNID GetNativeEnumColumnid()
        {
            this.CheckDataSize();
            var value = new NATIVE_ENUMCOLUMNID
            {
                columnid = this.columnid.Value,
                ctagSequence = checked((uint) this.ctagSequence)
            };
            return value;
        }

Usage Example

Esempio n. 1
0
        public void TestConvertEnumColumnidToNativeWithNoTags()
        {
            var managed = new JET_ENUMCOLUMNID
            {
                columnid = new JET_COLUMNID { Value = 1 },
                ctagSequence = 0,
                rgtagSequence = null,
            };

            var native = managed.GetNativeEnumColumnid();
            Assert.AreEqual<uint>(1, native.columnid);
            Assert.AreEqual<uint>(0, native.ctagSequence);
            unsafe
            {
                Assert.IsTrue(null == native.rgtagSequence);
            }
        }