Skip to content

Commit 34d0fe1

Browse files
authored
Add missing docs to FileStream.CopyTo(Stream, int) (dotnet#10362)
Contributes to dotnet/runtime#105979 (comment).
1 parent 63d4e50 commit 34d0fe1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

xml/System.IO/FileStream.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2215,10 +2215,10 @@ See <xref:System.IO.Stream.Close?displayProperty=nameWithType> for more informat
22152215
<Parameter Name="bufferSize" Type="System.Int32" Index="1" FrameworkAlternate="net-9.0" />
22162216
</Parameters>
22172217
<Docs>
2218-
<param name="destination">To be added.</param>
2219-
<param name="bufferSize">To be added.</param>
2220-
<summary>To be added.</summary>
2221-
<remarks>To be added.</remarks>
2218+
<param name="destination">The stream to which the contents of the current stream will be copied.</param>
2219+
<param name="bufferSize">The size of the buffer. This value must be greater than zero.</param>
2220+
<summary>Reads the bytes from the current stream and writes them to another stream, using a specified buffer size. Both streams positions are advanced by the number of bytes copied.</summary>
2221+
<remarks>Copying begins at the current position in the current stream, and does not reset the position of the destination stream after the copy operation is complete.</remarks>
22222222
</Docs>
22232223
</Member>
22242224
<Member MemberName="CopyToAsync">
@@ -2259,7 +2259,7 @@ See <xref:System.IO.Stream.Close?displayProperty=nameWithType> for more informat
22592259
</Parameters>
22602260
<Docs>
22612261
<param name="destination">The stream to which the contents of the current file stream will be copied.</param>
2262-
<param name="bufferSize">The size, in bytes, of the buffer. This value must be greater than zero. The default size is 81920.</param>
2262+
<param name="bufferSize">The size, in bytes, of the buffer. This value must be greater than zero.</param>
22632263
<param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
22642264
<summary>Asynchronously reads the bytes from the current file stream and writes them to another stream, using a specified buffer size and cancellation token.</summary>
22652265
<returns>A task that represents the asynchronous copy operation.</returns>

0 commit comments

Comments
 (0)