GetNativeEnumColumnid() private method

Gets the native (interop) version of this object.
private GetNativeEnumColumnid ( ) : NATIVE_ENUMCOLUMNID
return NATIVE_ENUMCOLUMNID
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);
            }
        }