Пример #1
0
        /// <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));
        }
Пример #2
0
 /// <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));
 }