Skip to content

Commit 71fc515

Browse files
jozkeesirntar
authored andcommitted
Add missing documentation for new 9.0 APIs in System.IO (dotnet#107376)
1 parent a0d1b55 commit 71fc515

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/libraries/System.Private.CoreLib/src/System/IO/File.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ public static void AppendAllBytes(string path, ReadOnlySpan<byte> bytes)
819819
/// <param name="path">The file to append to.</param>
820820
/// <param name="bytes">The bytes to append to the file.</param>
821821
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="CancellationToken.None"/>.</param>
822+
/// <returns>A task that represents the asynchronous append operation.</returns>
822823
/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
823824
/// <exception cref="ArgumentNullException"><paramref name="bytes"/> is null.</exception>
824825
/// <exception cref="ArgumentException"><paramref name="path"/> is empty.</exception>
@@ -837,6 +838,7 @@ public static Task AppendAllBytesAsync(string path, byte[] bytes, CancellationTo
837838
/// <param name="path">The file to append to.</param>
838839
/// <param name="bytes">The bytes to append to the file.</param>
839840
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="CancellationToken.None"/>.</param>
841+
/// <returns>A task that represents the asynchronous append operation.</returns>
840842
/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
841843
/// <exception cref="ArgumentException"><paramref name="path"/> is empty.</exception>
842844
/// <exception cref="OperationCanceledException">The cancellation token was canceled. This exception is stored into the returned task.</exception>

src/libraries/System.Private.CoreLib/src/System/IO/FileStream.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ public override void CopyTo(Stream destination, int bufferSize)
536536
_strategy.CopyTo(destination, bufferSize);
537537
}
538538

539+
/// <inheritdoc />
539540
public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
540541
{
541542
ValidateCopyToArguments(destination, bufferSize);

0 commit comments

Comments
 (0)