MonoMobile.Views.Theme.Dispose C# (CSharp) Method

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void
		protected override void Dispose(bool disposing)
		{
			if (disposing)
			{
				_Cell = null;
			}

			base.Dispose(disposing);
		}

Usage Example

        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);
        }
All Usage Examples Of MonoMobile.Views.Theme::Dispose