c# - Best Practice for IEnumerable in event arguments -


i have dll including class managing audio , midi ports , connections. whenever ports registered or deregistered or connections formed or released, class fires event, connectionchanged custom event arguments including properties enum changetype , ienumerable<connection> changedconnections

now question is: should send changed connections or change property of event args connections , send ienumerable containing active connections?

in opinion, event called "connectionchanged", should include connections apply event in event arguments. make active connections accessible using member on class.

when firing event. send actual object raised event in member sender. if interested in active connections, can obtained through sender object.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -