📜  c# 获取设置值 - C# 代码示例

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

代码示例1
public int Id { get; set; }
private string name;
public string Name
{
    get { return this.name; }
    set { this.name = value; }
}