Are extension methods an object-oriented feature of C#?

前端 未结 6 1331
迷失自我
迷失自我 2020-12-19 16:48

Do extension methods follow the object-oriented paradigm in C#?

Is it a good practice to use extension methods?

In the software development lifecycle how s

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-19 17:40

    Extension Methods are just static methods that work with a specific Class or Class Hierarchy. Python is OO but has modules, Ruby has mixins. I see it more as a language feature. I am pretty sure its still OO friendly

提交回复
热议问题