开发者

Why doesn't the C#/VB.NET compiler allow classes to be derived from System.MulticastDelegate?

What was the rationale behind prohibiting users from inheriting from开发者_开发知识库 System.MulticastDelegate?


MulticastDelegate is only meant for the compilers themselves to create delegate types, which all derive from MulticastDelegate. It is not meant to be subclassed by users. This is similar to System.ValueType which is only meant for implementing struct types.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜