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

貢獻者指南