/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/powerdisplay/PowerDisplay.Models/ProfileSerializationContext.cs
28 строк
1017 B
moooyo
[PD] Re-enable PowerDisplay (#46489)
10 апр 2026, 10:14
Не верифицирован
10 апр 2026, 10:14
0089de3
Код
Авторство
О чём код?
// 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.Collections.Generic; using System.Text.Json.Serialization; namespace PowerDisplay.Models { /// <summary> /// JSON serialization context for PowerDisplay Profile types. /// Provides source-generated serialization for Native AOT compatibility. /// </summary> [JsonSourceGenerationOptions( WriteIndented = false, DefaultIgnoreCondition = JsonIgnoreCondition.Never, IncludeFields = true)] // Profile Types [JsonSerializable(typeof(ProfileMonitorSetting))] [JsonSerializable(typeof(List<ProfileMonitorSetting>))] [JsonSerializable(typeof(PowerDisplayProfile))] [JsonSerializable(typeof(List<PowerDisplayProfile>))] [JsonSerializable(typeof(PowerDisplayProfiles))] public partial class ProfileSerializationContext : JsonSerializerContext { } }