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

貢獻者指南