Click or drag to resize

StreamExtensionsCopyTo Method (Stream, Stream, Int32)

Copies one stream to another using the specified buffer size.

Namespace:  Ookii.Jumbo
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public static void CopyTo(
	this Stream source,
	Stream destination,
	int bufferSize
)

Parameters

source
Type: System.IOStream
The stream to copy from.
destination
Type: System.IOStream
The stream to copy to.
bufferSize
Type: SystemInt32
The size of the buffer to use while copying.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Stream. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also