Wed 13 Nov 2002
You can “upcast” (my term for treating a base class type as an inherited class type) the EventArgs in a method like OnBubbleEvent by checking the e argument (of type System.EventArgs) using the TypeOf keyword in Visual Basic.NET or the is keyword in C#. More on this later.
Leave a Reply
You must be logged in to post a comment.



