Serialize Custom Attribute Values
问题 Given the following class: public class PayrollReport { [UiGridColumn(Name = "fullName",Visible = false,Width = "90")] public string FullName { get; set; } [UiGridColumn(Name = "weekStart", CellFilter = "date")] public DateTime WeekStart { get; set; } } And this custom attribute [AttributeUsage(AttributeTargets.All)] public class UiGridColumn : Attribute { public string CellFilter { get; set; } public string DisplayName { get; set; } public string Name { get; set; } public bool Visible { get;