glideapps/quicktype

Translate invalid name characters into equivalent names

Open

#631 创建于 2018年3月6日

在 GitHub 查看
 (3 评论) (1 反应) (0 负责人)TypeScript (10,867 star) (968 fork)batch import
good first issuenaming

描述

Demonstrated by NotExecutable on Reddit:

{"#": "foo", "##": "bar" }

produces this type with strange propery names in C#:

public partial class Root
{
    public string Empty { get; set; }
    public string Purple { get; set; }
}

This would be nicer:

public partial class Root
{
    public string Hash { get; set; }
    public string HashHash { get; set; }
}

贡献者指南