예제 #1
0
 public void RaiseAlarm()
 {
     OnAlarmRaised?.Invoke();
 }
예제 #2
0
 // Called to raise an alarm
 public void RaiseAlarm()
 {
     // Only raise the alarm if someone has
     // subscribed.
     OnAlarmRaised?.Invoke();
 }