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)
1064
Assert.Equal(-1, collection.
IndexOf
(0));
1065
Assert.Equal(-1, collection.
IndexOf
(1));
1078
Assert.Equal(-1, collection.
IndexOf
(0));
1079
Assert.Equal(0, collection.
IndexOf
(1));
1080
Assert.Equal(-1, collection.
IndexOf
(2));
1085
Assert.Equal(0, collection.
IndexOf
(0));
1086
Assert.Equal(1, collection.
IndexOf
(1));
1087
Assert.Equal(-1, collection.
IndexOf
(2));