Stream.CopyTo() extension method

added by gpeipman
12/27/2010 8:07:31 PM

1 Kicks, 145 Views

In one of my applications I needed copy data from one stream to another. After playing with streams a little bit I wrote CopyTo() extension method to Stream class you can use to copy the contents of current stream to target stream. Here is my extension method.