How do you show events in UML Class Diagrams? [closed]
问题 This one has me stumped regularly while creating top level class diagrams for documentation. Methods and attributes/fields are easy to model. I usually end up adding a method named EvChanged to indicate a .Net event Changed. What is the right way to show that a type publishes a specific event? 回答1: Just add an «event» stereotype to a classifier attribute. 回答2: I find onEventName() the easiest naming scheme for event callbacks, but how to indicate which events an object can broadcast I've not