How to represent “event” in a UML Class Diagram?
问题 This is my code snippet public class Notation : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private Notes _note; } How to write public event PropertyChangedEventHandler PropertyChanged; in UML Class diagram properly? First, I think it's : +PropertyChanged: PropertyChangedEventHandler But then, I realized that it doesn't represent the event part of the code. Any idea? Thanks 回答1: Here comes the UML stereotype in the game. Just stereotype this property: