269 implementations of IndexOf
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (1)
216int IList.IndexOf(object value)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
282int IList.IndexOf(object value)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
241int IList.IndexOf(object value)
Shared\Options\ListValue.cs (1)
151int IList.IndexOf(object value)
GenerateDocumentationAndConfigFiles (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Metrics (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Metrics.Legacy (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.Build.Framework (5)
ImmutableSegmentedList`1.cs (1)
670int IList.IndexOf(object? value)
ImmutableSegmentedList`1+Builder.cs (1)
236int IList.IndexOf(object? value)
ImmutableSegmentedList`1+ValueBuilder.cs (1)
345int IList.IndexOf(object? value)
SegmentedArray`1.cs (1)
240int IList.IndexOf(object? value)
SegmentedList`1.cs (1)
644int IList.IndexOf(object? item)
Microsoft.CodeAnalysis (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.Collections.Package (5)
Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.Extensions.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.Threading.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.Workspaces (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Microsoft.Maui.Controls (4)
ListProxy.cs (1)
91 public int IndexOf(object item)
ObservableWrapper.cs (1)
289 public int IndexOf(object value)
ReadOnlyListAdapter.cs (1)
66 public int IndexOf(object value)
TemplatedItemsList.cs (1)
287 int IList.IndexOf(object item)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
723Private Function IListIndexOf(ByVal value As Object) As Integer Implements IList.IndexOf
PresentationCore (49)
System\Windows\FreezableCollection.cs (1)
447int IList.IndexOf(object value)
System\Windows\Generated\TextDecorationCollection.cs (1)
359int IList.IndexOf(object value)
System\Windows\Input\Command\CommandBindingCollection.cs (1)
85int IList.IndexOf(object value)
System\Windows\Input\Command\InputBindingCollection.cs (1)
96int IList.IndexOf(object value)
System\Windows\Input\Command\InputGestureCollection.cs (1)
85int IList.IndexOf(object value)
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
358int IList.IndexOf(object value)
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
361int IList.IndexOf(object value)
System\Windows\Media\FamilyMapCollection.cs (1)
203int SC.IList.IndexOf(object value)
System\Windows\Media\FamilyTypefaceCollection.cs (1)
189int SC.IList.IndexOf(object value)
System\Windows\Media\Generated\DoubleCollection.cs (1)
325int IList.IndexOf(object value)
System\Windows\Media\Generated\DrawingCollection.cs (1)
380int IList.IndexOf(object value)
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
368int IList.IndexOf(object value)
System\Windows\Media\Generated\GeometryCollection.cs (1)
380int IList.IndexOf(object value)
System\Windows\Media\Generated\GradientStopCollection.cs (1)
368int IList.IndexOf(object value)
System\Windows\Media\Generated\Int32Collection.cs (1)
325int IList.IndexOf(object value)
System\Windows\Media\Generated\PathFigureCollection.cs (1)
369int IList.IndexOf(object value)
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
368int IList.IndexOf(object value)
System\Windows\Media\Generated\PointCollection.cs (1)
325int IList.IndexOf(object value)
System\Windows\Media\Generated\TextEffectCollection.cs (1)
368int IList.IndexOf(object value)
System\Windows\Media\Generated\TransformCollection.cs (1)
380int IList.IndexOf(object value)
System\Windows\Media\Generated\VectorCollection.cs (1)
325int IList.IndexOf(object value)
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
366int IList.IndexOf(object value)
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
378int IList.IndexOf(object value)
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
378int IList.IndexOf(object value)
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
323int IList.IndexOf(object value)
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
378int IList.IndexOf(object value)
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
323int IList.IndexOf(object value)
System\Windows\Media3D\Visual3DCollection.cs (1)
322int IList.IndexOf(object value)
PresentationFramework (17)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
418public override int IndexOf(object item)
MS\Internal\Data\LiveShapingList.cs (1)
518public int IndexOf(object value)
MS\Internal\Documents\ContentElementCollection.cs (1)
435int IList.IndexOf(object value)
System\Windows\Controls\ColumnDefinition.cs (1)
196int IList.IndexOf(object value)
System\Windows\Controls\CustomDictionarySources.cs (1)
219int IList.IndexOf(object value)
System\Windows\Controls\ItemCollection.cs (1)
308public override int IndexOf(object item)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
245public int IndexOf(object value)
System\Windows\Controls\RowDefinition.cs (1)
191int IList.IndexOf(object value)
System\Windows\Controls\UIElementCollection.cs (1)
417int IList.IndexOf(object value)
System\Windows\Data\CompositeCollection.cs (1)
164public int IndexOf(object indexItem)
System\Windows\Documents\TableCellCollection.cs (1)
287int IList.IndexOf(object value)
System\Windows\Documents\TableColumnCollection.cs (1)
294int IList.IndexOf(object value)
System\Windows\Documents\TableRowCollection.cs (1)
287int IList.IndexOf(object value)
System\Windows\Documents\TableRowGroupCollection.cs (1)
287int IList.IndexOf(object value)
System\Windows\Documents\TextElementCollection.cs (1)
440int IList.IndexOf(object value)
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
335int IList.IndexOf(object keyFrame)
System\Windows\TriggerActionCollection.cs (1)
200int IList.IndexOf(object value)
Roslyn.Diagnostics.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
System.CodeDom (1)
System\CodeDom\CodeNamespaceImportCollection.cs (1)
92int IList.IndexOf(object value) => _data.IndexOf((CodeNamespaceImport)value);
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (3)
1349int IList.IndexOf(object? value) 1627int IList.IndexOf(object? value) => value is TKey key ? _dictionary.IndexOf(key) : -1; 1794int IList.IndexOf(object? value)
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableArray_1.cs (1)
1242int IList.IndexOf(object? value)
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
1068int IList.IndexOf(object? value)
System\Collections\Immutable\ImmutableList_1.cs (1)
1030int IList.IndexOf(object? value) => IsCompatibleObject(value) ? this.IndexOf((T)value!) : -1;
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
879int IList.IndexOf(object? value)
System.Collections.NonGeneric (3)
System\Collections\CollectionBase.cs (1)
184int IList.IndexOf(object? value)
System\Collections\SortedList.cs (2)
969public int IndexOf(object? key) 1072public int IndexOf(object? value)
System.Collections.Specialized (2)
System\Collections\Specialized\OrderedDictionary.cs (1)
600int IList.IndexOf(object? value)
System\Collections\Specialized\StringCollection.cs (1)
209int IList.IndexOf(object? value)
System.ComponentModel.TypeConverter (4)
System\ComponentModel\Design\DesignerOptionService.cs (1)
375int IList.IndexOf(object? value)
System\ComponentModel\EventDescriptorCollection.cs (1)
401int IList.IndexOf(object? value) => IndexOf((EventDescriptor?)value);
System\ComponentModel\ListSortDescriptionCollection.cs (1)
52public int IndexOf(object? value) => ((IList)_sorts).IndexOf(value);
System\ComponentModel\PropertyDescriptorCollection.cs (1)
553int IList.IndexOf(object? value) => IndexOf((PropertyDescriptor)value!);
System.Data.Common (5)
System\Data\Common\DataColumnMappingCollection.cs (1)
253public int IndexOf(object? value)
System\Data\Common\DataTableMappingCollection.cs (1)
190public int IndexOf(object? value)
System\Data\Common\DbParameterCollection.cs (1)
115int IList.IndexOf(object? value) => IndexOf(value!);
System\Data\DataView.cs (1)
856int IList.IndexOf(object? value) => IndexOf(value as DataRowView);
System\Data\DataViewManager.cs (1)
181int IList.IndexOf(object? value) => (value == _item) ? 1 : -1;
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListeners.cs (1)
267int IList.IndexOf(object? value)
System.DirectoryServices (1)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (1)
461int System.Collections.IList.IndexOf(object? value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); }
System.DirectoryServices.AccountManagement (1)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (1)
382int System.Collections.IList.IndexOf(object value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); }
System.Linq.Expressions (1)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
294int IList.IndexOf(object? value)
System.ObjectModel (2)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (2)
312public int IndexOf(object? value) => _list.IndexOf(value); 354public int IndexOf(object? value) => Contains(value) ? 0 : -1;
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1050int IList.IndexOf(object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (4)
342public virtual int IndexOf(object? value) 1555public int IndexOf(object? value) 1638public int IndexOf(object? value) 1897public int IndexOf(object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
721int IList.IndexOf(object? item)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
314int IList.IndexOf(object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
209int IList.IndexOf(object? value)
System.Private.Xml (2)
System\Xml\Xsl\ListBase.cs (1)
165int System.Collections.IList.IndexOf(object? value)
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (1)
282int System.Collections.IList.IndexOf(object? value)
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (1)
51public int IndexOf(object? value)
System\Security\Cryptography\Xml\EncryptionPropertyCollection.cs (1)
61int IList.IndexOf(object? value)
System\Security\Cryptography\Xml\ReferenceList.cs (1)
49public int IndexOf(object? value)
System.ServiceModel.Primitives (1)
netstandard.cs (1)
47int IList.IndexOf(object value) { return default; }
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
160int IList.IndexOf(object? value) =>
System\Text\RegularExpressions\GroupCollection.cs (1)
174int IList.IndexOf(object? value) =>
System\Text\RegularExpressions\MatchCollection.cs (1)
173int IList.IndexOf(object? value) =>
System.Windows.Forms (38)
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
191int IList.IndexOf(object? value) => IndexOf((string)value!);
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
448public int IndexOf(object? value)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
26int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
43int IList.IndexOf(object? value) => _items.IndexOf((DataGridViewColumn)value!);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
202public int IndexOf(object? value)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
45int IList.IndexOf(object? value) => _items.IndexOf((DataGridViewRow)value!);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (1)
30int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
26int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (1)
24int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
450int IList.IndexOf(object? value)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
242int IList.IndexOf(object? value)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (1)
170int IList.IndexOf(object? index)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (1)
101public int IndexOf(object? item)
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (1)
108int IList.IndexOf(object? item)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
305int IList.IndexOf(object? value) => IndexOf(value!);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (1)
97int IList.IndexOf(object? selectedIndex)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
147public int IndexOf(object? selectedObject)
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (1)
181int IList.IndexOf(object? checkedIndex)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (1)
273int IList.IndexOf(object? item)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (1)
390int IList.IndexOf(object? value)
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (1)
329int IList.IndexOf(object? item)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (1)
204int IList.IndexOf(object? selectedIndex)
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (1)
368int IList.IndexOf(object? item)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
227int IList.IndexOf(object? value)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (1)
255int IList.IndexOf(object? subItem)
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (1)
174int IList.IndexOf(object? page)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
303int IList.IndexOf(object? value) { return IndexOf((ToolStripItem)value!); }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (1)
118int IList.IndexOf(object? value) { return IndexOf((ToolStripPanelRow)value!); }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
186int IList.IndexOf(object? value) { return IndexOf((Control)value!); }
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
391int IList.IndexOf(object? node) =>
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.MenuItemCollection.cs (1)
78int IList.IndexOf(object value) => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\GridColumnStylesCollection.cs (1)
34int IList.IndexOf(object value) => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\GridTableStylesCollection.cs (1)
32int IList.IndexOf(object value) => throw null;
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.StatusBarPanelCollection.cs (1)
70int IList.IndexOf(object panel) => throw null;
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.ToolBarButtonCollection.cs (1)
72int IList.IndexOf(object button) => throw null;
System\Windows\Forms\DataBinding\BindingSource.cs (1)
1496public virtual int IndexOf(object? value) => List.IndexOf(value);
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
134int IList.IndexOf(object? value) => ((IList)InnerList).IndexOf(value);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
123int IList.IndexOf(object? style) => ((IList)_innerList).IndexOf(style);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
48int IList.IndexOf(object control) => ((IList)_realCollection).IndexOf(control);
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
143int IList.IndexOf(object? value) => value is ImageListImage image ? IndexOf(image) : -1;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2179int IList.IndexOf(object control) => ((IList)_realCollection).IndexOf(control);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
94int IList.IndexOf(object? value) => ((IList)_list).IndexOf(value);
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingSourceTests.cs (1)
814public int IndexOf(object item) => ((IList)_innerList).IndexOf(item);
System.Xaml.Tests (1)
System\Xaml\XamlTypeTests.cs (1)
3236public int IndexOf(object? value) => throw new NotImplementedException();
Test.Utilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
Text.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
672int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
238int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
347readonly int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
239int IList.IndexOf(object? value)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
795int IList.IndexOf(object? item)
323 references to IndexOf
dotnet-svcutil-lib (38)
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerErrorCollection.cs (1)
179return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeArgumentCollection.cs (1)
134return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclarationCollection.cs (1)
134return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeCatchClauseCollection.cs (1)
134return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeCommentStatementCollection.cs (1)
134return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeDirectiveCollection.cs (1)
87return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeExpressionCollection.cs (1)
134return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceCollection.cs (1)
134return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpressionCollection.cs (1)
134return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeStatementCollection.cs (1)
143return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDeclarationCollection.cs (1)
134return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeMemberCollection.cs (1)
134return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeParameterCollection.cs (1)
91return List.IndexOf(value);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceCollection.cs (1)
150return List.IndexOf(value);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectCollection.cs (1)
83return List.IndexOf(item);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
136return List.IndexOf(extension);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAnyElementAttributes.cs (1)
52return List.IndexOf(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlArrayItemAttributes.cs (1)
52return List.IndexOf(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlElementAttributes.cs (1)
52return List.IndexOf(attribute);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (3)
142return List.IndexOf(schema); 153return List.IndexOf(schema); 195return List.IndexOf(schema);
FrameworkFork\System.Web.Services\Services\Description\MimeFormatExtensions.cs (2)
109return List.IndexOf(mimePart); 276return List.IndexOf(match);
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (13)
1603return List.IndexOf(extension); 1899return List.IndexOf(operationMessage); 2091return List.IndexOf(import); 2173return List.IndexOf(message); 2273return List.IndexOf(port); 2373return List.IndexOf(portType); 2473return List.IndexOf(binding); 2573return List.IndexOf(service); 2673return List.IndexOf(messagePart); 2773return List.IndexOf(bindingOperation); 2855return List.IndexOf(bindingOperationFault); 2955return List.IndexOf(operation); 3037return List.IndexOf(operationFaultMessage);
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptions.cs (1)
65return List.IndexOf(serviceDescription);
GenerateDocumentationAndConfigFiles (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Metrics (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Metrics.Legacy (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.Build.Framework (4)
IListCalls.cs (1)
51return list.IndexOf(value);
ImmutableSegmentedList`1.cs (1)
673return backingList.IndexOf(value);
ImmutableSegmentedList`1+ValueBuilder.cs (1)
346=> ((IList)ReadOnlyList).IndexOf(value);
SegmentedArray`1.cs (1)
245var index = list.IndexOf(value);
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.Analyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.Collections.Package (4)
Internal\IListCalls.cs (1)
53return list.IndexOf(value);
Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.Extensions.Package (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.Threading.Package (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.UnitTests (9)
Collections\ImmutableListTestBase.cs (1)
24protected static readonly Func<IList, object?, object> IndexOfFunc = (l, v) => l.IndexOf(v);
Collections\IndexOfTests.cs (1)
57Assert.Equal(-1, ((IList)factory(list)).IndexOf(6));
Collections\List\IList.NonGeneric.Tests.cs (6)
642Assert.Equal(-1, list.IndexOf(value)); 660Assert.Equal(0, list.IndexOf(value)); 675Assert.Equal(0, list.IndexOf(value)); 687Assert.Equal(index, list.IndexOf(list[index])); 700Assert.Throws<ArgumentException>(() => list.IndexOf(value)); 722Assert.Equal(index, list.IndexOf(expected[index]))
Collections\SegmentedArrayTests.cs (1)
89Assert.Throws<NullReferenceException>(() => ((IList)data).IndexOf(IntPtr.Zero));
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Microsoft.Maui (1)
Extensions\EnumerableExtensions.cs (1)
110 return list.IndexOf(item);
Microsoft.Maui.Controls (6)
ListProxy.cs (1)
94 return _list.IndexOf(item);
MultiPage.cs (1)
370 int index = _templatedItems.ListProxy.IndexOf(SelectedItem);
Picker\Picker.cs (1)
387 SetValue(SelectedIndexProperty, ItemsSource.IndexOf(selectedItem), SetterSpecificity.FromHandler);
Shell\ShellElementCollection.cs (1)
133 public virtual int IndexOf(BaseShellItem item) => Inner.IndexOf(item);
TemplatedItemsList.cs (2)
396 return ListProxy.IndexOf(item); 419 return ListProxy.IndexOf(item);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
723Private Function IListIndexOf(ByVal value As Object) As Integer Implements IList.IndexOf
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (1)
1140int tokenIndex = ((IList)XamlNode.ScopeStartTokens).IndexOf(xamlNode.TokenType);
PresentationFramework (34)
MS\Internal\Data\IndexedEnumerable.cs (1)
590value = List.IndexOf(item);
MS\Internal\Documents\ContentElementCollection.cs (1)
415return ((IList)this).IndexOf(item);
MS\Internal\ListOfObject.cs (1)
25return _list.IndexOf(item);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (4)
190startIndex = items.IndexOf(startAfterItem.Column) + 1; 201if (items.IndexOf(items[i]) != i) 227if (currentValue == null && value == null && items.IndexOf(items[i]) == i) 234if (value.Equals(currentValue) && items.IndexOf(items[i]) == i)
System\Windows\Controls\ColumnDefinition.cs (1)
194/// <see cref="IList.IndexOf"/>
System\Windows\Controls\CustomDictionarySources.cs (1)
221return ((IList)_uriList).IndexOf(value);
System\Windows\Controls\ItemContainerGenerator.cs (3)
2069GeneratorPosition position = PositionFromIndex(ItemsInternal.IndexOf(group)); 2079GeneratorPosition position = PositionFromIndex(ItemsInternal.IndexOf(group)); 2373index = ItemsInternal.IndexOf(item);
System\Windows\Controls\RowDefinition.cs (1)
189/// <see cref="IList.IndexOf"/>
System\Windows\Controls\VirtualizingStackPanel.cs (1)
2845childIndex = children.IndexOf(_bringIntoViewContainer);
System\Windows\Data\BindingListCollectionView.cs (4)
908index = InternalList.IndexOf(item); 916index = InternalList.IndexOf(item); 1718int index = CollectionProxy.IndexOf(item); 2022_newItemIndex = InternalList.IndexOf(_newItem);
System\Windows\Data\ListCollectionView.cs (9)
336int i1 = InternalList.IndexOf(o1); 337int i2 = InternalList.IndexOf(o2); 760index = SourceList.IndexOf(newItem); 1105listIndex = SourceList.IndexOf(item); 1267toIndex = AdjustBefore(NotifyCollectionChangedAction.Add, editItem, SourceList.IndexOf(editItem)); 1708_newItemIndex = SourceList.IndexOf(_newItem); 2185int index = InternalList.IndexOf(item); 2681index = ilFull.IndexOf(item); 2731index = InternalList.IndexOf(item);
System\Windows\Documents\AdornerLayer.cs (1)
655int index = keys.IndexOf(zOrder) - 1;
System\Windows\Documents\LinkTarget.cs (1)
105return ((IList)this).IndexOf((object)value);
System\Windows\Documents\TableCellCollection.cs (1)
289return ((IList)_cellCollectionInternal).IndexOf(value);
System\Windows\Documents\TableColumnCollection.cs (1)
296return ((IList)_columnCollection).IndexOf(value);
System\Windows\Documents\TableRowCollection.cs (1)
289return ((IList)_rowCollectionInternal).IndexOf(value);
System\Windows\Documents\TableRowGroupCollection.cs (1)
289return ((IList)_rowGroupCollectionInternal).IndexOf(value);
System\Windows\Documents\TextRangeBase.cs (1)
836listItemCounter.Push(((IList)listItem.SiblingListItems).IndexOf(listItem));
Roslyn.Diagnostics.Analyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
System.CodeDom (14)
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (1)
67public int IndexOf(CodeTypeReference value) => List.IndexOf(value);
System\CodeDom\CodeAttributeArgumentCollection.cs (1)
55public int IndexOf(CodeAttributeArgument value) => List.IndexOf(value);
System\CodeDom\CodeAttributeDeclarationCollection.cs (1)
57public int IndexOf(CodeAttributeDeclaration value) => List.IndexOf(value);
System\CodeDom\CodeCatchClauseCollection.cs (1)
55public int IndexOf(CodeCatchClause value) => List.IndexOf(value);
System\CodeDom\CodeCommentStatementCollection.cs (1)
55public int IndexOf(CodeCommentStatement value) => List.IndexOf(value);
System\CodeDom\CodeDirectiveCollection.cs (1)
55public int IndexOf(CodeDirective value) => List.IndexOf(value);
System\CodeDom\CodeExpressionCollection.cs (1)
55public int IndexOf(CodeExpression value) => List.IndexOf(value);
System\CodeDom\CodeNamespaceCollection.cs (1)
55public int IndexOf(CodeNamespace value) => List.IndexOf(value);
System\CodeDom\CodeParameterDeclarationExpressionCollection.cs (1)
55public int IndexOf(CodeParameterDeclarationExpression value) => List.IndexOf(value);
System\CodeDom\CodeStatementCollection.cs (1)
57public int IndexOf(CodeStatement value) => List.IndexOf(value);
System\CodeDom\CodeTypeDeclarationCollection.cs (1)
55public int IndexOf(CodeTypeDeclaration value) => List.IndexOf(value);
System\CodeDom\CodeTypeMemberCollection.cs (1)
55public int IndexOf(CodeTypeMember value) => List.IndexOf(value);
System\CodeDom\CodeTypeParameterCollection.cs (1)
57public int IndexOf(CodeTypeParameter value) => List.IndexOf(value);
System\CodeDom\Compiler\CompilerErrorCollection.cs (1)
91public int IndexOf(CompilerError value) => List.IndexOf(value);
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Design\DesignerVerbCollection.cs (1)
47public int IndexOf(DesignerVerb? value) => List.IndexOf(value);
System\ComponentModel\ListSortDescriptionCollection.cs (1)
52public int IndexOf(object? value) => ((IList)_sorts).IndexOf(value);
System.Data.Common (3)
System\Data\Common\DbParameterCollection.cs (3)
106/// For a description of this member, see <see cref="IList.IndexOf" />. 108/// <param name="value">For a description of this member, see <see cref="IList.IndexOf" />.</param> 109/// <returns>For a description of this member, see <see cref="IList.IndexOf" />.</returns>
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListeners.cs (1)
162return ((IList)this).IndexOf(listener);
System.ObjectModel (1)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (1)
312public int IndexOf(object? value) => _list.IndexOf(value);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (4)
855return _list.IndexOf(value); 1559return _list.IndexOf(value); 1640return _list.IndexOf(value); 1899return _list.IndexOf(value);
System.Private.DataContractSerialization (1)
src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (1)
67public int IndexOf(CodeTypeReference value) => List.IndexOf(value);
System.Private.Xml (7)
System\Xml\Schema\XmlSchemaObjectCollection.cs (1)
46return List.IndexOf(item);
System\Xml\Serialization\XmlAnyElementAttributes.cs (1)
46return List.IndexOf(attribute);
System\Xml\Serialization\XmlArrayItemAttributes.cs (1)
46return List.IndexOf(attribute);
System\Xml\Serialization\XmlElementAttributes.cs (1)
46return List.IndexOf(attribute);
System\Xml\Serialization\XmlSchemas.cs (3)
94return List.IndexOf(schema); 101return List.IndexOf(schema); 127return List.IndexOf(schema);
System.Windows.Forms (13)
System\Windows\Forms\Control.ControlCollection.cs (1)
232public int IndexOf(Control? control) => ((IList)InnerList).IndexOf(control);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
26int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (1)
30int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
26int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (1)
24int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value);
System\Windows\Forms\DataBinding\BindingSource.cs (4)
759Debug.Assert(index == ((IList)this).IndexOf(sender), "BindingSource.ListItem_PropertyChanged - unexpected current item."); 763index = ((IList)this).IndexOf(sender); 1496public virtual int IndexOf(object? value) => List.IndexOf(value); 1506int index = ((IList)this).IndexOf(value);
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
134int IList.IndexOf(object? value) => ((IList)InnerList).IndexOf(value);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutColumnStyleCollection.cs (1)
33public int IndexOf(ColumnStyle columnStyle) => ((IList)this).IndexOf(columnStyle);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutRowStyleCollection.cs (1)
33public int IndexOf(RowStyle rowStyle) => ((IList)this).IndexOf(rowStyle);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
123int IList.IndexOf(object? style) => ((IList)_innerList).IndexOf(style);
System.Windows.Forms.Design (11)
System\ComponentModel\Design\DataSourceDescriptorCollection.cs (1)
16public int IndexOf(DataSourceDescriptor value) => List.IndexOf(value);
System\ComponentModel\Design\DataSourceGroupCollection.cs (1)
16public int IndexOf(DataSourceGroup value) => List.IndexOf(value);
System\ComponentModel\Design\DesignerActionItemCollection.cs (1)
22public int IndexOf(DesignerActionItem value) => List.IndexOf(value);
System\ComponentModel\Design\DesignerActionListCollection.cs (1)
50public int IndexOf(DesignerActionList? value) => List.IndexOf(value);
System\Windows\Forms\Design\Behavior\AdornerCollection.cs (1)
184return List.IndexOf(value);
System\Windows\Forms\Design\Behavior\GlyphCollection.cs (1)
100return List.IndexOf(value);
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
48int IList.IndexOf(object control) => ((IList)_realCollection).IndexOf(control);
System\Windows\Forms\Design\DataSourceDescriptorCollection.cs (1)
21return List.IndexOf(value);
System\Windows\Forms\Design\DataSourceGroupCollection.cs (1)
21return List.IndexOf(value);
System\Windows\Forms\Design\ListAdapter.cs (1)
35int IList<T>.IndexOf(T item) => _list.IndexOf(item);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2179int IList.IndexOf(object control) => ((IList)_realCollection).IndexOf(control);
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
107((IList)_collection).IndexOf(control).Should().Be(_control.Controls.IndexOf(control));
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
94int IList.IndexOf(object? value) => ((IList)_list).IndexOf(value);
System.Windows.Forms.Tests (90)
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (3)
121Assert.Equal(0, collection.IndexOf(s)); 122Assert.Equal(-1, collection.IndexOf("anotherValue")); 130Assert.Equal(-1, collection.IndexOf("value"));
System\Windows\Forms\BindingSourceTests.cs (1)
814public int IndexOf(object item) => ((IList)_innerList).IndexOf(item);
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (1)
99((IList)_collection).IndexOf(index).Should().Be(expected);
System\Windows\Forms\ColumnHeaderCollectionTests.cs (7)
686Assert.Equal(0, collection.IndexOf(header)); 687Assert.Equal(-1, collection.IndexOf(new ColumnHeader())); 688Assert.Equal(-1, collection.IndexOf(new object())); 689Assert.Equal(-1, collection.IndexOf(null)); 698Assert.Equal(-1, collection.IndexOf(new ColumnHeader())); 699Assert.Equal(-1, collection.IndexOf(new object())); 700Assert.Equal(-1, collection.IndexOf(null));
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (6)
448Assert.Equal(-1, iList.IndexOf(value)); 466Assert.Equal(1, iList.IndexOf(control.Rows[0].Cells[0])); 467Assert.Equal(-1, iList.IndexOf(control.Rows[1].Cells[0])); 468Assert.Equal(0, iList.IndexOf(control.Rows[2].Cells[0])); 469Assert.Equal(-1, iList.IndexOf(new SubDataGridViewCell())); 470Assert.Equal(-1, iList.IndexOf(null));
System\Windows\Forms\DataGridViewSelectedColumnCollectionTests.cs (6)
492Assert.Equal(-1, iList.IndexOf(value)); 514Assert.Equal(1, iList.IndexOf(control.Columns[0])); 515Assert.Equal(-1, iList.IndexOf(control.Columns[1])); 516Assert.Equal(0, iList.IndexOf(control.Columns[2])); 517Assert.Equal(-1, iList.IndexOf(new DataGridViewColumn())); 518Assert.Equal(-1, iList.IndexOf(null));
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (6)
437Assert.Equal(-1, iList.IndexOf(value)); 454Assert.Equal(1, iList.IndexOf(control.Rows[0])); 455Assert.Equal(-1, iList.IndexOf(control.Rows[1])); 456Assert.Equal(0, iList.IndexOf(control.Rows[2])); 457Assert.Equal(-1, iList.IndexOf(new DataGridViewRow())); 458Assert.Equal(-1, iList.IndexOf(null));
System\Windows\Forms\ImageList.ImageCollectionTests.cs (2)
1772Assert.Throws<NotSupportedException>(() => collection.IndexOf(value)); 1788Assert.Equal(-1, collection.IndexOf(value));
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (14)
2292Assert.Equal(-1, collection.IndexOf(0)); 2293Assert.Equal(-1, collection.IndexOf(1)); 2294Assert.Equal(-1, collection.IndexOf(new object())); 2295Assert.Equal(-1, collection.IndexOf(null)); 2308Assert.Equal(-1, collection.IndexOf(0)); 2309Assert.Equal(0, collection.IndexOf(1)); 2310Assert.Equal(-1, collection.IndexOf(2)); 2311Assert.Equal(-1, collection.IndexOf(new object())); 2312Assert.Equal(-1, collection.IndexOf(null)); 2317Assert.Equal(0, collection.IndexOf(0)); 2318Assert.Equal(1, collection.IndexOf(1)); 2319Assert.Equal(-1, collection.IndexOf(2)); 2320Assert.Equal(-1, collection.IndexOf(new object())); 2321Assert.Equal(-1, collection.IndexOf(null));
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (12)
9405Assert.Equal(-1, collection.IndexOf(0)); 9406Assert.Equal(-1, collection.IndexOf(1)); 9407Assert.Equal(-1, collection.IndexOf(new object())); 9420Assert.Equal(-1, collection.IndexOf(0)); 9421Assert.Equal(0, collection.IndexOf(1)); 9422Assert.Equal(-1, collection.IndexOf(2)); 9423Assert.Equal(-1, collection.IndexOf(new object())); 9428Assert.Equal(1, collection.IndexOf(0)); 9429Assert.Equal(0, collection.IndexOf(1)); 9430Assert.Equal(-1, collection.IndexOf(2)); 9431Assert.Equal(-1, collection.IndexOf(new object())); 9440Assert.Throws<ArgumentNullException>("value", () => collection.IndexOf(null));
System\Windows\Forms\ListView.CheckedIndexCollectionTests.cs (4)
251ilist.IndexOf(value).Should().Be(expected); 266ilist.IndexOf(1).Should().Be(0); 267ilist.IndexOf(2).Should().Be(1); 281ilist.IndexOf(0).Should().Be(-1);
System\Windows\Forms\ListViewGroupCollectionTests.cs (7)
721Assert.Equal(0, collection.IndexOf(group)); 722Assert.Equal(-1, collection.IndexOf(new ListViewGroup())); 723Assert.Equal(-1, collection.IndexOf(new object())); 724Assert.Equal(-1, collection.IndexOf(null)); 733Assert.Equal(-1, collection.IndexOf(new ListViewGroup())); 734Assert.Equal(-1, collection.IndexOf(new object())); 735Assert.Equal(-1, collection.IndexOf(null));
System\Windows\Forms\ListViewSubItemCollectionTests.cs (7)
601Assert.Equal(0, collection.IndexOf(subItem)); 602Assert.Equal(-1, collection.IndexOf(new ListViewItem.ListViewSubItem())); 603Assert.Equal(-1, collection.IndexOf(new object())); 604Assert.Equal(-1, collection.IndexOf(null)); 613Assert.Equal(-1, collection.IndexOf(new ListViewItem.ListViewSubItem())); 614Assert.Equal(-1, collection.IndexOf(new object())); 615Assert.Equal(-1, collection.IndexOf(null));
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (10)
1892Assert.Equal(0, iList.IndexOf(child1)); 1893Assert.Equal(1, iList.IndexOf(child2)); 1894Assert.Equal(-1, iList.IndexOf(new TabPage())); 1895Assert.Equal(-1, iList.IndexOf(new Control())); 1896Assert.Equal(-1, iList.IndexOf(new object())); 1897Assert.Equal(-1, iList.IndexOf(null)); 1906Assert.Equal(-1, iList.IndexOf(new TabPage())); 1907Assert.Equal(-1, iList.IndexOf(new Control())); 1908Assert.Equal(-1, iList.IndexOf(new object())); 1909Assert.Equal(-1, iList.IndexOf(null));
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (4)
277Assert.Equal(0, collection.IndexOf(style)); 278Assert.Equal(-1, collection.IndexOf(new ColumnStyle())); 279Assert.Equal(-1, collection.IndexOf(new RowStyle())); 280Assert.Equal(-1, collection.IndexOf(null));
Test.Utilities (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);
Text.Analyzers (4)
src\Dependencies\Collections\Internal\IListCalls.cs (1)
53return list.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
675return backingList.IndexOf(value);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
348=> ((IList)ReadOnlyList).IndexOf(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
244var index = list.IndexOf(value);