Made .showembed always output lowercase field names and no null values

This commit is contained in:
Kwoth
2021-12-14 19:41:07 +01:00
parent 9be8140d4d
commit 83daf3c30f
3 changed files with 27 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
using System.Text.Json;
namespace SystemTextJsonSamples
{
public class LowerCaseNamingPolicy : JsonNamingPolicy
{
public static LowerCaseNamingPolicy Default = new LowerCaseNamingPolicy();
public override string ConvertName(string name) =>
name.ToLower();
}
}