19 references to FindIndex
Aspire.Dashboard (1)
Components\Dialogs\GenAIVisualizerDialog.razor.cs (1)
70_currentSpanContextIndex = _contextSpans.FindIndex(s => s.SpanId == Content.Span.SpanId);
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)
296var firstIndex = newList.FindIndex(s => s == _firstStatementOrFieldToReplace); 299var lastIndex = newList.FindIndex(s => s == _lastStatementOrFieldToReplace); 324var firstMemberIndex = newMembers.FindIndex(s => s == (global ? _firstStatementOrFieldToReplace.Parent : _firstStatementOrFieldToReplace)); 327var lastMemberIndex = newMembers.FindIndex(s => s == (global ? _lastStatementOrFieldToReplace.Parent : _lastStatementOrFieldToReplace));
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\CSharpPreferHashDataOverComputeHash.Fixer.cs (1)
66var secondArgIndex = list.FindIndex(a => a.NameColon is null || a.NameColon.Name.Identifier.Text.Equals("offset", StringComparison.Ordinal));
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\BasicPreferHashDataOverComputeHash.Fixer.vb (1)
117Dim secondArgIndex = list.FindIndex(Function(a) (Not a.IsNamed) OrElse DirectCast(a, SimpleArgumentSyntax).NameColonEquals.Name.Identifier.Text.Equals("offset", StringComparison.OrdinalIgnoreCase))
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.NET.Sdk.Publish.Tasks (1)
WebConfigTransform.cs (1)
116var processPathIndex = attributes.FindIndex(a => a.Name.LocalName == "processPath");
Microsoft.VisualStudio.LanguageServices (1)
GenerateType\GenerateTypeDialogViewModel.cs (1)
398this.ProjectSelectIndex = this.ProjectList.FindIndex(p => p.Project == field);
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)
63if (ScriptCodesRequiringDedicatedSegmenter.FindIndex(s => s.Equals(script, StringComparison.InvariantCultureIgnoreCase)) == -1)
System\Windows\Controls\Primitives\Selector.cs (1)
2887return _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))