コード例 #1
0
        public HunspellHandle(
            string affpath,
            string dicpath)
            : base(IntPtr.Zero, true)
        {
            handle = HunspellInterop.Hunspell_create(affpath, dicpath);

            if (IsInvalid)
            {
                throw new InvalidOperationException("Couldn't load hunspell.");
            }
        }