.net core get set赋默认值 电脑版发表于:2022/7/20 22:16 简单类型 ``` public int Id { get; set; } = 1; public int pageNo { get; set; } = 1; public int pageSize { get; set; } = 10; ``` 对象类型: ``` public Data<T> Data { get; set; } = new Data<T>(); ```