[Best Practice] Event args should inherit from EventArgs

Created at 05 Feb 2021, 11:22
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JE

JerryTrader

Joined 06.01.2021

[Best Practice] Event args should inherit from EventArgs
05 Feb 2021, 11:22


Hello guys, 

I won't post here why it is considered as a best practice, but unless you did not inherited your classes from EventArgs on purpose, I think it might be great to do so.
If you decide not to inherit from EventArgs, could you please tell me why ? I'm curious about the reasons (for my personal curiosity).

Keep up the good work.

Thanks !
Jerry


cTrader Automate
@JerryTrader