10 references to FindLast
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
248=> _list.FindLast(match);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
156=> ReadOnlyList.FindLast(match);
Microsoft.CodeAnalysis.UnitTests (8)
Collections\List\SegmentedList.Generic.Tests.Find.cs (8)
38Assert.Throws<ArgumentNullException>(() => list.FindLast(null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 338foundItem = list.FindLast(EqualsDelegate); 344foundItem = list.FindLast(_alwaysTrueDelegate); 349foundItem = list.FindLast(_alwaysFalseDelegate); 354foundItem = list.FindLast((T? item) => { return item == null ? default(T) == null : item.Equals(default(T)); }); 375foundItem = list.FindLast(EqualsDelegate); 385foundItem = list.FindLast(EqualsDelegate); 389foundItem = list.FindLast((T item) => { return item != null && (item.Equals(beforeList[0]) || item.Equals(beforeList[1])); });