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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -