Skip to content

Commit

Permalink
Add missing documentation for new 9.0 APIs in System.IO (dotnet#107376)
Browse files Browse the repository at this point in the history
  • Loading branch information
jozkee authored Sep 17, 2024
1 parent d2c4587 commit 81a4d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libraries/System.Private.CoreLib/src/System/IO/File.cs
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ public static void AppendAllBytes(string path, ReadOnlySpan<byte> bytes)
/// <param name="path">The file to append to.</param>
/// <param name="bytes">The bytes to append to the file.</param>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="CancellationToken.None"/>.</param>
/// <returns>A task that represents the asynchronous append operation.</returns>
/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
/// <exception cref="ArgumentNullException"><paramref name="bytes"/> is null.</exception>
/// <exception cref="ArgumentException"><paramref name="path"/> is empty.</exception>
Expand All @@ -837,6 +838,7 @@ public static Task AppendAllBytesAsync(string path, byte[] bytes, CancellationTo
/// <param name="path">The file to append to.</param>
/// <param name="bytes">The bytes to append to the file.</param>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="CancellationToken.None"/>.</param>
/// <returns>A task that represents the asynchronous append operation.</returns>
/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
/// <exception cref="ArgumentException"><paramref name="path"/> is empty.</exception>
/// <exception cref="OperationCanceledException">The cancellation token was canceled. This exception is stored into the returned task.</exception>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ public override void CopyTo(Stream destination, int bufferSize)
_strategy.CopyTo(destination, bufferSize);
}

/// <inheritdoc />
public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
{
ValidateCopyToArguments(destination, bufferSize);
Expand Down

0 comments on commit 81a4d96

Please sign in to comment.