Esempio n. 1
0
        public static IEnumerable <string> ReadLines(this IHunspellLineReader reader)
        {
            string line;

            while ((line = reader.ReadLine()) != null)
            {
                yield return(line);
            }
        }
Esempio n. 2
0
        public static WordList Read(IHunspellLineReader dictionaryReader, AffixConfig affix, WordList.Builder builder = null)
        {
            var readerInstance = new WordListReader(builder, affix);

            string line;

            while ((line = dictionaryReader.ReadLine()) != null)
            {
                readerInstance.ParseLine(line);
            }

            return(readerInstance.Builder.MoveToImmutable());
        }
        public static IEnumerable <string> ReadLines(this IHunspellLineReader reader)
        {
            if (reader == null)
            {
                throw new ArgumentNullException(nameof(reader));
            }

            string line;

            while ((line = reader.ReadLine()) != null)
            {
                yield return(line);
            }
        }