C# 如何创建名为“的属性”;勾选“;?

C# 如何创建名为“的属性”;勾选“;?,c#,jquery,asp.net-mvc,jquery-easyui,C#,Jquery,Asp.net Mvc,Jquery Easyui,我想用。因此,我创建了一个用于此jquery树的类 Jquery树数据格式示例 [{ "id":1, "text":"Folder1", "iconCls":"icon-save", "children":[{ "text":"File1", "checked":true },{ "text":"Books", "state":"open",

我想用。因此,我创建了一个用于此jquery树的类

Jquery树数据格式示例

[{  
    "id":1,  
    "text":"Folder1",  
    "iconCls":"icon-save",  
    "children":[{  
        "text":"File1",  
        "checked":true  
    },{  
        "text":"Books",  
        "state":"open",  
        "attributes":{  
            "url":"/demo/book/abc",  
            "price":100  
        },  
        "children":[{  
            "text":"PhotoShop",  
            "checked":true  
        },{  
            "id": 8,  
            "text":"Sub Bookds",  
            "state":"closed"  
        }]  
    }]  
    },{  
    "text":"Languages",  
    "state":"closed",  
    "children":[{  
        "text":"Java"  
    },{  
        "text":"C#"  
    }]  
}]
我的型号

public class MetersTreeNode
{
    public int id { get; set; }
    public string text { get; set; }
    public string state { get; set; }
    public bool checked { get; set; } //I cant define.
    public string attributes { get; set; }
    public ICollection<MetersTreeNode> children { get; set; }
}
要使用
已选中
参数。我应该在我的模型中定义它。但我不能给它下定义<代码>(错误:“类结构或接口成员声明中的无效标记“已检查”)。我怎样才能做到这一点。或者,如果不可能,另一种方法来实现我想要的

谢谢。

请使用:

public bool @checked { get; set; }
是保留的C#关键字

public bool @checked { get; set; }