Stream.CopyTo Method (Stream)
December 03, 2013
Reads all the bytes from the current stream and writes them to the destination stream.
Assembly: mscorlib (in mscorlib.dll)
destination is null.
The current stream does not support reading.
destination does not support writing.
Either the current stream or destination were closed before the CopyTo method was called.
An I/O error occurred.