public class MyTypescriptInterface {
[JsonProperty("propOne")]
public object PropOne;
[JsonProperty("propTwo")]
public string PropTwo;
[JsonProperty("propThree")]
public IEnumerable<int> PropThree;
[JsonProperty("propFour")]
public bool PropFour;
}
public class AnActualClass {
[JsonProperty("aProperty")]
public string AProperty;
}
public class AnotherTypescriptInterface {
[JsonProperty("nestedObjectsInAList")]
public IEnumerable<MyTypescriptInterface> NestedObjectsInAList;
[JsonProperty("recursiveObject")]
public AnotherTypescriptInterface RecursiveObject;
[JsonProperty("isReallyCool")]
public bool IsReallyCool;
}
Commands
Command
Description
TS => CS: Generate classes from interfaces
Generate CSharp classes from the current selected Typescript interfaces or classes
TS => CS: Generate classes from exported interfaces
Generate CSharp classes from the current selected Typescript interfaces; only including exported interfaces or classes