ComponentFactory.Krypton.Toolkit.ViewComposite.Dispose C# (CSharp) Method

Dispose() protected method

Release unmanaged and optionally managed resources.
protected Dispose ( bool disposing ) : void
disposing bool Called from Dispose method.
return void
        protected override void Dispose(bool disposing)
        {
            // Dispose of all child views
            while (this.Count > 0)
            {
                this[0].Dispose();
                this.RemoveAt(0);
            }

            _views.Clear();

            // Must call base class to finish disposing
            base.Dispose(disposing);
        }