Describe your class structure as Json
PM> Install-Package ClassStructureJson
Class sample
public class Person
{
public string Name { get; set; }
public DateTime CreatedAt { get; set; }
public int Age { get; set; }
public SubClassTest SomeProperty { get; set; }
}
public class SubClassTest
{
public bool TestBoolean { get; set; }
public uint? TestUintNullable { get; set; }
}
Describing class structure
using ClassStructureJson;
// ...
var strategy = new SnakeCaseNamingStrategy();
var json = typeof(Person).GetClassStructure();
Console.WriteLine(json);
Output
{
"name": "string",
"created_at": "DateTime",
"age": "int",
"some_property": {
"test_boolean": "boolean",
"test_uint_nullable": "uint?"
}
}
Please, refer to CONTRIBUTING
Open a new Issue following our issue template ISSUE TEMPLATE
See in nuget version history
if you liked this project, please make a contribution and help to keep this and other initiatives, send me some Satochis.
BTC Wallet: 1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX