System.Windows.Forms.CommandBarComboBox.Dispose C# (CSharp) Method

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (this.comboBox != null)
                {
                    this.comboBox.SelectedIndexChanged -= new EventHandler(this.ComboBox_SelectedIndexChanged);
                    this.comboBox = null;
                }
            }

            base.Dispose(disposing);
        }