Implemented interface member:
method
IndexOf
System.Collections.Generic.IList<T>.IndexOf(T)
127 references to IndexOf
mscorlib (5)
system\collections\generic\list.cs (3)
621return IndexOf((T)item); 824int index = IndexOf(item); 1122return _list.IndexOf(item);
system\resources\resourcewriter.cs (1)
585int typeIndex = types.IndexOf(typeName);
system\threading\Tasks\Task.cs (1)
4850int index = continuationsLocalListRef.IndexOf(continuationObject);
PresentationCore (25)
Core\CSharp\System\Windows\FreezableCollection.cs (1)
219return _collection.IndexOf(value);
Core\CSharp\System\Windows\Input\Command\CommandBindingCollection.cs (1)
339return ((_innerCBList != null) ? _innerCBList.IndexOf(value) : -1);
Core\CSharp\System\Windows\Input\Command\InputBindingCollection.cs (1)
260return (_innerBindingList != null) ? _innerBindingList.IndexOf(value) : -1;
Core\CSharp\System\Windows\Input\Command\InputGestureCollection.cs (1)
234return (_innerGestureList != null) ? _innerGestureList.IndexOf(value) : -1;
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
PresentationFramework (20)
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
228int realizedPeerIndex = itemsControlAP.RecentlyRealizedPeers.IndexOf(peer);
src\Framework\System\Windows\Controls\AlternationConverter.cs (1)
58return _values.IndexOf(o);
src\Framework\System\Windows\Controls\CustomDictionarySources.cs (2)
87return _uriList.IndexOf(item); 234return _uriList.IndexOf((Uri)value);
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (1)
692int removedDisplayIndex = DisplayIndexMap.IndexOf(columnIndex);
src\Framework\System\Windows\Documents\FixedSOMContainer.cs (4)
136if (This.FixedSOMPage.MarkupOrder.IndexOf(otherObjFirstNode) - This.FixedSOMPage.MarkupOrder.IndexOf(thisObjLastNode) == 1) 140else if (This.FixedSOMPage.MarkupOrder.IndexOf(otherObjLastNode) - This.FixedSOMPage.MarkupOrder.IndexOf(thisObjFirstNode) == 1)
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (2)
86result = markupOrder.IndexOf(this.FixedNode) - markupOrder.IndexOf(otherRun.FixedNode);
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
369_context.CurrentKey = _context.KeyList.IndexOf(record); 412_context.CurrentKey = _context.KeyList.IndexOf(record);
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (2)
302int existingIndex = _entries.IndexOf(entry); 322int result = _entries.IndexOf(entry);
src\Framework\System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
359return _keyFrames.IndexOf(keyFrame);
src\Framework\System\Windows\Navigation\Journal.cs (2)
423int index = _journalEntryList.IndexOf(entry); 444int index = _journalEntryList.IndexOf(target);
src\Framework\System\Windows\TriggerActionCollection.cs (2)
132return _rawList.IndexOf(value); 204return _rawList.IndexOf(VerifyIsTriggerAction(value));
System.Activities (1)
System\Activities\HybridCollection.cs (1)
161int position = (searchingFromEnd) ? this.multipleItems.LastIndexOf(item) : this.multipleItems.IndexOf(item);
System.Activities.Core.Presentation (5)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (1)
2406return list.IndexOf(pnt);
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (2)
139int srcConnectionPointIndex = StateContainerEditor.GetConnectionPoints(sourceConnPoint.ParentDesigner).IndexOf(sourceConnPoint); 140int destConnectionPointIndex = StateContainerEditor.GetConnectionPoints(destConnPoint.ParentDesigner).IndexOf(destConnPoint);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (2)
777int srcConnectionPointIndex = StateContainerEditor.GetConnectionPoints(srcConnPoint.ParentDesigner).IndexOf(srcConnPoint); 778int destConnectionPointIndex = StateContainerEditor.GetConnectionPoints(destConnPoint.ParentDesigner).IndexOf(destConnPoint);
System.Activities.Presentation (7)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
846return SourceLocationNames.IndexOf(xamlReader.Member.Name);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (3)
397int activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint); 417activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint); 438activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (1)
427return this.modelItems.IndexOf(item);
System.Activities.Presentation\System\Activities\Presentation\NamespaceHelper.cs (1)
77if (assemblyNames.IndexOf(displayName) == -1)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
583int index = selectedItems.IndexOf(item);
System.Data (15)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (3)
397int activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint); 417activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint); 438activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (1)
427return this.modelItems.IndexOf(item);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceHelper.cs (1)
77if (assemblyNames.IndexOf(displayName) == -1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
583int index = selectedItems.IndexOf(item);
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (1)
640if (0 > providerNames.IndexOf(progid)) {
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (3)
164Debug.Assert(0 > connections.IndexOf(transactedObject), "adding to pool a second time?"); 200Debug.Assert(0 > connections.IndexOf(transactedObject), "adding to pool a second time?"); 269entry = connections.IndexOf(transactedObject);
fx\src\data\System\Data\RecordManager.cs (2)
239Debug.Assert((record < lastFreeRecord) && (-1 == freeRecordList.IndexOf(record)), "accesing free record"); 248Debug.Assert((record < lastFreeRecord) && (-1 == freeRecordList.IndexOf(record)), "accesing free record");
fx\src\data\System\Data\SqlClient\SqlDependency.cs (3)
424int index = _eventList.IndexOf(pair); 853int index = databaseServiceList.IndexOf(databaseService); 937int index = databaseList.IndexOf(pair);
System.Data.Entity (3)
System\Data\Common\Utils\ThreadSafeList.cs (1)
102result = _list.IndexOf(item);
System\Data\Objects\ObjectViewEntityCollectionData.cs (1)
194int oldIndex = _bindingList.IndexOf(removedItem);
System\Data\Objects\ObjectViewQueryResultData.cs (1)
228int itemIndex = _bindingList.IndexOf(item);
System.Data.Entity.Design (1)
System\Data\EntityModel\EntityClassGenerator.cs (1)
309int index = readers.IndexOf(sourceReader);
System.Data.Linq (2)
SqlClient\SqlConnectionManager.cs (2)
67int index = this.users.IndexOf(user); 126int index = this.users.IndexOf(user);
System.Data.Services (1)
System\Data\Services\Serializers\DictionaryContent.cs (1)
162int index = this.valueNames.IndexOf(propertyName);
System.IdentityModel (1)
System\IdentityModel\MostlySingletonList.cs (1)
95return this.list.IndexOf(item);
System.IO.Log (1)
System\IO\Log\ReservationCollection.cs (1)
286index = this.reservationKeys.IndexOf(size);
System.ServiceModel (6)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
773int uniqueIndex = uniqueMappings.IndexOf(mapping);
System\ServiceModel\Diagnostics\PerformanceCounters.cs (1)
410int index = PerformanceCounters.PerformanceCountersForEndpointList.IndexOf(counters);
System\ServiceModel\MostlySingletonList.cs (1)
90return this.list.IndexOf(item);
System\UriTemplate.cs (3)
1201int varIndex = this.pathSegmentVariableNames.IndexOf(varName); 1594int pathVarIndex = this.pathSegmentVariableNames.IndexOf(uppercaseVarName); 1600int queryVarIndex = this.queryValueVariableNames.IndexOf(uppercaseVarName);
System.Web (4)
UI\WebControls\MenuItemCollection.cs (2)
169return _list.IndexOf(value); 178int index = _list.IndexOf(value);
UI\WebControls\TreeNodeCollection.cs (2)
172return _list.IndexOf(value); 181int index = _list.IndexOf(value);
System.Web.Extensions (2)
UI\WebControls\QueryableDataSourceView.cs (1)
563int rowIndex = matches.IndexOf(true);
Util\OrderedDictionary.cs (1)
98int index = _keys.IndexOf(key);
System.Workflow.Activities (2)
Common\ValidationHelpers.cs (1)
164int index = (responsePath.IndexOf(requestParent) - 1);
Designers\StateDesigner.cs (1)
925int indexOf = ordered.IndexOf(designer);
System.Workflow.ComponentModel (24)
AuthoringOM\ActivitiesCollection.cs (2)
102return base.IndexOf(item); 126int index = base.IndexOf(item);
AuthoringOM\Design\ActivityDesigner.cs (1)
856int index = activities.IndexOf(Activity as Activity);
AuthoringOM\Design\Connector.cs (3)
1120int activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint); 1136activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint); 1153activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint);
AuthoringOM\Design\DesignerHelpers.cs (1)
1868return edges[distances.IndexOf(minDistance)];
AuthoringOM\Design\DesignerWidgets.cs (12)
706int itemIndex = this.items.IndexOf(itemInfo); 894int index = this.items.IndexOf(this.selectedItem); 913int nextIndex = this.items.IndexOf(e.RemovedItems[0]); 2068int index = this.tabItemList.IndexOf(tabItemInfo); 2080int index = this.tabItemList.IndexOf(tabItemInfo); 2097int index = this.tabItemList.IndexOf(tabItemInfo); 2550int itemIndex = this.items.IndexOf(itemInfo); 2635int index = this.items.IndexOf(ActiveItem) + incr; 2746if (itemIndex == this.items.IndexOf(ActiveItem)) 2781int index = this.items.IndexOf(ActiveItem); 2861int nextIndex = this.items.IndexOf(e.RemovedItems[0]); 3533int index = previewedActivities.IndexOf(component as Activity) + 1;
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
72int actionIndex = this.actions.IndexOf(action);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
584writer.Write(views.IndexOf(this.activeView));
AuthoringOM\ItemList.cs (2)
168return base.IndexOf(item); 193int index = base.IndexOf(item);
Shared\ValidationHelpers.cs (1)
163int index = (responsePath.IndexOf(requestParent) - 1);
System.WorkflowServices (2)
System\Workflow\Activities\OperationParameterInfoCollection.cs (2)
220int index = base.IndexOf(item); 269return base.IndexOf(item);