コード例 #1
0
        public void NotifyObervers()
        {
            var iterator = Observers.GetEnumerator();

            while (iterator.MoveNext())
            {
                var observer = iterator.Current;
                observer.Update(Duck);
            }
        }