Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用Action和Func类型是否有任何编码约定?即,我很好奇它们在用作方法(Action someAction或Action SomeAction)中的参数时是否应该将首字母大写。
Action
Func
Action someAction
Action SomeAction
我认为它们将遵循与传递给方法的任何参数相同的约定。在 C# 中,方法参数的最常见约定似乎是 Camel 大小写。所以,对于 Actions 和 Funcs,我也会坚持这一点。