你的位置: 码友网首页 / 资讯源列表 / Improving Method and Function Clarity

关于[Improving Method and Function Clarity]的摘要:

When you look at a method or function, it should have a name that describes what it does. Naming things is hard but important, and probably the most important thing you can do when you design a method is give it a good name. This mainly applies to methods (or functions) that are or may be called from more than one place. It's less necessary when the function is just a lambda expression (as are very common in LINQ and other C# patterns) or a callback (as are very common in JavaScript designs).

原文地址: https://ardalis.com/improving-method-function-clarity/

收录时间: 2021-06-23 浏览量: 860 分类: C#

| 0 收藏 | 0