public bool checked {get;set;}
我想定义一个属性 checked ,但是这个好像是保留字,该怎么办呢?
public class EasyTree
{
public EasyTree(string id, string text, string state, string icon, List<EasyTree> children,bool @checked)
{
this.id = id;
this.text = text;
this.state = state;
this.iconCls = icon;
this.children = children;
this.@checked = @checked;
}
public string id { get; set; } //节点-value
public string text { get; set; } //节点-文字显示
public string state { get; set; } //节点-状态-open,closed
public string iconCls { get; set; } //节点-图标
public List<EasyTree> children { get; set; } //节点-子节点
public bool @checked {get;set;}
}