ExtensionMethods.CopyTo(Stream, Stream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Add a simple copy method to Stream
public:
[System::Runtime::CompilerServices::Extension]
static void CopyTo(System::IO::Stream ^ sourceStream, System::IO::Stream ^ targetStream);
public static void CopyTo (this System.IO.Stream sourceStream, System.IO.Stream targetStream);
static member CopyTo : System.IO.Stream * System.IO.Stream -> unit
<Extension()>
Public Sub CopyTo (sourceStream As Stream, targetStream As Stream)
Parameters
- sourceStream
- Stream
- targetStream
- Stream