glideapps/quicktype

Translate invalid name characters into equivalent names

Open

#631 geöffnet am 6. März 2018

Auf GitHub ansehen
 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)TypeScript (968 Forks)batch import
good first issuenaming

Repository-Metriken

Stars
 (10.867 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide