Rename Convert to Converters to not clash with system one.
This commit is contained in:
Родитель
3ace37ee1b
Коммит
245187e940
|
@ -70,7 +70,7 @@ namespace Microsoft.Toolkit.Services.OneDrive
|
|||
{
|
||||
get
|
||||
{
|
||||
return FileSize.HasValue ? Convert.ToFileSizeString(FileSize.Value) : Convert.ToFileSizeString(0L);
|
||||
return FileSize.HasValue ? Converters.ToFileSizeString(FileSize.Value) : Converters.ToFileSizeString(0L);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ using Windows.UI.Xaml.Data;
|
|||
namespace Microsoft.Toolkit.Uwp.UI.Converters
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts a file size in bytes to a more human-readable friendly format using <see cref="Toolkit.Convert.ToFileSizeString(long)"/>
|
||||
/// Converts a file size in bytes to a more human-readable friendly format using <see cref="Toolkit.Converters.ToFileSizeString(long)"/>
|
||||
/// </summary>
|
||||
public class FileSizeToFriendlyStringConverter : IValueConverter
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Converters
|
|||
{
|
||||
if (value is long size)
|
||||
{
|
||||
return Toolkit.Convert.ToFileSizeString(size);
|
||||
return Toolkit.Converters.ToFileSizeString(size);
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Microsoft.Toolkit
|
|||
/// <summary>
|
||||
/// Set of helpers to convert between data types and notations.
|
||||
/// </summary>
|
||||
public static class Convert
|
||||
public static class Converters
|
||||
{
|
||||
/// <summary>
|
||||
/// Translate numeric file size in bytes to a human-readable shorter string format.
|
Загрузка…
Ссылка в новой задаче