/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/imageresizer/ui/Helpers/ResourceLoaderInstance.cs
27 строк
763 B
moooyo
Migrate ImageResizer to WinUI3 (#45288)
01 апр 2026, 11:22
Не верифицирован
01 апр 2026, 11:22
ac28b1c
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using Microsoft.Windows.ApplicationModel.Resources; namespace ImageResizer.Helpers { internal static class ResourceLoaderInstance { private static Func<string, string> _getString; internal static Func<string, string> GetString { get => _getString ??= CreateDefault(); set => _getString = value; } private static Func<string, string> CreateDefault() { var loader = new ResourceLoader("PowerToys.ImageResizer.pri"); return loader.GetString; } } }