Question

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 ?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top