mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-10-25 15:19:23 +00:00
13 lines
354 B
C#
13 lines
354 B
C#
#if NETSTANDARD2_0
|
|
namespace System.IO;
|
|
|
|
// Polyfills needed for OpenCli.
|
|
// This can be removed once me migrate over to the Polyfill library.
|
|
internal static class OpenCliExtensions
|
|
{
|
|
public static Task<string> ReadToEndAsync(this StreamReader reader, CancellationToken cancellationToken)
|
|
{
|
|
return reader.ReadToEndAsync();
|
|
}
|
|
}
|
|
#endif |