15 references to FindIndex
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)
298
var firstIndex = newList.
FindIndex
(s => s == _firstStatementOrFieldToReplace);
301
var lastIndex = newList.
FindIndex
(s => s == _lastStatementOrFieldToReplace);
326
var firstMemberIndex = newMembers.
FindIndex
(s => s == (global ? _firstStatementOrFieldToReplace.Parent : _firstStatementOrFieldToReplace));
329
var 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)
315
int index =
FindIndex
(x => x.ColumnName == columnName);
Microsoft.VisualStudio.LanguageServices (1)
GenerateType\GenerateTypeDialogViewModel.cs (1)
421
this.ProjectSelectIndex = this.ProjectList.
FindIndex
(p => p.Project == _selectedProject);
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)
64
if (ScriptCodesRequiringDedicatedSegmenter.
FindIndex
(s => s.Equals(script, StringComparison.InvariantCultureIgnoreCase)) == -1)
System\Windows\Controls\Primitives\Selector.cs (1)
2888
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))