/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Converters/UInt32ToStringConverter.cs
27 строк
589 B
Steve
Code Quality: Upgrade dependencies (#16741)
09 фев 2025, 05:02
Не верифицирован
09 фев 2025, 05:02
273c947
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. using Microsoft.UI.Xaml.Data; namespace Files.App.Converters { internal sealed partial class UInt32ToStringConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { return value is not null ? value.ToString() : string.Empty; } public object ConvertBack(object value, Type targetType, object parameter, string language) { try { return uint.Parse(value as string); } catch (FormatException) { return null; } } } }