/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Services/DateTimeFormatter/DateTimeFormatterFactory.cs
16 строк
572 B
Yair
Code Quality: Ran code cleanup (#17307)
25 июл 2025, 03:57
Не верифицирован
25 июл 2025, 03:57
4558bc2
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. namespace Files.App.Services.DateTimeFormatter { public sealed class DateTimeFormatterFactory : IDateTimeFormatterFactory { public IDateTimeFormatter GetDateTimeFormatter(DateTimeFormats dateTimeFormat) => dateTimeFormat switch { DateTimeFormats.Application => new ApplicationDateTimeFormatter(), DateTimeFormats.System => new SystemDateTimeFormatter(), DateTimeFormats.Universal => new UniversalDateTimeFormatter(), _ => throw new ArgumentException(nameof(dateTimeFormat)), }; } }