c# - Casting and Types Question -
    I am bubbling events in my application and therefore using the bubble event method, since this method handled all kinds of bubble events They have a switch, or if to determine which type of event we are dealing with, I was wondering if I could create different versions of the Event Arrogs class and get around this. So explain to me, say that I have two types of events called different X and Y, I create new event ARGs classes for these two incidents because they store different types of information.      public class events rrxx: events public class event events: events@rgbuelwyven    Then when I come from anywhere in my application, then I will be one of two event AGR types I can also pass, so ..    EventArgsX Fox = New EventArgsX (); RaiseBubbleEvent (zero, foox);    or    EventAgargacyFoo = new eventArshji (); RaiseBubbleEvent (zero, fooy);    Then the OnBubbleEvent method picks up, which signatures overbride onbill events (object source, eventArgse E)   I can not now overload th...