jtr/DevDisciples.Json.Tools/Json2CSharpTranslator.PropertyTranslation.cs
2024-09-15 17:23:27 +02:00

17 lines
434 B
C#

using Humanizer;
namespace DevDisciples.Json.Tools;
public static partial class Json2CSharpTranslator
{
public struct PropertyTranslation : ITranslation
{
public string Name { get; set; }
public string Type { get; set; }
public void Translate(Context context)
{
context.Builder.Append($"\tpublic {Type} {Name.Pascalize()} {{ get; set; }}\n");
}
}
}