mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
21 lines
563 B
C#
21 lines
563 B
C#
// 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.Text.Json;
|
|
|
|
using FancyZonesEditor.Utils;
|
|
|
|
namespace FancyZonesEditor
|
|
{
|
|
public class DashCaseNamingPolicy : JsonNamingPolicy
|
|
{
|
|
public static DashCaseNamingPolicy Instance { get; } = new DashCaseNamingPolicy();
|
|
|
|
public override string ConvertName(string name)
|
|
{
|
|
return name.UpperCamelCaseToDashCase();
|
|
}
|
|
}
|
|
}
|