/// <summary> /// Gets the native version of this object. /// </summary> /// <returns>The native version of this object.</returns> internal NATIVE_UNICODEINDEX2 GetNativeUnicodeIndex2() { if (this.lcid != 0 && !LcidToLocales.ContainsKey(this.lcid)) { throw new ArgumentException("lcid was specified, but this version of the API does not accept LCIDs. Use a locale name or a different API."); } ////szLocaleName is converted at pinvoke time. var native = new NATIVE_UNICODEINDEX2 { dwMapFlags = this.dwMapFlags, }; return(native); }
/// <summary> /// Initializes a new instance of the <see cref="JET_UNICODEINDEX"/> class. /// </summary> /// <param name="native">The native object from which to read values.</param> internal JET_UNICODEINDEX(ref NATIVE_UNICODEINDEX2 native) { this.szLocaleName = Marshal.PtrToStringUni(native.szLocaleName); this.dwMapFlags = native.dwMapFlags; }