C# get set 方法 设置默认值

public int Id { get; set; } = 1;

原文地址:https://www.cnblogs.com/zhangxiaoshuai/p/8006647.html