58 references to IndexOf
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
868{Each(loop.Headers.Where(header => Array.IndexOf(InternalHeaderAccessors, header.Name) >= 0), header => $@"
illink (3)
Interop.FunctionalTests (1)
SkipOnArchitectureAttribute.cs (1)
21public bool IsMet => (Array.IndexOf(_excludedArchitectures, RuntimeInformation.OSArchitecture) == -1);
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingBenchmarkBase.cs (1)
73message.AppendLine(FormattableString.Invariant($"Validation failed for request {Array.IndexOf(Requests, httpContext)}"));
Microsoft.AspNetCore.Routing.Tests (1)
Matching\FullFeaturedMatcherConformanceTest.cs (1)
429var expected = endpoints[Array.IndexOf(templates, expectedTemplate)];
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
868{Each(loop.Headers.Where(header => Array.IndexOf(InternalHeaderAccessors, header.Name) >= 0), header => $@"
Microsoft.Build (1)
FrameworkLocationHelper.cs (1)
1480int index = Array.IndexOf(VisualStudioSpecs.Value, visualStudioSpec);
Microsoft.Build.Tasks.Core (3)
CSharptokenEnumerator.cs (1)
194if (Array.IndexOf(s_keywordList, identifierOrKeyword) >= 0)
SetRidAgnosticValueForProjects.cs (1)
40int targetFrameworkIndex = Array.IndexOf(targetFrameworksArray, nearestTargetFramework);
VisualBasictokenEnumerator.cs (1)
158if (Array.IndexOf(s_keywordList, upper) >= 0)
Microsoft.Extensions.FileProviders.Embedded (2)
Manifest\EmbeddedFilesManifest.cs (2)
66var start = Array.IndexOf(_separators, path[0]) == -1 ? 0 : 1; 72var end = Array.IndexOf(_separators, path[path.Length - 1]) == -1 ? path.Length : path.Length - 1;
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
559int index = System.Array.IndexOf(s_preferredAttributeArgumentOrder, name);
Microsoft.Interop.SourceGeneration (1)
Marshalling\MarshallerHelpers.cs (1)
206public bool AnyEdges => Array.IndexOf(_edgeMap, true) != -1;
PresentationCore (9)
MS\Internal\FontCache\FontCacheUtil.cs (1)
469if (Array.IndexOf<char>(InvalidFileNameChars, unescapedChar) >= 0)
MS\Internal\SynchronizedInputHelper.cs (2)
94if (Array.IndexOf(InputManager.SynchronizedInputEvents, args.RoutedEvent) >= 0) 108Array.IndexOf(InputManager.SynchronizedInputEvents, args.RoutedEvent) >= 0)
System\Windows\GlobalEventManager.cs (2)
121if(Array.IndexOf(routedEvents, routedEvent) < 0) 140if(Array.IndexOf(routedEvents, routedEvent) < 0)
System\Windows\Input\InputManager.cs (2)
768Array.IndexOf(SynchronizedInputEvents, input.RoutedEvent) < 0 && 769Array.IndexOf(PairedSynchronizedInputEvents, input.RoutedEvent) < 0)
System\Windows\Media\Imaging\BitmapSource.cs (2)
1042int i = Array.IndexOf(s_supportedDUCEFormats, format); 1631return (Array.IndexOf(s_supportedDUCEFormats, format) != -1);
PresentationFramework (2)
MS\Internal\Data\RBNode.cs (1)
52public int OffsetOf(T x) { return Array.IndexOf(_data, x); }
System\Windows\Documents\TextPointerBase.cs (1)
645return Array.IndexOf(NextLineCharacters, ch) > -1;
System.ComponentModel.TypeConverter (1)
System\ComponentModel\CultureInfoConverter.cs (1)
179int invariantIndex = Array.IndexOf(installedCultures, CultureInfo.InvariantCulture);
System.Diagnostics.Process (2)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (2)
355(Array.IndexOf(postSeparatorlineParts[2].Split(','), subsystem) >= 0)); 436if (Array.IndexOf(line[lineParts[1]].Split(','), subsystem) < 0)
System.IO.FileSystem.Watcher (2)
System\IO\FileSystemWatcher.cs (2)
750public bool Contains(string item) => Array.IndexOf(Items, item) != -1; 756public int IndexOf(string item) => Array.IndexOf(Items, item);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (1)
383Debug.Assert(!disposing || Array.IndexOf(_http11Connections.ToArray(), connection) < 0);
System.Net.Security (1)
System\Net\Security\SslStream.Protocol.cs (1)
444found = Array.IndexOf(issuers, issuer) != -1;
System.Net.WebProxy (1)
System\Net\WebProxy.NonBrowser.cs (1)
29return Array.IndexOf(localAddresses, hostAddress) != -1;
System.Private.CoreLib (12)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetUnixVersion.cs (1)
39Debug.Assert(Array.IndexOf<byte>(version, 0) != -1);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (1)
429if (Array.IndexOf(requiredType, VarType) == -1)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
221return Array.IndexOf(Enum.GetNamesNoCopy(this), (string)value) >= 0; 398if (namedParams != null && Array.IndexOf(namedParams, null!) >= 0)
src\libraries\System.Private.CoreLib\src\System\Text\EncodingProvider.cs (1)
64if (Array.IndexOf(providers, provider) >= 0)
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (1)
514Debug.Assert(Array.IndexOf(newChangeNotifications, local) >= 0);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (2)
445if (Array.IndexOf(_registeredWaits, handle) >= 0) 447if (Array.IndexOf(_pendingRemoves, handle) < 0)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5313signaledTaskIndex = Array.IndexOf(tasks, firstCompleted.Result);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (2)
35Debug.Assert(Array.IndexOf(oldQueues, queue) < 0); 58int pos = Array.IndexOf(oldQueues, queue);
src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (1)
43if (Array.IndexOf(names, value) >= 0)
System.Private.Xml (1)
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (1)
335int index = Array.IndexOf(_items, value);
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\PathUtilities.cs (1)
20(Array.IndexOf(Path.GetInvalidFileNameChars(), '*') >= 0 ? DirectorySeparatorChar : AltDirectorySeparatorChar).ToString();
System.Security.Cryptography (4)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (4)
52if (Array.IndexOf(validOids, spki.Algorithm.Algorithm) < 0) 83if (Array.IndexOf(validOids, spki.Algorithm.Algorithm) < 0) 119if (Array.IndexOf(validOids, privateKeyInfo.PrivateKeyAlgorithm.Algorithm) < 0) 146if (Array.IndexOf(validOids, privateKeyInfo.PrivateKeyAlgorithm.Algorithm) < 0)
System.Threading.Tasks.Dataflow (2)
Internal\ImmutableArray.cs (2)
64int index = Array.IndexOf(_array, item); 83public bool Contains(T item) { return Array.IndexOf(_array, item) >= 0; }
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\MSAANativeProvider.cs (1)
842rval = (Array.IndexOf(entry._patterns, pattern)>=0);
MS\Internal\AutomationProxies\WindowsListView.cs (2)
251int location = Array.IndexOf (groupIds, groupID); 292int location = Array.IndexOf (groupIds, groupID);