示例#1
0
 public void Setup()
 {
     this.managed = new JET_UNICODEINDEX()
     {
         lcid = 1033,
         dwMapFlags = 0x400,
     };
     this.native = this.managed.GetNativeUnicodeIndex();
 }
示例#2
0
 /// <summary>
 /// Gets the native version of this object.
 /// </summary>
 /// <returns>The native version of this object.</returns>
 internal NATIVE_UNICODEINDEX GetNativeUnicodeIndex()
 {
     var native = new NATIVE_UNICODEINDEX
     {
         lcid = (uint) this.lcid,
         dwMapFlags = (uint) this.dwMapFlags,
     };
     return native;
 }        
示例#3
0
        /// <summary>
        /// Gets the native version of this object.
        /// </summary>
        /// <returns>The native version of this object.</returns>
        internal NATIVE_UNICODEINDEX GetNativeUnicodeIndex()
        {
            var native = new NATIVE_UNICODEINDEX
            {
                lcid       = (uint)this.lcid,
                dwMapFlags = (uint)this.dwMapFlags,
            };

            return(native);
        }
示例#4
0
        /// <summary>
        /// Gets the native version of this object.
        /// </summary>
        /// <returns>The native version of this object.</returns>
        internal NATIVE_UNICODEINDEX GetNativeUnicodeIndex()
        {
            if (!string.IsNullOrEmpty(this.localeName))
            {
                throw new ArgumentException("localeName was specified, but this version of the API does not accept locale names. Use LCIDs or a different API.");
            }

            var native = new NATIVE_UNICODEINDEX
            {
                lcid       = (uint)this.lcid,
                dwMapFlags = this.dwMapFlags,
            };

            return(native);
        }