📜  json忽略属性c#代码示例

📅  最后修改于: 2022-03-11 14:49:19.890000             🧑  作者: Mango

代码示例1
public class Account
{
    public string FullName { get; set; }
    public string EmailAddress { get; set; }

    [JsonIgnore]
    public string PasswordHash { get; set; }
}