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> <PropertyGroup>
<!--package info--> <!--package info-->
<PackageId>DTLib</PackageId> <PackageId>DTLib</PackageId>
<Version>1.6.2</Version> <Version>1.6.3</Version>
<Authors>Timerix</Authors> <Authors>Timerix</Authors>
<Description>Library for all my C# projects</Description> <Description>Library for all my C# projects</Description>
<RepositoryType>GIT</RepositoryType> <RepositoryType>GIT</RepositoryType>

View File

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