public static IEnumerable <string> ReadLines(this IHunspellLineReader reader) { string line; while ((line = reader.ReadLine()) != null) { yield return(line); } }
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); } }