6 references to IndexOf
System.Windows.Forms (1)
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
191
int IList.IndexOf(object? value) =>
IndexOf
((string)value!);
System.Windows.Forms.Tests (5)
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (5)
101
Assert.Equal(0, collection.
IndexOf
(s));
102
Assert.Equal(-1, collection.
IndexOf
("anotherValue"));
103
Assert.Equal(-1, collection.
IndexOf
(null));
111
Assert.Equal(-1, collection.
IndexOf
("value"));
112
Assert.Equal(-1, collection.
IndexOf
(null));