Rename Convert to Converters to not clash with system one.

This commit is contained in:
michael-hawker 2019-10-24 21:11:46 -07:00
Родитель 3ace37ee1b
Коммит 245187e940
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -70,7 +70,7 @@ namespace Microsoft.Toolkit.Services.OneDrive
{ {
get 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 namespace Microsoft.Toolkit.Uwp.UI.Converters
{ {
/// <summary> /// <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> /// </summary>
public class FileSizeToFriendlyStringConverter : IValueConverter public class FileSizeToFriendlyStringConverter : IValueConverter
{ {
@ -17,7 +17,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Converters
{ {
if (value is long size) if (value is long size)
{ {
return Toolkit.Convert.ToFileSizeString(size); return Toolkit.Converters.ToFileSizeString(size);
} }
return string.Empty; return string.Empty;

Просмотреть файл

@ -11,7 +11,7 @@ namespace Microsoft.Toolkit
/// <summary> /// <summary>
/// Set of helpers to convert between data types and notations. /// Set of helpers to convert between data types and notations.
/// </summary> /// </summary>
public static class Convert public static class Converters
{ {
/// <summary> /// <summary>
/// Translate numeric file size in bytes to a human-readable shorter string format. /// Translate numeric file size in bytes to a human-readable shorter string format.