Advertisements

Why do event arguments derive from EventArgs?

I just found myself creating a new EventArgs to go with a custom event handler in C# and I remembered the standard advice of “always derive your event args classes from System.EventArgs”. The thing is, I have no idea why you would want to do this. I don’t see any value in dealing with things in terms of the base class, and it doesn’t provide any features, so why bother?

Advertisements
Categories: Etc
%d bloggers like this:
search previous next expand menu location phone mail time cart zoom edit close