WriteAllText return type fix

This commit is contained in:
Timerix 2025-03-22 21:21:24 +05:00
parent 4da75bfa8a
commit f9e4e533bb
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<!--package info-->
<PackageId>DTLib</PackageId>
<Version>1.6.2</Version>
<Version>1.6.3</Version>
<Authors>Timerix</Authors>
<Description>Library for all my C# projects</Description>
<RepositoryType>GIT</RepositoryType>

View File

@ -87,8 +87,8 @@ public static class File
await stream.WriteAsync(content, 0, content.Length);
}
public static async Task WriteAllText(IOPath file, string content) =>
await WriteAllBytesAsync(file, content.ToBytes(StringConverter.UTF8));
public static void WriteAllText(IOPath file, string content) =>
WriteAllBytes(file, content.ToBytes(StringConverter.UTF8));
public static async Task WriteAllTextAsync(IOPath file, string content) =>
await WriteAllBytesAsync(file, content.ToBytes(StringConverter.UTF8));