很多时候在我的程序中创建其他类可以订阅而不是创建委托并从委托创建事件的简单事件时,我只需使用Action或Func创建事件,以避免必须创建委托.
这样做有什么缺点吗?
c# events delegates action func
action ×1
c# ×1
delegates ×1
events ×1
func ×1