Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
Added inheritdoc to ToString
Fixed UWP nuget
contents typo
  • Loading branch information
Aragas committed Nov 27, 2017
1 parent 858d2cb commit 8adde1c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static void WriteAllText(this IFile file, string content)
/// <param name="content">The content to write to the file</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>A task which completes when the write operation finishes</returns>
public static async Task WriteAllTextAsync(this IFile file, string contents, CancellationToken cancellationToken = default(CancellationToken))
public static async Task WriteAllTextAsync(this IFile file, string content, CancellationToken cancellationToken = default(CancellationToken))
{
using (var stream = await file.OpenAsync(FileAccess.ReadAndWrite, cancellationToken).ConfigureAwait(false))
{
Expand Down
1 change: 1 addition & 0 deletions src/PCLExt.FileStorage.Standard.Abstractions/BaseFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public abstract class BaseFile : IFile
public Task<IFile> CopyAsync(string newPath, NameCollisionOption collisionOption = NameCollisionOption.ReplaceExisting, CancellationToken cancellationToken = default(CancellationToken)) => _file.CopyAsync(newPath, collisionOption, cancellationToken);


/// <inheritdoc />
public override string ToString() => Path;
}
}
2 changes: 1 addition & 1 deletion src/PCLExt.FileStorage.Standard.Abstractions/BaseFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public abstract class BaseFolder : IFolder
/// <inheritdoc />
public Task CopyAsync(IFolder folder, NameCollisionOption option = NameCollisionOption.ReplaceExisting, CancellationToken cancellationToken = new CancellationToken()) => _folder.CopyAsync(folder, option, cancellationToken);


/// <inheritdoc />
public override string ToString() => Path;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.0.1</Version>
<Version>6.0.2</Version>
</PackageReference>
<PackageReference Include="NUnit">
<Version>3.8.1</Version>
Expand Down

0 comments on commit 8adde1c

Please sign in to comment.