小编Sum*_*itk的帖子

对类的每个类变量使用“this”关键字是一种好习惯吗?

我只想知道在课堂上将这个关键字与类变量一起使用是好的做法还是坏的做法?

如果我使用会减少或增加应用程序的运行时间/编译时间吗?如下所示:-

this.FirsName = cust.name;
this.LastName = cust.Lname;
this.Age = cust.age;
this.DOB = cust.dob;
Run Code Online (Sandbox Code Playgroud)

等等超过 1000 行代码......

.net c# this

0
推荐指数
1
解决办法
97
查看次数

标签 统计

.net ×1

c# ×1

this ×1