我正在制作学生模块应用程序,在此期间,我需要使用列表框编辑值。我需要使用支持变量和get方法。
我没有在课堂上报道这些材料,并感谢一些建议!
该程序需要访问文件中的列表值,编辑标记并更新列表。
This question shows how backing variables are used in getters and setters
一旦将用户的输入存储在变量(例如string input
)中,就可以创建一个
public string userInput { get; set; }
类似于上面提到的问题。然后使用userInput.set(input)
将变量设置为用户输入。