WriteAllText return type fix
This commit is contained in:
parent
4da75bfa8a
commit
f9e4e533bb
@ -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>
|
||||||
|
|||||||
@ -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));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user