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