假设我有一个自动实现的属性
public int SheetNum { get; set; }
无论如何将默认值设置SheetNum
为1,所以它就像
private int sheetNum = 1;
public int SheetNum
{
set { this.sheetNum = value; }
get { return this.sheetNum; }
}
假设我有一个自动实现的属性
public int SheetNum { get; set; }
无论如何将默认值设置SheetNum
为1,所以它就像
private int sheetNum = 1;
public int SheetNum
{
set { this.sheetNum = value; }
get { return this.sheetNum; }
}