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