c# Extension methods - design patterns

后端 未结 10 3415
予麋鹿
予麋鹿 2021-02-20 16:33

I would like to know if C# extension method is based on any existing design pattern.

10条回答
  •  遥遥无期
    2021-02-20 16:53

    No, but extension methods are excellent for implementing certain GoF design patterns (e.g., Prototype).

提交回复
热议问题