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)
38
Assert.Throws<ArgumentNullException>(() => list.
FindLast
(null!)); //"Err_858ahia Expected null match to throw ArgumentNullException"
338
foundItem = list.
FindLast
(EqualsDelegate);
344
foundItem = list.
FindLast
(_alwaysTrueDelegate);
349
foundItem = list.
FindLast
(_alwaysFalseDelegate);
354
foundItem = list.
FindLast
((T? item) => { return item == null ? default(T) == null : item.Equals(default(T)); });
375
foundItem = list.
FindLast
(EqualsDelegate);
385
foundItem = list.
FindLast
(EqualsDelegate);
389
foundItem = list.
FindLast
((T item) => { return item != null && (item.Equals(beforeList[0]) || item.Equals(beforeList[1])); });