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:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/IO/TextReader.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/IO/TextReader.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/System.Private.CoreLib/shared/System/IO/TextReader.cs b/src/System.Private.CoreLib/shared/System/IO/TextReader.cs
index eb94dd759..bb5b142bd 100644
--- a/src/System.Private.CoreLib/shared/System/IO/TextReader.cs
+++ b/src/System.Private.CoreLib/shared/System/IO/TextReader.cs
@@ -207,7 +207,7 @@ namespace System.IO
#region Task based Async APIs
public virtual Task<string> ReadLineAsync()
{
- return Task<String>.Factory.StartNew(state =>
+ return Task<string>.Factory.StartNew(state =>
{
return ((TextReader)state).ReadLine();
},
@@ -251,7 +251,7 @@ namespace System.IO
return ReadAsyncInternal(new Memory<char>(buffer, index, count), default).AsTask();
}
- public virtual ValueTask<int> ReadAsync(Memory<char> buffer, CancellationToken cancellationToken = default(CancellationToken)) =>
+ public virtual ValueTask<int> ReadAsync(Memory<char> buffer, CancellationToken cancellationToken = default) =>
new ValueTask<int>(MemoryMarshal.TryGetArray(buffer, out ArraySegment<char> array) ?
ReadAsync(array.Array, array.Offset, array.Count) :
Task<int>.Factory.StartNew(state =>
@@ -289,7 +289,7 @@ namespace System.IO
return ReadBlockAsyncInternal(new Memory<char>(buffer, index, count), default).AsTask();
}
- public virtual ValueTask<int> ReadBlockAsync(Memory<char> buffer, CancellationToken cancellationToken = default(CancellationToken)) =>
+ public virtual ValueTask<int> ReadBlockAsync(Memory<char> buffer, CancellationToken cancellationToken = default) =>
new ValueTask<int>(MemoryMarshal.TryGetArray(buffer, out ArraySegment<char> array) ?
ReadBlockAsync(array.Array, array.Offset, array.Count) :
Task<int>.Factory.StartNew(state =>