How to represent “event” in a UML Class Diagram?

后端 未结 2 1324
-上瘾入骨i
-上瘾入骨i 2021-02-20 12:49

This is my code snippet

public class Notation : INotifyPropertyChanged
{
    public event PropertyChangedEventHandler PropertyChanged;

    private Notes _note;
         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-02-20 13:30

    Here is the UML stereotype in the game. Just stereotype this property:

    enter image description here

    Note that _note is a plain, private property.

提交回复
热议问题