Thinbug
News
“public bool xy”和“public bool xy {get; set;}之间的区别
时间:2018-02-01 12:16:36
标签:
c#
我对C#很陌生,这是一个我仍然无法理解的概念。
如果我将bool设置为公开,我可以写上它,并从中读取。为什么有必要向其添加
{get; set;}
?
0 个答案:
没有答案
相关问题
“bool”和“bool”有什么区别?
公共和公共静态的区别?
公共区别{get; set}和编程getter和setter
bool和BOOL有什么区别?
(重复)'public int x;'之间的区别和'public int x {get;组; }
Public Bool Get Set Statement
BOOL和bool之间的区别和优势
bool和* bool之间的区别
operator.truth和bool之间的区别
“public bool xy”和“public bool xy {get; set;}之间的区别
最新问题
我写了这段代码,但我无法理解我的错误
我无法从一个代码实例的列表中删除 None 值,但我可以在另一个实例中。为什么它适用于一个细分市场而不适用于另一个细分市场?
是否有可能使 loadstring 不可能等于打印?卢阿
java中的random.expovariate()
Appscript 通过会议在 Google 日历中发送电子邮件和创建活动
为什么我的 Onclick 箭头功能在 React 中不起作用?
在此代码中是否有使用“this”的替代方法?
在 SQL Server 和 PostgreSQL 上查询,我如何从第一个表获得第二个表的可视化
每千个数字得到
更新了城市边界 KML 文件的来源?