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)
88
int doubleDashIndex = parseResult.Tokens.ToList().
FindIndex
(static token => token.Type == TokenType.DoubleDash);
dotnet-aot (1)
src\sdk\src\Cli\dotnet\Commands\Run\CommonRunHelpers.cs (1)
88
int doubleDashIndex = parseResult.Tokens.ToList().
FindIndex
(static token => token.Type == TokenType.DoubleDash);
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)
67
var 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)
148
int clientIndex = clients.
FindIndex
(candidate => ReferenceEquals(candidate, client));
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (7)
..\..\..\..\test\Libraries\Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests\ExceptionSummarizerTests.cs (7)
105
var descriptionIndex = _httpDescriptions.
FindIndex
(x => x.Equals(WebExceptionStatus.RequestCanceled.ToString()));
123
var descriptionIndex = _httpDescriptions.
FindIndex
(x => x.Equals(WebExceptionStatus.RequestCanceled.ToString()));
143
var descriptionIndex = _httpDescriptions.
FindIndex
(x => x.Equals(WebExceptionStatus.ConnectFailure.ToString()));
163
.
FindIndex
(x => x.Equals(WebExceptionStatus.RequestCanceled.ToString()));
186
var descriptionIndex = _httpDescriptions.
FindIndex
(x => x.Equals(SocketError.TimedOut.ToString()));
208
var descriptionIndex = _httpDescriptions.
FindIndex
(x => x.Equals("TaskCanceled"));
245
var 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)
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.TemplateEngine.Core (1)
Matching\Trie.cs (1)
48
int sameMatcherIndex = next.Terminals.
FindIndex
(t => t.Start == terminal.Start && t.End == terminal.End);
NuGet.Configuration (1)
PackageSource\PackageSourceProvider.cs (1)
220
var defaultSourcesInsertIndex = loadedPackageSources.
FindIndex
(source => source.IsMachineWide);
NuGet.Packaging (2)
PackageCreation\Authoring\ManifestMetadata.cs (2)
230
int nullTargetFrameworkIndex = groupedReferenceSets.
FindIndex
(set => set.TargetFramework == null);
261
int anyTargetFrameworkIndex = groupedDependencySets.
FindIndex
(set => set.TargetFramework.IsAny);
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\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)
170
declaredAttributes.
FindIndex
((obj) => obj.GetType() == attributeType) < 0))
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
563
int index = callSites.
FindIndex
(c =>