Best practices: C# Extension methods namespace and promoting extension methods

后端 未结 10 1018
南方客
南方客 2021-02-02 06:43

I know there exists already a post, describing nearly the same, but I think mine is a bit different.

What I would like to know is how you organize your extension methods

10条回答
  •  离开以前
    2021-02-02 07:23

    I'm dumb, lazy and minimalistic, so I put them at the same namespace as the type they extend. In this way there is no need for extra using statements, documentation or emailing about them (Winston).

提交回复
热议问题