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

前端 未结 4 1524
温柔的废话
温柔的废话 2021-02-12 21:46

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:02

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

提交回复
热议问题