.NET EventHandlers - Generic or no?

后端 未结 9 1901
遇见更好的自我
遇见更好的自我 2020-12-03 13:53

Every time I start in deep in a C# project, I end up with lots of events that really just need to pass a single item. I stick with the EventHandler/Event

9条回答
  •  旧巷少年郎
    2020-12-03 14:17

    No, I don't think this is the wrong approach. I think it's even recommended in the [fantastic] book Framework Design Guidelines. I do the same thing.

提交回复
热议问题