0
禁止用户从System.MulticastDelegate继承的基本原理是什么?为什么C#/ VB.NET编译器不允许派生自System.MulticastDelegate的类?
禁止用户从System.MulticastDelegate继承的基本原理是什么?为什么C#/ VB.NET编译器不允许派生自System.MulticastDelegate的类?
MulticastDelegate
仅供编译器自己创建委托类型,全部来自MulticastDelegate
。它是而不是意味着被用户分类。这与System.ValueType
类似,仅用于实现struct
类型。
什么是从'MulticastDelegate'继承的用例?我无法想象一个。 – 2011-04-23 04:20:51
从MulticastDelegate继承的示例用例是事件拦截。 – plaureano 2011-04-23 04:51:21