glideapps/quicktype

Translate invalid name characters into equivalent names

已关闭

#631 创建于 2018年3月6日

 (3 条评论) (1 个反应) (0 位负责人)TypeScript (968 个派生)batch import
good first issuenaming

仓库指标

星标
 (10,867 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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; }
}

贡献者指南