문제

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