printing contents of EventArgs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way I can list the contents of all the EventArgs passed to a
specific method?

Thanks,
Ben
 
An EventArges instance passed into a method as a parameter is an instance of
a class, so you can set a breakpoint inside the method, and when hit, you
should be able to mouse over the "e" parameter and look at the properties.
 
In the debugger, you simply "Add Watch" or in 2.0/2005, expand the object.

You ~could override the .ToString() method, and show a "listing" of data.
But that's kinda hacky....................
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top