8 references to IndexOf
Microsoft.CodeAnalysis (1)
CommandLine\CommandLineParser.cs (1)
1068if (!inQuotes && separators.IndexOf(c) >= 0)
Microsoft.CodeAnalysis.UnitTests (7)
Collections\EnumerableExtensionsTests.cs (6)
55Assert.Equal(-1, Enumerable.Range(1, 5).IndexOf(6)); 56Assert.Equal(2, Enumerable.Range(1, 5).IndexOf(3)); 58Assert.Equal(-1, ((IEnumerable<int>)SpecializedCollections.SingletonList(5)).IndexOf(6)); 59Assert.Equal(0, ((IEnumerable<int>)SpecializedCollections.SingletonList(5)).IndexOf(5)); 61Assert.Equal(-1, ((IEnumerable<int>)new ReadOnlyList<int>(5)).IndexOf(6)); 62Assert.Equal(0, ((IEnumerable<int>)new ReadOnlyList<int>(5)).IndexOf(5));
Collections\ImmutableSegmentedListTest.cs (1)
496(b, v) => b.IndexOf(v),