public void Setup() { this.managed = new JET_UNICODEINDEX() { lcid = 1033, dwMapFlags = 0x400, }; this.native = this.managed.GetNativeUnicodeIndex(); }
/// <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; }
/// <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); }
/// <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); }