Events of a non-delegate type

前端 未结 4 414
一生所求
一生所求 2021-01-03 03:27

I\'ve implemented a class that looks like this interface:

[ImmutableObject(true)]
public interface ICustomEvent
{
    void Invoke(object sender, EventArgs e)         


        
4条回答
  •  伪装坚强ぢ
    2021-01-03 04:00

    What are you trying to accomplish that you can't use delegates/events for?

    This screams Reinventing the Square Wheel (bottom of the page), but that could just as well be me not understanding the problem.

提交回复
热议问题