Answers for "c# clone stream"

C#
1

c# clone stream

//Copy the bytes from a source stream to a destination stream.
sourceStream.CopyTo(destinationStream);

//NB you may want to reset the streams position
sourceStream.Seek(0, SeekOrigin.Begin);
destinationStream.Seek(0, SeekOrigin.Begin);
Posted by: Guest on March-18-2020

C# Answers by Framework

Browse Popular Code Answers by Language