Doers anyone know of an IFilter wrapper class that implements ReadLine().

I'm currently using this Code Project IFilter Wrapper which is excellent and inherits TextReader but it doesn't contain an implementation for ReadLine(). Having had a look at the Read() method it doesn't look easy or something that can be done quickly.

Is there a quick and easy way to implement this that I'm just missing ?

有帮助吗?

解决方案

I had same problem as you, so I had to create my own implementation (basically checked available implementations and resources for filters, and then hammered something together).

It is also implemented as TextReader, overrides Read method, so ReadLine works automatically.

Code can be found here: https://github.com/MarianPolacek/MP.FilterReader

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top