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