09 2021 档案

Effective C#:改善C#代码的50个有效方法(1)
摘要:第1章 C#语言的编程习惯 第1条:优先使用隐式类型的局部变量目录 注意力放在变量的语意上,而不是类型上。 var HighestSellingProduct = someObject.DoSomeWork(anotherParameter); 防止窄化转换。 var total = 100 * f 阅读全文

posted @ 2021-09-18 08:35 OctoberKey 阅读(227) 评论(0) 推荐(0)

属性递归调用的bug
摘要:public double FocalLength { get => FocalLength; private set => FocalLength = value; } private double _focalLength; 阅读全文

posted @ 2021-09-14 16:44 OctoberKey 阅读(36) 评论(0) 推荐(0)

导航