I am calling a dll that writes to a stream. The signature of the method in the dll looks like:
public bool SomeMethod(Stream stream);
and t
If all you want to do is fire an event when Read, Seek or similar methods are called, override the base class versions, call them directly and raise the appropriate event before or after. If you want help on writing stream classes, have a look at the .Net code itself available at http://referencesource.microsoft.com/netframework.aspx. However, if you want to parse the stream in to something more readable, consider creating an IEnumerable
that reads in and processes the stream, instead.