/// <summary> /// The init. /// </summary> /// <param name="dictionaryData"> /// The dictionary data. /// </param> private void Init(byte[] dictionaryData) { if (this.unmanagedHandle != IntPtr.Zero) { throw new InvalidOperationException("Dictionary is already loaded"); } MarshalHunspellDll.ReferenceNativeHunspellDll(); this.nativeDllIsReferenced = true; this.unmanagedHandle = MarshalHunspellDll.HyphenInit(dictionaryData, new IntPtr(dictionaryData.Length)); }
/// <summary> /// The init. /// </summary> /// <param name="dictionaryData"> /// The dictionary data. /// </param> private void Init(byte[] dictionaryData) { MarshalHunspellDll.LoadNativeHunspellDll(); this.unmanagedHandle = MarshalHunspellDll.HyphenInit(dictionaryData, new IntPtr(dictionaryData.Length)); }