6 references to LastIndexOf
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
229return ReadOnlyList.LastIndexOf(item, startIndex);
Microsoft.CodeAnalysis.UnitTests (5)
Collections\List\SegmentedList.Generic.Tests.IndexOf.cs (5)
50return ((SegmentedList<T> list, T value) => { return list.LastIndexOf(value, list.Count - 1); }); 184Assert.Equal(expectedIndex, list.LastIndexOf(withoutDuplicates[i], (count * (j + 1)) - 1)); 223Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, count)); //"ArgumentOutOfRangeException expected." 225Assert.Equal(-1, list.LastIndexOf(element, -1)); 227Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, -1));