Exemple #1
0
 public static CSharpProperty Map(ApiObject obj)
 {
     return(new CSharpProperty
     {
         Name = obj.Name.ToBeautifiedName(),
         Summary = new CSharpSummary(obj.Description),
         Type = obj.GetCSharpType(preferNullable: true),
         Attributes = obj.Name.StartsWithNumber() ? new[] { GetJsonPropertyAttribute(obj.Name) } : null
     });
 }