/// <summary> /// Override this to free resources /// </summary> /// <param name="disposing">true is Dispose() has been called</param> protected virtual void Dispose(bool disposing) { if (disposed) { return; } if (disposing) { // Free any other managed objects here. // } // Free any unmanaged objects here. // foreach (UIButton button in this) { if (subscribeCount > 0) { button.ButtonEvent -= new UIObjectButtonEventHandler(OnButtonEvent); } button.Dispose(); } InternalDictionary.Clear(); disposed = true; }
public void Clear() { if (InternalDictionary.Count > 0) { InternalDictionary.Clear(); OnPropertyChanged(); CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); } }
public virtual void Dispose() { ViewTimeOut.Dispose(); foreach (UIViewController view in this) { view.VisibilityChange -= ViewController_VisibilityChange; view.Dispose(); } InternalDictionary.Clear(); }
/// <summary> /// Removes all objects from this set. /// </summary> public override void Clear() { InternalDictionary.Clear(); }
/// <summary> /// Limpia los elementos /// </summary> public void Clear() { InternalDictionary.Clear(); }
void ICollection <KeyValuePair <EK, EV> > .Clear() { InternalDictionary.Clear(); }