コード例 #1
0
        public void NotifySubscriber(int temperature)
        {
            foreach (WeatherSubscriber WS in WSList)
            {
                WS.Notify(temperature);
            }

            foreach (WeatherSubscriber WS in WSList)
            {
                WS.DisplayWeather();
            }
        }