The requirement is that object A
subscribes to B
's event which carries int
as an argument. I've done this in given manner:
public delegate void BackToBase(int i);
public event BackToBase BackToBaseEvent;
...
if (this.BackToBaseEvent != null)
this.BackToBaseEvent(5);
But it seems to me there is a shorter way to do that. Is there?