The Decorator Pattern & Extension Methods in c#

前端 未结 5 1986
情歌与酒
情歌与酒 2021-02-04 01:59

Before going to describe my problem first,I would like to define definitions of Decorator and Extension method Decorator

Attach additiona

5条回答
  •  清酒与你
    2021-02-04 02:46

    Ýou miss the dynamic part of the decorator pattern. Extension methods are static beasts defined at compile time and can be used or not... but not modified / exchanged at runtime.

提交回复
热议问题