コード例 #1
0
ファイル: UnicodeIndexTests.cs プロジェクト: j2jensen/ravendb
 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);
        }