System.Windows.Controls.AutoCompleteBox.ClearView C# (CSharp) Method

ClearView() private method

A simple helper method to clear the view and ensure that a view object is always present and not null.
private ClearView ( ) : void
return void
        private void ClearView()
        {
            if(_view == null)
            {
                _view = new ObservableCollection<object>();
            }
            else
            {
                _view.Clear();
            }
        }