Is there a TextWriter child class that fires event if text is written?
问题 I have written a method that accepts a TextWriter as an argument (Usually Console.Out, but not necessarily). When I call this method, some progress info is written to the TextWriter. However, since this method can run a long time, I want to update my UI with some status information. Currently, I am using a StringWriter but it does not have any events. So the first time I get a result from the StringWriter is after the method completed. Now I am searching for a class that inherits from