29 references to FindIndex
Aspire.Dashboard (1)
Components\Dialogs\GenAIVisualizerDialog.razor.cs (1)
91_currentSpanContextIndex = _contextSpans.FindIndex(s => s.SpanId == Content.Span.SpanId);
dotnet (1)
Commands\Run\CommonRunHelpers.cs (1)
88int doubleDashIndex = parseResult.Tokens.ToList().FindIndex(static token => token.Type == TokenType.DoubleDash);
dotnet-aot (1)
src\sdk\src\Cli\dotnet\Commands\Run\CommonRunHelpers.cs (1)
88int doubleDashIndex = parseResult.Tokens.ToList().FindIndex(static token => token.Type == TokenType.DoubleDash);
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)
67var secondArgIndex = list.FindIndex(a => a.NameColon is null || a.NameColon.Name.Identifier.Text.Equals("offset", StringComparison.Ordinal));
Microsoft.Extensions.AI (1)
..\..\..\..\src\Libraries\Microsoft.Extensions.AI\ChatRouting\SemanticRoutingChatClient.cs (1)
148int clientIndex = clients.FindIndex(candidate => ReferenceEquals(candidate, client));
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (7)
..\..\..\..\test\Libraries\Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests\ExceptionSummarizerTests.cs (7)
105var descriptionIndex = _httpDescriptions.FindIndex(x => x.Equals(WebExceptionStatus.RequestCanceled.ToString())); 123var descriptionIndex = _httpDescriptions.FindIndex(x => x.Equals(WebExceptionStatus.RequestCanceled.ToString())); 143var descriptionIndex = _httpDescriptions.FindIndex(x => x.Equals(WebExceptionStatus.ConnectFailure.ToString())); 163.FindIndex(x => x.Equals(WebExceptionStatus.RequestCanceled.ToString())); 186var descriptionIndex = _httpDescriptions.FindIndex(x => x.Equals(SocketError.TimedOut.ToString())); 208var descriptionIndex = _httpDescriptions.FindIndex(x => x.Equals("TaskCanceled")); 245var descriptionIndex = _httpDescriptions.FindIndex(x => x.Equals("TaskTimeout"));
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.TemplateEngine.Core (1)
Matching\Trie.cs (1)
48int sameMatcherIndex = next.Terminals.FindIndex(t => t.Start == terminal.Start && t.End == terminal.End);
NuGet.Configuration (1)
PackageSource\PackageSourceProvider.cs (1)
220var defaultSourcesInsertIndex = loadedPackageSources.FindIndex(source => source.IsMachineWide);
NuGet.Packaging (2)
PackageCreation\Authoring\ManifestMetadata.cs (2)
230int nullTargetFrameworkIndex = groupedReferenceSets.FindIndex(set => set.TargetFramework == null); 261int anyTargetFrameworkIndex = groupedDependencySets.FindIndex(set => set.TargetFramework.IsAny);
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\runtime\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))
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
563int index = callSites.FindIndex(c =>