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)
85
var index = _storedElements.
FindIndex
(e => ReferenceEquals(e, storedElement));
Microsoft.CodeAnalysis.CSharp.Features (4)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (4)
296
var firstIndex = newList.
FindIndex
(s => s == _firstStatementOrFieldToReplace);
299
var lastIndex = newList.
FindIndex
(s => s == _lastStatementOrFieldToReplace);
324
var firstMemberIndex = newMembers.
FindIndex
(s => s == (global ? _firstStatementOrFieldToReplace.Parent : _firstStatementOrFieldToReplace));
327
var lastMemberIndex = newMembers.
FindIndex
(s => s == (global ? _lastStatementOrFieldToReplace.Parent : _lastStatementOrFieldToReplace));
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\CSharpPreferHashDataOverComputeHash.Fixer.cs (1)
66
var 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)
117
Dim 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)
315
int index =
FindIndex
(x => x.ColumnName == columnName);
Microsoft.NET.Sdk.Publish.Tasks (1)
WebConfigTransform.cs (1)
116
var processPathIndex = attributes.
FindIndex
(a => a.Name.LocalName == "processPath");
Microsoft.VisualStudio.LanguageServices (1)
GenerateType\GenerateTypeDialogViewModel.cs (1)
398
this.ProjectSelectIndex = this.ProjectList.
FindIndex
(p => p.Project == field);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (3)
1300
var firstIndex = leadingTriviaList.
FindIndex
(t => t == commentList[0]);
1301
var lastIndex = leadingTriviaList.
FindIndex
(t => t == commentList[commentList.Count - 1]);
1433
var index = leadingTriviaList.
FindIndex
(t => t == documentationComment.ParentTrivia);
PresentationFramework (2)
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
63
if (ScriptCodesRequiringDedicatedSegmenter.
FindIndex
(s => s.Equals(script, StringComparison.InvariantCultureIgnoreCase)) == -1)
System\Windows\Controls\Primitives\Selector.cs (1)
2887
return _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)
170
declaredAttributes.
FindIndex
((obj) => obj.GetType() == attributeType) < 0))