15 references to FindIndex
Microsoft.AspNetCore.DataProtection (1)
Repositories\EphemeralXmlRepository.cs (1)
85var index = _storedElements.FindIndex(e => ReferenceEquals(e, storedElement));
Microsoft.CodeAnalysis.CSharp.Features (4)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (4)
298var firstIndex = newList.FindIndex(s => s == _firstStatementOrFieldToReplace); 301var lastIndex = newList.FindIndex(s => s == _lastStatementOrFieldToReplace); 326var firstMemberIndex = newMembers.FindIndex(s => s == (global ? _firstStatementOrFieldToReplace.Parent : _firstStatementOrFieldToReplace)); 329var lastMemberIndex = newMembers.FindIndex(s => s == (global ? _lastStatementOrFieldToReplace.Parent : _lastStatementOrFieldToReplace));
Microsoft.Maui (1)
Extensions\EnumerableExtensions.cs (1)
153 return list.FindIndex(listPredicate);
Microsoft.ML.Data (1)
Data\SchemaDefinition.cs (1)
315int index = FindIndex(x => x.ColumnName == columnName);
Microsoft.VisualStudio.LanguageServices (1)
GenerateType\GenerateTypeDialogViewModel.cs (1)
421this.ProjectSelectIndex = this.ProjectList.FindIndex(p => p.Project == _selectedProject);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (3)
1300var firstIndex = leadingTriviaList.FindIndex(t => t == commentList[0]); 1301var lastIndex = leadingTriviaList.FindIndex(t => t == commentList[commentList.Count - 1]); 1433var index = leadingTriviaList.FindIndex(t => t == documentationComment.ParentTrivia);
PresentationFramework (2)
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
64if (ScriptCodesRequiringDedicatedSegmenter.FindIndex(s => s.Equals(script, StringComparison.InvariantCultureIgnoreCase)) == -1)
System\Windows\Controls\Primitives\Selector.cs (1)
2888return _list.FindIndex( (ItemInfo x) => { return _equalityComparer.Equals(info, x); } );
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
506=> FindIndex(match) != -1;
System.Reflection.Context (1)
System\Reflection\Context\Custom\AttributeUtils.cs (1)
170declaredAttributes.FindIndex((obj) => obj.GetType() == attributeType) < 0))