Files
spectre.console/src/Spectre.Console.Cli/Internal/Extensions/OpenCliExtensions.cs
2025-10-02 02:05:46 +02:00

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