1.每次都要写set方法和get方法,我好难呀!有什么能够自动生成get方法和set方法的简单操作吗?
在文档空白处右击,选择源代码操作。
public string name{get;set;}
这样就可以了