13 references to IndexOf
System.Windows.Forms (5)
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (5)
68
return
IndexOf
(item) != -1;
112
return
IndexOf
(itemAsInt);
127
int index =
IndexOf
(item);
132
index =
IndexOf
(item);
252
int index =
IndexOf
(item);
System.Windows.Forms.Tests (8)
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (8)
1066
Assert.Equal(-1, collection.
IndexOf
(0));
1067
Assert.Equal(-1, collection.
IndexOf
(1));
1080
Assert.Equal(-1, collection.
IndexOf
(0));
1081
Assert.Equal(0, collection.
IndexOf
(1));
1082
Assert.Equal(-1, collection.
IndexOf
(2));
1087
Assert.Equal(0, collection.
IndexOf
(0));
1088
Assert.Equal(1, collection.
IndexOf
(1));
1089
Assert.Equal(-1, collection.
IndexOf
(2));