How do I create a new delegate type based on an existing one, in C#?

前端 未结 4 1081
别那么骄傲
别那么骄傲 2021-02-12 21:23

Is there any way that I can create a new delegate type based on an existing one? In my case, I\'d like to create a delegate MyMouseEventDelegate which would have th

4条回答
  •  抹茶落季
    2021-02-12 22:03

    No. According to the C# documentation, delegate types are sealed, and you cannot create a new delegate type that inherits from an existing one.

提交回复
热议问题