Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-03-02 05:50:48 +0300
committerAhson Khan <ahkha@microsoft.com>2018-03-02 07:26:31 +0300
commited0b32ee6b2c3c9d7c9e1c21ca019cd60278f861 (patch)
tree956ad5ed1c2f700276105d1f5b3f2cf30493b4b0
parente0c6a33fd079b67f84727858cda370ab71fb6eb1 (diff)
Fix build break
-rw-r--r--src/System.Private.CoreLib/src/System/IO/Stream.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/src/System/IO/Stream.cs b/src/System.Private.CoreLib/src/System/IO/Stream.cs
index 154f10a6a..c307ec91e 100644
--- a/src/System.Private.CoreLib/src/System/IO/Stream.cs
+++ b/src/System.Private.CoreLib/src/System/IO/Stream.cs
@@ -242,7 +242,7 @@ namespace System.IO
public virtual ValueTask<int> ReadAsync(Memory<byte> destination, CancellationToken cancellationToken = default(CancellationToken))
{
- if (destination.TryGetArray(out ArraySegment<byte> array))
+ if (MemoryMarshal.TryGetArray(destination, out ArraySegment<byte> array))
{
return new ValueTask<int>(ReadAsync(array.Array, array.Offset, array.Count, cancellationToken));
}