C# Events without arguments. How do I handle them?

前端 未结 5 1351
无人及你
无人及你 2020-12-30 23:35

I\'m currently working on a menu system for a game and I have the standard hierarchy for screens and screen elements. (Screens contain some collection of screen elements). I

5条回答
  •  孤独总比滥情好
    2020-12-31 00:35

    (Maybe just the EventArgs base class?)

    You should do exactly that.

    From the MSDN Docs on EventArgs:

    This class contains no event data; it is used by events that do not pass state information to an event handler when an event is raised.

提交回复
热议问题