protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | void |
protected override void Dispose(bool disposing)
{
if (disposing)
{
_Cell = null;
}
base.Dispose(disposing);
}
protected override void Dispose(bool disposing) { if (disposing) { Controller = null; Cell = null; if (DataContext != null) { _DataContext.RemoveNotifyPropertyChangedHandler(_DataContext.Source, this); _DataContext.RemoveNotifyPropertyChangedHandler(_DataContext.DataContextSource, this); DataContext.Dispose(); } Value = default(T); if (Theme != null) { Theme.Dispose(); Theme = null; } } base.Dispose(disposing); }