Esempio n. 1
0
 /// <summary> Remove an <see cref="T:IObserver" /> to the observer list. </summary>
 /// <param name="observer"> The object unsubscribing to events. </param>
 public void Unsubscribe(Mapbox.Utils.IObserver <T> observer)
 {
     this.observers.Remove(observer);
 }
Esempio n. 2
0
 /// <summary> Add an <see cref="T:IObserver" /> to the observer list. </summary>
 /// <param name="observer"> The object subscribing to events. </param>
 public void Subscribe(Mapbox.Utils.IObserver <T> observer)
 {
     this.observers.Add(observer);
 }