Skip to content

Commit

Permalink
Port NullStream.CopyTo override from corert (dotnet#7589)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesqo authored and jkotas committed Oct 12, 2016
1 parent abcb7d9 commit 55febd0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mscorlib/src/System/IO/Stream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,13 @@ public override long Position {
set {}
}

public override void CopyTo(Stream destination, int bufferSize)
{
StreamHelpers.ValidateCopyToArgs(this, destination, bufferSize);

// After we validate arguments this is a nop.
}

public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
{
// Validate arguments here for compat, since previously this method
Expand Down

0 comments on commit 55febd0

Please sign in to comment.