Skip to content

Commit b75016f

Browse files
committed
Anpassung Semantik im Event-Beispiel zur Preisaenderung
1 parent ecdc8c6 commit b75016f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

22_Events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ public class Stock{
337337
public decimal Price{
338338
get { return price; }
339339
set { if (price != value){
340-
if (OnPropertyPriceChanged != null){
341-
OnPropertyPriceChanged();
342-
price = value;
343-
}
340+
price = value;
341+
if (OnPropertyPriceChanged != null){
342+
OnPropertyPriceChanged();
343+
}
344344
}
345345
}
346346
}

0 commit comments

Comments
 (0)