我的属性设置如下:
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string TId { get; set; }
Run Code Online (Sandbox Code Playgroud)
我还希望能够确保这是驼峰式的。
[JsonProperty("tId")]
public string TId { get; set; }
Run Code Online (Sandbox Code Playgroud)
我怎样才能将这些合而为一?
[JsonProperty(PropertyName = "tId", NullValueHandling = NullValueHandling.Ignore)]
public string TId { get; set; }
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
892 次 |
| 最近记录: |