Updated to C# 12
This commit is contained in:
@@ -40,7 +40,7 @@ namespace System.IO
|
||||
}
|
||||
while (ch != eol);
|
||||
|
||||
return encoding.GetString(bytes.ToArray()).Trim();
|
||||
return encoding.GetString([.. bytes]).Trim();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -73,7 +73,7 @@ namespace System.IO
|
||||
}
|
||||
while (ch != eol);
|
||||
|
||||
return encoding.GetString(bytes.ToArray()).Trim();
|
||||
return encoding.GetString([.. bytes]).Trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user