コード例 #1
0
ファイル: BaseObservable.cs プロジェクト: anil0225/AlgoDS
 public void Notify()
 {
     if (WeatherChanging != null)
     {
         WeatherChanging.Invoke(this, _state);
     }
 }
コード例 #2
0
 //This emits Rain, BlueSky or Cloudy
 protected virtual void OnWeatherChanging(string weatherType)
 {
     WeatherChanging?.Invoke(this, new WeatherChangingArgs()
     {
         type = weatherType
     });
 }