14 references to Contains
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
266bool IList.Contains(object? value) => Contains(value!);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
288if (e.Component is ListBoxItem && _selectedColumns.Items.Contains(e.Component))
System.Windows.Forms.Tests (12)
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (12)
3943Assert.False(collection.Contains(0)); 3944Assert.False(collection.Contains(1)); 3945Assert.False(collection.Contains(new object())); 3958Assert.False(collection.Contains(0)); 3959Assert.True(collection.Contains(1)); 3960Assert.False(collection.Contains(2)); 3961Assert.False(collection.Contains(new object())); 3966Assert.True(collection.Contains(0)); 3967Assert.True(collection.Contains(1)); 3968Assert.False(collection.Contains(2)); 3969Assert.False(collection.Contains(new object())); 3978Assert.Throws<ArgumentNullException>("value", () => collection.Contains(null));