11 references to Find
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
228=> _list.Find(match);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
141=> ReadOnlyList.Find(match);
Microsoft.CodeAnalysis.UnitTests (9)
Collections\List\SegmentedList.Generic.Tests.Find.cs (9)
35Assert.Throws<ArgumentNullException>(() => list.Find(null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 240foundItem = list.Find(EqualsDelegate); 246foundItem = list.Find(_alwaysTrueDelegate); 250foundItem = list.Find(_alwaysFalseDelegate); 255foundItem = list.Find((T? item) => { return item == null ? default(T) == null : item.Equals(default(T)); }); 276foundItem = list.Find(EqualsDelegate); 286foundItem = list.Find(EqualsDelegate); 291foundItem = list.Find(EqualsDelegate); 303int result = list.Find(i =>