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