1
0

Removing .NET Core 3.1 support

This commit is contained in:
2023-08-01 08:00:45 +02:00
parent cb133aea0c
commit 7469583ed4
13 changed files with 34 additions and 93 deletions

View File

@@ -20,11 +20,8 @@ namespace System.IO
/// <returns></returns>
public static string ReadLine(this Stream stream, Encoding encoding = null, char? eol = null)
{
if (encoding == null)
encoding = Encoding.Default;
if (eol == null)
eol = Environment.NewLine.Last();
encoding ??= Encoding.Default;
eol ??= Environment.NewLine.Last();
if (!stream.CanRead)
return null;
@@ -56,11 +53,8 @@ namespace System.IO
/// <returns></returns>
public static async Task<string> ReadLineAsync(this Stream stream, Encoding encoding = null, char? eol = null, CancellationToken cancellationToken = default)
{
if (encoding == null)
encoding = Encoding.Default;
if (eol == null)
eol = Environment.NewLine.Last();
encoding ??= Encoding.Default;
eol ??= Environment.NewLine.Last();
if (!stream.CanRead)
return null;