4681 references to OrdinalIgnoreCase
aspire (34)
Commands\AddCommand.cs (6)
139p => p.FriendlyName.Contains(integrationName, StringComparison.OrdinalIgnoreCase) 140|| p.Package.Id.Contains(integrationName, StringComparison.OrdinalIgnoreCase) 253var packageId = packageWithChannel.Package.Id.Replace("Aspire.Hosting.", "", StringComparison.OrdinalIgnoreCase); 383var xStarts = x.StartsWith(prefix, StringComparison.OrdinalIgnoreCase); 384var yStarts = y.StartsWith(prefix, StringComparison.OrdinalIgnoreCase); 390_ => string.Compare(x, y, StringComparison.OrdinalIgnoreCase)
Commands\NewCommand.cs (1)
113if (parseResult.CommandResult.Command != this && _templates.Single(t => t.Name.Equals(parseResult.CommandResult.Command.Name, StringComparison.OrdinalIgnoreCase)) is ITemplate template)
Commands\UpdateCommand.cs (1)
85if (manageNode?.InnerText.Trim().Equals("true", StringComparison.OrdinalIgnoreCase) == true)
NuGet\NuGetPackageCache.cs (2)
41return packages.Where(p => p.Id.Equals("Aspire.ProjectTemplates", StringComparison.OrdinalIgnoreCase)); 63return packages.Where(p => p.Id.Equals("Aspire.Cli", StringComparison.OrdinalIgnoreCase));
Packaging\NuGetConfigMerger.cs (7)
144!string.Equals(sourceKey, newSource, StringComparison.OrdinalIgnoreCase)) 174.FirstOrDefault(ps => string.Equals((string?)ps.Attribute("key"), newSource, StringComparison.OrdinalIgnoreCase)); 189.FirstOrDefault(p => string.Equals((string?)p.Attribute("pattern"), pattern, StringComparison.OrdinalIgnoreCase)); 217.FirstOrDefault(add => string.Equals((string?)add.Attribute("key"), sourceKey, StringComparison.OrdinalIgnoreCase) || 218string.Equals((string?)add.Attribute("value"), sourceKey, StringComparison.OrdinalIgnoreCase)); 338!string.Equals(sourceKey, requiredSource, StringComparison.OrdinalIgnoreCase)) 361.Where(f => string.Equals(f.Name, "nuget.config", StringComparison.OrdinalIgnoreCase))
Packaging\PackageChannel.cs (3)
98filter: id => id.Equals(packageId, StringComparison.OrdinalIgnoreCase), 109filter: id => id.Equals(packageId, StringComparison.OrdinalIgnoreCase), 129filter: id => id.Equals(packageId, StringComparison.OrdinalIgnoreCase),
Packaging\TemporaryNuGetConfig.cs (1)
78var sourceInfo = distinctSources.First(s => string.Equals(s.Source, sourceGroup.Key, StringComparison.OrdinalIgnoreCase));
Projects\ProjectLocator.cs (2)
93var fileNameSuggestsAppHost = () => projectFile.Name.EndsWith("AppHost.csproj", StringComparison.OrdinalIgnoreCase); 94var folderContainsAppHostCSharpFile = () => projectFile.Directory!.EnumerateFiles("*", SearchOption.TopDirectoryOnly).Any(f => f.Name.Equals("AppHost.cs", StringComparison.OrdinalIgnoreCase));
src\Shared\LocaleHelpers.cs (1)
49.Any(c => string.Equals(c.Name, cultureName, StringComparison.OrdinalIgnoreCase));
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Templating\DotNetTemplateFactory.cs (1)
452.FirstOrDefault(f => string.Equals(f.Name, "nuget.config", StringComparison.OrdinalIgnoreCase));
Aspire.Azure.AI.Inference (1)
ChatCompletionsClientSettings.cs (1)
80if (envVar is not null && (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1")))
Aspire.Azure.AI.OpenAI (2)
AspireConfigurableOpenAIExtensions.cs (1)
104if (serviceUri != null && serviceUri.Host.Contains(".azure.", StringComparison.OrdinalIgnoreCase))
AzureOpenAISettings.cs (1)
82if (envVar is not null && (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1")))
Aspire.Azure.Messaging.EventHubs (3)
AzureMessagingEventHubsSettings.cs (1)
84if (envVar is not null && (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1")))
EventHubsComponent.cs (1)
98var serviceBusIndex = ns.IndexOf(".servicebus", StringComparison.OrdinalIgnoreCase);
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Azure.Messaging.ServiceBus (3)
AzureMessagingServiceBusSettings.cs (2)
84if (envVar is not null && (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1"))) 142var subscriptionsIndex = entityPath.IndexOf(subscriptionsSegment, StringComparison.OrdinalIgnoreCase);
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Azure.Messaging.WebPubSub (1)
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Azure.Npgsql (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
128if (principalName.IsEmpty || !beginning.EndsWith("providers/Microsoft.ManagedIdentity/userAssignedIdentities", StringComparison.OrdinalIgnoreCase))
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
128if (principalName.IsEmpty || !beginning.EndsWith("providers/Microsoft.ManagedIdentity/userAssignedIdentities", StringComparison.OrdinalIgnoreCase))
Aspire.Azure.Storage.Blobs.Tests (2)
AzureBlobStorageContainerSettingsTests.cs (2)
48Assert.Contains(EmulatorConnectionString, settings.ConnectionString, StringComparison.OrdinalIgnoreCase); 49Assert.DoesNotContain("ContainerName", settings.ConnectionString, StringComparison.OrdinalIgnoreCase);
Aspire.Azure.Storage.Queues (1)
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Azure.Storage.Queues.Tests (2)
AzureStorageQueueSettingsTests.cs (2)
48Assert.Contains(EmulatorConnectionString, settings.ConnectionString, StringComparison.OrdinalIgnoreCase); 49Assert.DoesNotContain("QueueName", settings.ConnectionString, StringComparison.OrdinalIgnoreCase);
Aspire.Cli.Tests (1)
NuGet\NuGetPackageCacheTests.cs (1)
151filter: id => id.Contains("Dapr", StringComparison.OrdinalIgnoreCase),
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\PropertyFetcher.AOT.cs (1)
101var property = type.DeclaredProperties.FirstOrDefault(p => string.Equals(p.Name, propertyName, StringComparison.OrdinalIgnoreCase)) ?? type.GetProperty(propertyName);
Aspire.Dashboard (26)
Components\Controls\StructuredLogDetails.razor.cs (1)
91MoveAttributes(attributes, _exceptionAttributes, a => a.Name.StartsWith("exception.", StringComparison.OrdinalIgnoreCase));
Components\Dialogs\FilterDialog.razor.cs (1)
129newValues = newValues.Where(vm => vm.Name.Contains(value, StringComparison.OrdinalIgnoreCase));
DashboardWebApplication.cs (1)
716if (string.Equals(rule.Thumbprint, certThumbprint, StringComparison.OrdinalIgnoreCase))
Model\ConnectionStringParser.cs (2)
138if (connectionString.StartsWith("jdbc:", StringComparison.OrdinalIgnoreCase)) 183if (hostAlias.Equals("contact points", StringComparison.OrdinalIgnoreCase) &&
Model\Otlp\TelemetryFilter.cs (1)
187if (!string.Equals(Value, other.Value, StringComparison.OrdinalIgnoreCase))
Model\ResourceIconHelpers.cs (1)
36string t when t.Contains("database", StringComparison.OrdinalIgnoreCase) => IconResolver.ResolveIconName("Database", desiredSize, desiredVariant),
Model\ResourceOutgoingPeerResolver.cs (2)
207if (string.Equals(endpoint, value, StringComparison.OrdinalIgnoreCase)) 217if (string.Equals(transformedEndpoint, value, StringComparison.OrdinalIgnoreCase))
Model\ResourceViewModel.cs (1)
467_humanizedHealthStatus?.Contains(filter, StringComparison.OrdinalIgnoreCase) is true;
Otlp\Http\OtlpHttpEndpointsBuilder.cs (2)
80if (string.Equals(mt.MediaType, JsonContentType, StringComparison.OrdinalIgnoreCase)) 86if (string.Equals(mt.MediaType, ProtobufContentType, StringComparison.OrdinalIgnoreCase))
Otlp\Model\OtlpHelpers.cs (2)
440return existingId.StartsWith(incomingId, StringComparison.OrdinalIgnoreCase); 444return existingId.Equals(incomingId, StringComparison.OrdinalIgnoreCase);
Otlp\Model\OtlpSpan.cs (1)
163if (string.Equals(rpcSystem, "grpc", StringComparison.OrdinalIgnoreCase))
Otlp\Storage\TelemetryRepository.cs (1)
522results = results.Where(t => t.FullName.Contains(context.FilterText, StringComparison.OrdinalIgnoreCase));
src\Shared\LocaleHelpers.cs (1)
49.Any(c => string.Equals(c.Name, cultureName, StringComparison.OrdinalIgnoreCase));
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.EndToEnd.Tests (5)
tests\Shared\TemplatesTesting\AspireProject.cs (5)
123if (res.Output.Contains("Restore failed", StringComparison.OrdinalIgnoreCase) || 124res.Output.Contains("Post action failed", StringComparison.OrdinalIgnoreCase)) 311if (outputMessage.Contains("docker was found but appears to be unhealthy", StringComparison.OrdinalIgnoreCase)) 376return ex.Message.Contains("net::ERR_NETWORK_CHANGED", StringComparison.OrdinalIgnoreCase) || 377ex.Message.Contains("net::ERR_SOCKET_NOT_CONNECTED", StringComparison.OrdinalIgnoreCase);
Aspire.Hosting (31)
ApplicationModel\ExpressionResolver.cs (1)
100value = value.Replace("localhost", containerHostName, StringComparison.OrdinalIgnoreCase)
ApplicationModel\ResourceNotificationService.cs (1)
608if (!string.IsNullOrWhiteSpace(previousStateText) && !string.Equals(previousStateText, newStateText, StringComparison.OrdinalIgnoreCase))
Dashboard\DashboardLifecycleHook.cs (7)
154if (string.Equals(".dll", Path.GetExtension(assemblyPath), StringComparison.OrdinalIgnoreCase)) 225if (string.Equals(".dll", Path.GetExtension(dashboardPath), StringComparison.OrdinalIgnoreCase)) 327if (string.Equals(".dll", Path.GetExtension(fullyQualifiedDashboardPath), StringComparison.OrdinalIgnoreCase)) 340if (fileName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase)) 345else if (fileName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase)) 485if (name.StartsWith("ASPIRE_DASHBOARD_", StringComparison.OrdinalIgnoreCase) && 542if (string.Equals(configuration["AppHost:ResourceService:AuthMode"], nameof(ResourceServiceAuthMode.ApiKey), StringComparison.OrdinalIgnoreCase)
Dcp\DcpDependencyCheck.cs (2)
214if (string.Equals(containerRuntime, "docker", StringComparison.OrdinalIgnoreCase)) 219else if (string.Equals(containerRuntime, "podman", StringComparison.OrdinalIgnoreCase))
Dcp\DcpExecutor.cs (3)
888if (string.Equals("localhost", endpoint.TargetHost, StringComparison.OrdinalIgnoreCase)) 1686var s when string.Equals(s, "localhost", StringComparison.OrdinalIgnoreCase) => ("localhost", EndpointBindingMode.SingleAddress), // Explicitly set to localhost 1687var s when s.Length > 10 && s.EndsWith(".localhost", StringComparison.OrdinalIgnoreCase) => ("localhost", EndpointBindingMode.SingleAddress), // Explicitly set to localhost when using .localhost subdomain
Dcp\DcpOptions.cs (1)
204return assemblyMetadata?.FirstOrDefault(m => string.Equals(m.Key, key, StringComparison.OrdinalIgnoreCase))?.Value;
DistributedApplicationBuilder.cs (1)
635assemblyMetadata?.FirstOrDefault(a => string.Equals(a.Key, key, StringComparison.OrdinalIgnoreCase))?.Value;
DistributedApplicationBuilderExtensions.cs (1)
64var resource = builder.Resources.FirstOrDefault(r => string.Equals(r.Name, name, StringComparison.OrdinalIgnoreCase));
DistributedApplicationOptions.cs (1)
123return assemblyMetadata?.FirstOrDefault(m => string.Equals(m.Key, key, StringComparison.OrdinalIgnoreCase))?.Value;
Orchestrator\ApplicationOrchestrator.cs (2)
232EndpointBindingMode.SingleAddress when !allocatedEndpoint.Address.Equals(endpoint.TargetHost, StringComparison.OrdinalIgnoreCase) => new ResourceUrlAnnotation 287if (!urls.Any(url => url.Url.Equals(existingUrl.Url, StringComparison.OrdinalIgnoreCase) && url.Endpoint == existingUrl.Endpoint))
ProjectResourceBuilderExtensions.cs (1)
853if (string.Equals(host, "localhost", StringComparison.OrdinalIgnoreCase))
src\Shared\LocaleHelpers.cs (1)
49.Any(c => string.Equals(c.Name, cultureName, StringComparison.OrdinalIgnoreCase));
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.Analyzers (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.Azure (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.Azure.CosmosDB (1)
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Hosting.Azure.PostgreSQL (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.Azure.Sql (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.Azure.Storage (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.Azure.Tests (10)
AzureWebPubSubExtensionsTests.cs (1)
151var hub = infrastructure.GetProvisionableResources().OfType<WebPubSubHub>().First(i => string.Equals(i.BicepIdentifier, "abc", StringComparison.OrdinalIgnoreCase));
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.Containers.Tests (1)
DockerSocketBindMountTests.cs (1)
51Assert.Contains("Server Version:", infoContent, StringComparison.OrdinalIgnoreCase);
Aspire.Hosting.Kubernetes (1)
Extensions\ResourceExtensions.cs (1)
377if (context.Parent.DefaultStorageType.Equals("hostpath", StringComparison.OrdinalIgnoreCase))
Aspire.Hosting.Milvus (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.MongoDB (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.MySql (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.Oracle (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.PostgreSQL (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.Qdrant (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.RabbitMQ (4)
RabbitMQBuilderExtensions.cs (4)
159&& string.Equals(containerAnnotations[0].Image, RabbitMQContainerImageTags.Image, StringComparison.OrdinalIgnoreCase)) 176else if (existingTag.EndsWith(management, StringComparison.OrdinalIgnoreCase) 177|| existingTag.EndsWith($"{management}-{alpine}", StringComparison.OrdinalIgnoreCase)) 182else if (existingTag.EndsWith(alpine, StringComparison.OrdinalIgnoreCase))
Aspire.Hosting.SqlServer (9)
src\Shared\StringComparers.cs (9)
38public static StringComparison ResourceName => StringComparison.OrdinalIgnoreCase; 39public static StringComparison ResourceState => StringComparison.OrdinalIgnoreCase; 40public static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase; 41public static StringComparison EndpointAnnotationUriScheme => StringComparison.OrdinalIgnoreCase; 49public static StringComparison Url => StringComparison.OrdinalIgnoreCase; 50public static StringComparison UrlPath => StringComparison.OrdinalIgnoreCase; 51public static StringComparison UrlHost => StringComparison.OrdinalIgnoreCase; 55public static StringComparison OtlpFieldValue => StringComparison.OrdinalIgnoreCase; 59public static StringComparison CultureName => StringComparison.OrdinalIgnoreCase;
Aspire.Hosting.Testing (5)
DistributedApplicationFactory.cs (3)
301if (key.StartsWith("DOTNET_", StringComparison.OrdinalIgnoreCase)) 307if (key.StartsWith("ASPNETCORE_", StringComparison.OrdinalIgnoreCase)) 335return assemblyMetadata?.FirstOrDefault(m => string.Equals(m.Key, key, StringComparison.OrdinalIgnoreCase))?.Value;
DistributedApplicationHostingTestingExtensions.cs (1)
80var resource = resources.SingleOrDefault(r => string.Equals(r.Name, resourceName, StringComparison.OrdinalIgnoreCase));
DistributedApplicationTestingBuilder.cs (1)
371return assemblyMetadata?.FirstOrDefault(m => string.Equals(m.Key, "dcpclipath", StringComparison.OrdinalIgnoreCase))?.Value;
Aspire.Hosting.Testing.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
134if (resourceName != null && !string.Equals(resourceEvent.Resource.Name, resourceName, StringComparison.OrdinalIgnoreCase))
Aspire.Hosting.Tests (8)
DcpVisibilityTests.cs (1)
12var dcpNamespaceTypes = types.Where(t => t.FullName!.Contains("Dcp", StringComparison.OrdinalIgnoreCase));
ExternalServiceTests.cs (2)
64Assert.Contains("invalid", ex.Message, StringComparison.OrdinalIgnoreCase); 74Assert.Contains("absolute", ex.Message, StringComparison.OrdinalIgnoreCase);
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Utils\LoggerNotificationExtensions.cs (1)
134if (resourceName != null && !string.Equals(resourceEvent.Resource.Name, resourceName, StringComparison.OrdinalIgnoreCase))
Utils\StringComparersTests.cs (2)
130yield return (StringComparison.OrdinalIgnoreCase, nameof(StringComparison.OrdinalIgnoreCase));
WithEndpointTests.cs (1)
14private static StringComparison EndpointAnnotationName => StringComparison.OrdinalIgnoreCase;
Aspire.Microsoft.Azure.Cosmos (1)
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Microsoft.Data.SqlClient (2)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\PropertyFetcher.cs (1)
97var property = type.DeclaredProperties.FirstOrDefault(p => string.Equals(p.Name, propertyName, StringComparison.OrdinalIgnoreCase)) ?? type.GetProperty(propertyName);
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (1)
191maybeProtocol.StartsWith("np", StringComparison.OrdinalIgnoreCase);
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Microsoft.EntityFrameworkCore.SqlServer (2)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\PropertyFetcher.cs (1)
97var property = type.DeclaredProperties.FirstOrDefault(p => string.Equals(p.Name, propertyName, StringComparison.OrdinalIgnoreCase)) ?? type.GetProperty(propertyName);
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (1)
191maybeProtocol.StartsWith("np", StringComparison.OrdinalIgnoreCase);
Aspire.Milvus.Client.Tests (1)
ConformanceTests.cs (1)
66if (keyValue.Length == 2 && keyValue[0].Equals(configKey, StringComparison.OrdinalIgnoreCase))
Aspire.OpenAI (1)
OpenAISettings.cs (1)
67if (envVar is not null && (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1")))
Aspire.Playground.Tests (3)
AppHostTests.cs (1)
263if (string.IsNullOrEmpty(s_appHostNameFilter) || candidateTestEndpoint.AppHostType?.Name.Contains(s_appHostNameFilter, StringComparison.OrdinalIgnoreCase) == true)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
134if (resourceName != null && !string.Equals(resourceEvent.Resource.Name, resourceName, StringComparison.OrdinalIgnoreCase))
tests\Aspire.TestUtilities\FileUtil.cs (1)
27var fileName = command.EndsWith(extension, StringComparison.OrdinalIgnoreCase) ? command : command + extension;
Aspire.Qdrant.Client.Tests (1)
ConformanceTests.cs (1)
70if (keyValue.Length == 2 && keyValue[0].Equals(configKey, StringComparison.OrdinalIgnoreCase))
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\PropertyFetcher.AOT.cs (1)
103var property = type.DeclaredProperties.FirstOrDefault(p => string.Equals(p.Name, propertyName, StringComparison.OrdinalIgnoreCase)) ?? type.GetProperty(propertyName);
Aspire.Templates.Tests (6)
TemplateTestsBase.cs (1)
238if (expectedRow.State != actualState && actualState != "Finished" && !actualState.Contains("failed", StringComparison.OrdinalIgnoreCase))
tests\Shared\TemplatesTesting\AspireProject.cs (5)
123if (res.Output.Contains("Restore failed", StringComparison.OrdinalIgnoreCase) || 124res.Output.Contains("Post action failed", StringComparison.OrdinalIgnoreCase)) 311if (outputMessage.Contains("docker was found but appears to be unhealthy", StringComparison.OrdinalIgnoreCase)) 376return ex.Message.Contains("net::ERR_NETWORK_CHANGED", StringComparison.OrdinalIgnoreCase) || 377ex.Message.Contains("net::ERR_SOCKET_NOT_CONNECTED", StringComparison.OrdinalIgnoreCase);
Aspire.TestUtilities (1)
FileUtil.cs (1)
27var fileName = command.EndsWith(extension, StringComparison.OrdinalIgnoreCase) ? command : command + extension;
AutobahnTestApp (1)
Program.cs (1)
60if (uri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
blazor-devserver (2)
Server\Startup.cs (2)
46if (string.Equals(fileExtension, ".js", StringComparison.OrdinalIgnoreCase) || string.Equals(fileExtension, ".mjs", StringComparison.OrdinalIgnoreCase))
BoundTreeGenerator (4)
BoundNodeClassWriter.cs (4)
1720return typeName.StartsWith("IList(Of", StringComparison.OrdinalIgnoreCase) || 1721typeName.StartsWith("ImmutableArray(Of", StringComparison.OrdinalIgnoreCase); 1746int iStart = typeName.IndexOf("(Of", StringComparison.OrdinalIgnoreCase); 1777int iStart = typeName.IndexOf("(Of", StringComparison.OrdinalIgnoreCase);
BuildBoss (2)
CompilerNuGetCheckerUtil.cs (1)
57internal static StringComparison PathComparison { get; } = StringComparison.OrdinalIgnoreCase;
ProjectCheckerUtil.cs (1)
126if (string.Equals(internalsVisibleTo.LoadsWithinVisualStudio, "false", StringComparison.OrdinalIgnoreCase))
BuildValidator (1)
FileNameEqualityComparer.cs (1)
13public const StringComparison StringComparison = System.StringComparison.OrdinalIgnoreCase;
Certificate.Optional.Sample (1)
Program.cs (1)
40if (connectionContext.ClientHelloInfo.ServerName.Equals(HostWithoutCert, StringComparison.OrdinalIgnoreCase))
ClientSample (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
CodeGenerator (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
1508Header = headers.SingleOrDefault(knownHeader => string.Equals(knownHeader.Name, g.Key, StringComparison.OrdinalIgnoreCase)), 1529Header = headers.SingleOrDefault(knownHeader => string.Equals(knownHeader.Name, g.Key, StringComparison.OrdinalIgnoreCase)),
ConfigurationSchemaGenerator (4)
ConfigSchemaEmitter.cs (3)
453if (value?.Contains("default value is", StringComparison.OrdinalIgnoreCase) == true) 455var containsTrue = value.Contains("true", StringComparison.OrdinalIgnoreCase); 456var containsFalse = value.Contains("false", StringComparison.OrdinalIgnoreCase);
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
156var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Crossgen2Tasks (10)
CommonFilePulledFromSdkRepo\NuGetUtils.NuGet.cs (4)
58&& file.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) 59&& !file.EndsWith(".resources.dll", StringComparison.OrdinalIgnoreCase); 62bool CS() => file.Contains("/cs/", StringComparison.OrdinalIgnoreCase); 63bool VB() => file.Contains("/vb/", StringComparison.OrdinalIgnoreCase);
PrepareForReadyToRunCompilation.cs (2)
358if (!file.ItemSpec.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) && !file.ItemSpec.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
ResolveReadyToRunCompilers.cs (1)
202.Equals("Microsoft.NETCore.App", StringComparison.OrdinalIgnoreCase));
RunReadyToRunCompiler.cs (2)
232if (IsPdbCompilation && string.Equals(Path.GetFileName(reference.ItemSpec), Path.GetFileName(_outputR2RImage), StringComparison.OrdinalIgnoreCase)) 400if (!ShowCompilerWarnings && singleLine.Contains("warning:", StringComparison.OrdinalIgnoreCase))
ShimFilesSimulatingLogicInSdkRepo\SimpleItemUtilities.cs (1)
37return string.Equals(value, expectedValue, StringComparison.OrdinalIgnoreCase);
CSharpErrorFactsGenerator (4)
Program.cs (4)
44if (line.StartsWith("WRN_", StringComparison.OrdinalIgnoreCase)) 48else if (line.StartsWith("FTL_", StringComparison.OrdinalIgnoreCase)) 52else if (line.StartsWith("INF_", StringComparison.OrdinalIgnoreCase)) 56else if (line.StartsWith("HDN_", StringComparison.OrdinalIgnoreCase))
CustomPolicyProvider (1)
Authorization\MinimumAgePolicyProvider.cs (1)
41if (policyName.StartsWith(POLICY_PREFIX, StringComparison.OrdinalIgnoreCase) &&
dotnet-dev-certs (6)
Program.cs (1)
172if (noPassword.HasValue() && !(format.HasValue() && string.Equals(format.Value(), "PEM", StringComparison.OrdinalIgnoreCase)))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
19if (args.Length > 0 && string.Equals("--debug", args[0], StringComparison.OrdinalIgnoreCase))
dotnet-getdocument (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
19if (args.Length > 0 && string.Equals("--debug", args[0], StringComparison.OrdinalIgnoreCase))
dotnet-openapi (8)
Commands\RemoveCommand.cs (2)
60if (string.Equals(include, sourceFile, StringComparison.OrdinalIgnoreCase) 61|| string.Equals(sourceUrl, sourceFile, StringComparison.OrdinalIgnoreCase))
DebugMode.cs (1)
15if (args.Length > 0 && string.Equals("--debug", args[0], StringComparison.OrdinalIgnoreCase))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
19if (args.Length > 0 && string.Equals("--debug", args[0], StringComparison.OrdinalIgnoreCase))
dotnet-sql-cache (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
19if (args.Length > 0 && string.Equals("--debug", args[0], StringComparison.OrdinalIgnoreCase))
dotnet-svcutil.xmlserializer (4)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
427if (file.Name.Equals("System.ServiceModel.Primitives.dll", StringComparison.OrdinalIgnoreCase)) 432if (file.Name.Equals("System.Private.ServiceModel.dll", StringComparison.OrdinalIgnoreCase))
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (2)
49if (extension != null && (!Path.HasExtension(outputFile) || !Path.GetExtension(outputFile).Equals(extension, StringComparison.OrdinalIgnoreCase))) 152if (String.Compare(fileName, s_existingFileNames[i], StringComparison.OrdinalIgnoreCase) == 0)
dotnet-svcutil-lib (110)
CodeDomFixup\WcfCodeGenerationExtension.cs (1)
114return string.Equals("vb", xsdImporter.Options.CodeProvider.FileExtension, StringComparison.OrdinalIgnoreCase);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (1)
308if (e.Parameters.Count > 0 && String.Compare(e.Name, "Item", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (3)
584if (string.Compare(m.Groups[full ? 6 : 1].Value, "warning", StringComparison.OrdinalIgnoreCase) == 0) 2230if (e.Parameters.Count > 0 && String.Compare(e.Name, "Item", StringComparison.OrdinalIgnoreCase) == 0) 3519if (current.Name.Equals("system.paramarrayattribute", StringComparison.OrdinalIgnoreCase))
FrameworkFork\Microsoft.CodeDom\System\FixedStringLookup.cs (1)
51Debug.Assert(string.Compare(lastValue, value, ((ignoreCase) ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) < 0,
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (7)
3297if (0 == String.Compare(newEncodingName, "ucs-2", StringComparison.OrdinalIgnoreCase) || 32980 == String.Compare(newEncodingName, "utf-16", StringComparison.OrdinalIgnoreCase) || 32990 == String.Compare(newEncodingName, "iso-10646-ucs-2", StringComparison.OrdinalIgnoreCase) || 33000 == String.Compare(newEncodingName, "ucs-4", StringComparison.OrdinalIgnoreCase)) 33040 != String.Compare(newEncodingName, "ucs-4", StringComparison.OrdinalIgnoreCase)) 3319if (0 == String.Compare(newEncodingName, "utf-8", StringComparison.OrdinalIgnoreCase)) 6329if (string.Compare(target, "xml", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (1)
757if (0 == String.Compare(name, "xml", StringComparison.OrdinalIgnoreCase) && _stateTable == s_stateTableDocument)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (1)
935if (name.Length == 3 && string.Compare(name, "xml", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlImplementation.cs (1)
31if (String.Compare("XML", strFeature, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (1)
802if (String.Compare("XML", feature, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (2)
366if (prefix.Length != 0 && String.Compare(prefix, "xml", StringComparison.OrdinalIgnoreCase) != 0) 1622StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\BooleanFunctions.cs (1)
84lang.StartsWith(str, StringComparison.OrdinalIgnoreCase) &&
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (3)
131if (String.Compare(existingName, assemblyName, StringComparison.OrdinalIgnoreCase) == 0) 755if (String.Compare(typeName, type.Name, StringComparison.OrdinalIgnoreCase) == 0) 780if (String.Compare(typeName, ((CodeTypeDeclaration)member).Name, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
816return contentType == supportedContentType || contentType.StartsWith(supportedContentType, StringComparison.OrdinalIgnoreCase);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
241if (!(requested == null ? string.IsNullOrWhiteSpace(obtained) : requested.Equals(obtained, StringComparison.OrdinalIgnoreCase)))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (18)
399if (string.Compare(via.Scheme, "ws", StringComparison.OrdinalIgnoreCase) != 0) 1060if (string.Compare(name, "accept", StringComparison.OrdinalIgnoreCase) == 0) 1064else if (string.Compare(name, "connection", StringComparison.OrdinalIgnoreCase) == 0) 1066if (value.IndexOf("keep-alive", StringComparison.OrdinalIgnoreCase) != -1) 1075else if (string.Compare(name, "SOAPAction", StringComparison.OrdinalIgnoreCase) == 0) 1090else if (string.Compare(name, "content-length", StringComparison.OrdinalIgnoreCase) == 0) 1094else if (string.Compare(name, "content-type", StringComparison.OrdinalIgnoreCase) == 0) 1098else if (string.Compare(name, "expect", StringComparison.OrdinalIgnoreCase) == 0) 1100if (value.ToUpperInvariant().IndexOf("100-CONTINUE", StringComparison.OrdinalIgnoreCase) != -1) 1109else if (string.Compare(name, "host", StringComparison.OrdinalIgnoreCase) == 0) 1113else if (string.Compare(name, "referer", StringComparison.OrdinalIgnoreCase) == 0) 1119else if (string.Compare(name, "transfer-encoding", StringComparison.OrdinalIgnoreCase) == 0) 1121if (value.ToUpperInvariant().IndexOf("CHUNKED", StringComparison.OrdinalIgnoreCase) != -1) 1130else if (string.Compare(name, "user-agent", StringComparison.OrdinalIgnoreCase) == 0) 1134else if (string.Compare(name, "if-modified-since", StringComparison.OrdinalIgnoreCase) == 0) 1147else if (string.Compare(name, "date", StringComparison.OrdinalIgnoreCase) == 0) 1151else if (string.Compare(name, "proxy-connection", StringComparison.OrdinalIgnoreCase) == 0) 1155else if (string.Compare(name, "range", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (2)
56if ((value is HttpRequestMessageProperty && string.Equals(key, HttpRequestMessageProperty.Name, StringComparison.OrdinalIgnoreCase)) || 57(value is HttpResponseMessageProperty && string.Equals(key, HttpResponseMessageProperty.Name, StringComparison.OrdinalIgnoreCase)))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
336if (string.Compare(statusDescription, HttpChannelUtilities.StatusDescriptionStrings.HttpContentTypeMissing, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
69if (string.Compare(via.Scheme, "wss", StringComparison.OrdinalIgnoreCase) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (2)
62if (string.Compare(name, "SOAPAction", StringComparison.OrdinalIgnoreCase) == 0) 77else if (string.Compare(name, "content-type", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoder.cs (2)
155if (contentType.StartsWith(supportedContentType, StringComparison.OrdinalIgnoreCase)) 203if (supportedMediaType.Length > 0 && !supportedMediaType.Equals(parsedContentType.MediaType, StringComparison.OrdinalIgnoreCase))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (2)
144&& string.Compare("charset=", 0, contentType, semiColonIndex + 2, 8, StringComparison.OrdinalIgnoreCase) == 0) 151int paramIndex = contentType.IndexOf("charset=", semiColonIndex + 1, StringComparison.OrdinalIgnoreCase);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportChannelFactory.cs (1)
173if (string.Compare(via.Scheme, this.Scheme, StringComparison.OrdinalIgnoreCase) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDefaults.cs (1)
119if (compare.Equals(charSet, StringComparison.OrdinalIgnoreCase))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpTransportBindingElement.cs (1)
242if (!String.Equals(this.MulticastInterfaceId, udpTransport.MulticastInterfaceId, StringComparison.OrdinalIgnoreCase))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (2)
52(WebSocketHelper.SchemeWs.Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase) || 53WebSocketHelper.SchemeWss.Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (9)
373if (string.Compare(typeDeclaration.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 380if (string.Compare(member.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 394if (string.Compare(codeTypeDeclaration.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 424if (String.Compare(operationContext.SyncMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 428if (String.Compare(operationContext.BeginMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 430if (String.Compare(operationContext.EndMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 435if (String.Compare(operationContext.TaskMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 445if (String.Compare(method.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 450if (String.Compare(p.Name, name, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeBindings.cs (4)
134if (String.Compare(scheme, "http", StringComparison.OrdinalIgnoreCase) == 0) 138else if (String.Compare(scheme, "https", StringComparison.OrdinalIgnoreCase) == 0) 142else if (String.Compare(scheme, "net.tcp", StringComparison.OrdinalIgnoreCase) == 0) 146else if (String.Compare(scheme, "net.pipe", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (2)
486if (String.Compare(name, _methodName, StringComparison.OrdinalIgnoreCase) == 0) 515if (String.Compare(parameter.Name, name, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
63if (String.Compare(existingName, assemblyName, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
153if (String.Compare(codeType.Name, typeName, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (2)
1063string delimiter = ns.StartsWith("urn:", StringComparison.OrdinalIgnoreCase) ? ":" : "/"; 1065string baseActionUri = ns.EndsWith(delimiter, StringComparison.OrdinalIgnoreCase) ? ns : ns + delimiter;
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (3)
371if (string.Compare(u1.Host, u2.Host, StringComparison.OrdinalIgnoreCase) != 0) 377if (string.Compare(u1.AbsolutePath, u2.AbsolutePath, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0) 391return string.Compare(u1Path, 0, u2Path, 0, u1Len, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (1)
198if (expectedSpn.Equals((string)claim.Resource, StringComparison.OrdinalIgnoreCase))
ImportModule.cs (2)
416if (httpVerb.Equals("GET", StringComparison.OrdinalIgnoreCase) || httpVerb.Equals("POST", StringComparison.OrdinalIgnoreCase))
Metadata\HttpAuthenticationHelper.cs (1)
144if (challenge.StartsWith(realmTokenStart, StringComparison.OrdinalIgnoreCase))
Metadata\MetadaExchangeResolver.cs (6)
93bool isMexUri = this.EndpointAddress.Uri.AbsoluteUri.EndsWith(mexUri, StringComparison.OrdinalIgnoreCase); 371if (String.Compare(scheme, MetadataConstants.Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase) == 0) 380else if (String.Compare(scheme, MetadataConstants.Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase) == 0) 389else if (String.Compare(scheme, MetadataConstants.Uri.UriSchemeNetTcp, StringComparison.OrdinalIgnoreCase) == 0) 395else if (String.Compare(scheme, MetadataConstants.Uri.UriSchemeNetPipe, StringComparison.OrdinalIgnoreCase) == 0) 455if (String.Compare(paramDecl, 0, paramName, 0, paramName.Length, StringComparison.OrdinalIgnoreCase) == 0)
Metadata\MetadataDocumentLoader.cs (4)
265var isUrl = uri.StartsWith(MetadataConstants.Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase) || 266uri.StartsWith(MetadataConstants.Uri.UriSchemeNetTcp, StringComparison.OrdinalIgnoreCase) || 267uri.StartsWith(MetadataConstants.Uri.UriSchemeNetPipe, StringComparison.OrdinalIgnoreCase); 715if (key.EndsWith(MexUri, StringComparison.OrdinalIgnoreCase))
Metadata\MetadataFileNameManager.cs (1)
169if (!string.IsNullOrEmpty(extension) && (!Path.HasExtension(outputFile) || !Path.GetExtension(outputFile).Equals(extension, StringComparison.OrdinalIgnoreCase)))
OutputPathHelper.cs (1)
36if (extension != null && (!Path.HasExtension(outputFile) || !Path.GetExtension(outputFile).Equals(extension, StringComparison.OrdinalIgnoreCase)))
Shared\MSBuildProj.cs (1)
1033if (string.IsNullOrEmpty(sdkVersion) || sdkVersion.StartsWith("1", StringComparison.OrdinalIgnoreCase))
Shared\ProjectDependency.cs (7)
108if (s_projectExtensions.Any((ext) => String.Compare(Path.GetExtension(AssemblyName), ext, StringComparison.OrdinalIgnoreCase) == 0)) 115(s_binaryExtensions.Any((ext) => String.Compare(Path.GetExtension(filePath), ext, StringComparison.OrdinalIgnoreCase) == 0)); 118if (s_exeExtensions.Any((ext) => String.Compare(Path.GetExtension(packageName), ext, StringComparison.OrdinalIgnoreCase) == 0)) 133fileHasKnownExtension = s_binaryExtensions.Any((ext) => String.Compare(Path.GetExtension(filePath), ext, StringComparison.OrdinalIgnoreCase) == 0); 137fileHasKnownExtension = s_projectExtensions.Any((ext) => String.Compare(Path.GetExtension(filePath), ext, StringComparison.OrdinalIgnoreCase) == 0); 310if (s_projectExtensions.Any((ext) => String.Compare(Path.GetExtension(path), ext, StringComparison.OrdinalIgnoreCase) == 0)) 315else if (s_binaryExtensions.Any((ext) => String.Compare(Path.GetExtension(path), ext, StringComparison.OrdinalIgnoreCase) == 0))
Shared\TargetFrameworkHelper.cs (1)
154&& !frameworkInfo.Name.Equals(FrameworkInfo.Netstandard, StringComparison.OrdinalIgnoreCase)
Shared\Utilities\PathHelper.cs (3)
57var isUrl = input.StartsWith("http", StringComparison.OrdinalIgnoreCase) || 58input.StartsWith("net.tcp", StringComparison.OrdinalIgnoreCase) || 59input.StartsWith("net.pipe", StringComparison.OrdinalIgnoreCase);
TypeLoader.cs (2)
23if (path.EndsWith(DotDll, StringComparison.OrdinalIgnoreCase) || path.EndsWith(DotExe, StringComparison.OrdinalIgnoreCase))
dotnet-svcutil-lib.Tests (4)
FixupUtil.cs (1)
157idx = updatedText.IndexOf(target, idx, StringComparison.OrdinalIgnoreCase);
TestInit.cs (3)
365var nonRefbaselineFiles = baselineFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList(); 377var nonRefGeneratedFiles = generatedFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList(); 479var isLogFile = Path.GetExtension(baselineFile).Equals(".log", StringComparison.OrdinalIgnoreCase);
dotnet-user-jwts (7)
Helpers\DevJwtCliHelpers.cs (1)
53if (!appsettingsFile.EndsWith(".json", StringComparison.OrdinalIgnoreCase))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
19if (args.Length > 0 && string.Equals("--debug", args[0], StringComparison.OrdinalIgnoreCase))
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
31.Where(f => !".xproj".Equals(Path.GetExtension(f), StringComparison.OrdinalIgnoreCase))
dotnet-user-secrets (6)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
19if (args.Length > 0 && string.Equals("--debug", args[0], StringComparison.OrdinalIgnoreCase))
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
31.Where(f => !".xproj".Equals(Path.GetExtension(f), StringComparison.OrdinalIgnoreCase))
GenerateDocumentationAndConfigFiles (30)
Program.cs (1)
1456!string.Equals(rule.Category, category, StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (10)
71if (lineText.StartsWith(ReleasePrefix, StringComparison.OrdinalIgnoreCase)) 96if (lineText.StartsWith(TableTitleNewRules, StringComparison.OrdinalIgnoreCase)) 101else if (lineText.StartsWith(TableTitleRemovedRules, StringComparison.OrdinalIgnoreCase)) 106else if (lineText.StartsWith(TableTitleChangedRules, StringComparison.OrdinalIgnoreCase)) 161if (lineText.StartsWith("## ", StringComparison.OrdinalIgnoreCase)) 165else if (lineText.StartsWith("### ", StringComparison.OrdinalIgnoreCase)) 211if (string.Equals(category, oldCategory, StringComparison.OrdinalIgnoreCase) && 290if (category.Equals(UndetectedText, StringComparison.OrdinalIgnoreCase)) 304if (string.Equals(severityPart, DisabledText, StringComparison.OrdinalIgnoreCase)) 308else if (severityPart.Equals(UndetectedText, StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
GenerateRulesMissingDocumentation (1)
Program.cs (1)
23if (!args[0].StartsWith(validateOnlyPrefix, StringComparison.OrdinalIgnoreCase))
GetDocument.Insider (7)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-rc.1.25420.121\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (2)
163=> arg.Equals("--applicationName", StringComparison.OrdinalIgnoreCase) || 164arg.Equals("/applicationName", StringComparison.OrdinalIgnoreCase);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
19if (args.Length > 0 && string.Equals("--debug", args[0], StringComparison.OrdinalIgnoreCase))
http2cat (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
Identity.ExternalClaims (1)
Pages\Account\Manage\ManageNavPages.cs (1)
34return string.Equals(activePage, page, StringComparison.OrdinalIgnoreCase) ? "active" : null;
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (1)
147Assert.Contains("gzip", response.Content.GetType().FullName, StringComparison.OrdinalIgnoreCase);
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
IIS.LongTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (1)
147Assert.Contains("gzip", response.Content.GetType().FullName, StringComparison.OrdinalIgnoreCase);
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
illink (6)
ILLink.RoslynAnalyzer (17)
AnalyzerOptionsExtensions.cs (1)
27if (!string.Equals(propertyValue?.Trim(), "true", System.StringComparison.OrdinalIgnoreCase))
CompilationExtensions.cs (1)
144var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
RequiresAnalyzerBase.cs (1)
447string.Equals(attr.ConstructorArguments[1].Value?.ToString(), "True", StringComparison.OrdinalIgnoreCase));
RequiresAssemblyFilesAnalyzer.cs (2)
58if (!string.Equals(isSingleFileAnalyzerEnabled?.Trim(), "true", StringComparison.OrdinalIgnoreCase)) 62if (string.Equals(includesAllContent?.Trim(), "true", StringComparison.OrdinalIgnoreCase))
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (12)
200if (attributeValue.Equals("Yes", StringComparison.OrdinalIgnoreCase)) 204else if (attributeValue.Equals("No", StringComparison.OrdinalIgnoreCase)) 220if (attributeValue.Equals("WindowsRuntime", StringComparison.OrdinalIgnoreCase)) 245=> candidate.Equals(attributeKind, StringComparison.OrdinalIgnoreCase); 292if (attributeValue.Equals("Neutral", StringComparison.OrdinalIgnoreCase)) 304if (attributeValue.Equals("null", StringComparison.OrdinalIgnoreCase) || attributeValue == string.Empty) 331_ when attributeValue.Equals("msil", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.MSIL, 332_ when attributeValue.Equals("x86", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.X86, 333_ when attributeValue.Equals("ia64", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.IA64, 334_ when attributeValue.Equals("amd64", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.Amd64, 335_ when attributeValue.Equals("arm", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.Arm, 336_ when attributeValue.Equals("msil", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.MSIL,
ILLink.Tasks (2)
LinkTask.cs (2)
376if (isTrimmable.Equals("true", StringComparison.OrdinalIgnoreCase)) 381else if (isTrimmable.Equals("false", StringComparison.OrdinalIgnoreCase))
Infrastructure.Common (6)
ConditionalTestDetectors.cs (3)
126return !String.Equals(computerName, logonServer, StringComparison.OrdinalIgnoreCase) && 127!String.Equals(computerName, userDomain, StringComparison.OrdinalIgnoreCase); 171int index = host.IndexOf("localhost", 0, StringComparison.OrdinalIgnoreCase);
OSHelper.cs (3)
137if (osDescription.IndexOf(description, StringComparison.OrdinalIgnoreCase) >= 0) 146if (string.Equals(MicrosoftWindowsName, CurrentOSDescription, StringComparison.OrdinalIgnoreCase)) 193if (testRuntime.IndexOf(runtime, StringComparison.OrdinalIgnoreCase) >= 0)
InMemory.FunctionalTests (6)
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (1)
189return string.Equals(name, "Content-Disposition", StringComparison.OrdinalIgnoreCase);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (4)
48if (authority.AiaHttpUri != null && authority.AiaHttpUri.StartsWith(UriPrefix, StringComparison.OrdinalIgnoreCase)) 55if (authority.CdpUri != null && authority.CdpUri.StartsWith(UriPrefix, StringComparison.OrdinalIgnoreCase)) 62if (authority.OcspUri != null && authority.OcspUri.StartsWith(UriPrefix, StringComparison.OrdinalIgnoreCase)) 217if (url.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
TestTransport\InMemoryHttpClientSlim.cs (1)
122if (requestUri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
installer.tasks (4)
GenerateFileVersionProps.cs (3)
54if (file.GetMetadata("IsSymbolFile").Equals("true", StringComparison.OrdinalIgnoreCase)) 107p.Key.EndsWith(".exe", StringComparison.OrdinalIgnoreCase) || 108p.Key.EndsWith(".dll", StringComparison.OrdinalIgnoreCase))
StaticFileRegeneration\TpnSection.cs (1)
14string.Equals(x.Header.Name, y.Header.Name, StringComparison.OrdinalIgnoreCase);
InteractiveHost.UnitTests (2)
AbstractInteractiveHostTests.cs (1)
204options: fileName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase) ? TestOptions.ReleaseExe : TestOptions.ReleaseDll);
InteractiveHostDesktopTests.cs (1)
979Assert.DoesNotContain("Unexpected", error, StringComparison.OrdinalIgnoreCase);
InteropWebsite (1)
TestServiceImpl.cs (1)
137var encoding = context.GetHttpContext().Request.Headers.SingleOrDefault(h => string.Equals(h.Key, "grpc-encoding", StringComparison.OrdinalIgnoreCase)).Value.SingleOrDefault();
Metrics (26)
Program.cs (6)
118if (!value.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase) && 119!value.EndsWith(".vbproj", StringComparison.OrdinalIgnoreCase)) 134if (!value.EndsWith(".sln", StringComparison.OrdinalIgnoreCase)) 275if (projectOrSolution.EndsWith(".sln", StringComparison.OrdinalIgnoreCase)) 281Debug.Assert(projectOrSolution.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase) || 282projectOrSolution.EndsWith(".vbproj", StringComparison.OrdinalIgnoreCase));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
140var index = symbolName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Metrics.Legacy (26)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Tools\Metrics\Program.cs (6)
118if (!value.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase) && 119!value.EndsWith(".vbproj", StringComparison.OrdinalIgnoreCase)) 134if (!value.EndsWith(".sln", StringComparison.OrdinalIgnoreCase)) 275if (projectOrSolution.EndsWith(".sln", StringComparison.OrdinalIgnoreCase)) 281Debug.Assert(projectOrSolution.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase) || 282projectOrSolution.EndsWith(".vbproj", StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
140var index = symbolName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (1)
172if (string.Equals(doc.Name, targetName, StringComparison.OrdinalIgnoreCase))
Microsoft.Analyzers.Local (2)
ApiLifecycle\ModelLoader.cs (2)
32if (assemblyName.EndsWith(fileName, StringComparison.OrdinalIgnoreCase) && string.Equals(fileExtension, ".json", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore (27)
ConfigureHostBuilder.cs (4)
75if (!string.Equals(previousApplicationName, _configuration[HostDefaults.ApplicationKey], StringComparison.OrdinalIgnoreCase)) 80if (!string.Equals(previousContentRootConfig, _configuration[HostDefaults.ContentRootKey], StringComparison.OrdinalIgnoreCase) 81&& !string.Equals(previousContentRoot, HostingPathResolver.ResolvePath(_configuration[HostDefaults.ContentRootKey]), StringComparison.OrdinalIgnoreCase)) 86if (!string.Equals(previousEnvironment, _configuration[HostDefaults.EnvironmentKey], StringComparison.OrdinalIgnoreCase))
ConfigureWebHostBuilder.cs (20)
53if (!string.Equals(previousWebRootConfig, _configuration[WebHostDefaults.WebRootKey], StringComparison.OrdinalIgnoreCase) 54&& !string.Equals(HostingPathResolver.ResolvePath(previousWebRoot, previousContentRoot), HostingPathResolver.ResolvePath(_configuration[WebHostDefaults.WebRootKey], previousContentRoot), StringComparison.OrdinalIgnoreCase)) 59else if (!string.Equals(previousApplication, _configuration[WebHostDefaults.ApplicationKey], StringComparison.OrdinalIgnoreCase)) 64else if (!string.Equals(previousContentRootConfig, _configuration[WebHostDefaults.ContentRootKey], StringComparison.OrdinalIgnoreCase) 65&& !string.Equals(previousContentRoot, HostingPathResolver.ResolvePath(_configuration[WebHostDefaults.ContentRootKey]), StringComparison.OrdinalIgnoreCase)) 70else if (!string.Equals(previousEnvironment, _configuration[WebHostDefaults.EnvironmentKey], StringComparison.OrdinalIgnoreCase)) 75else if (!string.Equals(previousHostingStartupAssemblies, _configuration[WebHostDefaults.HostingStartupAssembliesKey], StringComparison.OrdinalIgnoreCase)) 80else if (!string.Equals(previousHostingStartupAssembliesExclude, _configuration[WebHostDefaults.HostingStartupExcludeAssembliesKey], StringComparison.OrdinalIgnoreCase)) 125if (string.Equals(key, WebHostDefaults.WebRootKey, StringComparison.OrdinalIgnoreCase) && 126!string.Equals(HostingPathResolver.ResolvePath(previousWebRoot, previousContentRoot), HostingPathResolver.ResolvePath(value, previousContentRoot), StringComparison.OrdinalIgnoreCase)) 131else if (string.Equals(key, WebHostDefaults.ApplicationKey, StringComparison.OrdinalIgnoreCase) && 132!string.Equals(previousApplication, value, StringComparison.OrdinalIgnoreCase)) 137else if (string.Equals(key, WebHostDefaults.ContentRootKey, StringComparison.OrdinalIgnoreCase) && 138!string.Equals(previousContentRoot, HostingPathResolver.ResolvePath(value), StringComparison.OrdinalIgnoreCase)) 143else if (string.Equals(key, WebHostDefaults.EnvironmentKey, StringComparison.OrdinalIgnoreCase) && 144!string.Equals(previousEnvironment, value, StringComparison.OrdinalIgnoreCase)) 149else if (string.Equals(key, WebHostDefaults.HostingStartupAssembliesKey, StringComparison.OrdinalIgnoreCase) && 150!string.Equals(previousHostingStartupAssemblies, value, StringComparison.OrdinalIgnoreCase)) 155else if (string.Equals(key, WebHostDefaults.HostingStartupExcludeAssembliesKey, StringComparison.OrdinalIgnoreCase) && 156!string.Equals(previousHostingStartupAssembliesExclude, value, StringComparison.OrdinalIgnoreCase))
ForwardedHeadersOptionsSetup.cs (1)
22if (!string.Equals("true", _configuration["ForwardedHeaders_Enabled"], StringComparison.OrdinalIgnoreCase))
ForwardedHeadersStartupFilter.cs (1)
21if (!string.Equals("true", _configuration["ForwardedHeaders_Enabled"], StringComparison.OrdinalIgnoreCase))
WebApplicationBuilder.cs (1)
259if (!OperatingSystem.IsWindows() || !string.Equals(cwd, System.Environment.SystemDirectory, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Analyzers (3)
StartupFacts.cs (3)
66!symbol.Name.StartsWith(SymbolNames.ConfigureServicesMethodPrefix, StringComparison.OrdinalIgnoreCase) || 67!symbol.Name.EndsWith(SymbolNames.ConfigureServicesMethodSuffix, StringComparison.OrdinalIgnoreCase)) 104!symbol.Name.StartsWith(SymbolNames.ConfigureMethodPrefix, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Antiforgery (5)
Internal\DefaultAntiforgery.cs (1)
384if (!string.Equals(pragmaHeader[0], "no-cache", StringComparison.OrdinalIgnoreCase))
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
155if (currentUsername.StartsWith("http://", StringComparison.OrdinalIgnoreCase) || 156currentUsername.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
src\Shared\HttpExtensions.cs (2)
32return contentType.Equals(UrlEncodedFormContentType, StringComparison.OrdinalIgnoreCase) || 33contentType.StartsWith(MultipartFormContentType, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.App.Analyzers (11)
Infrastructure\AmbiguousRoutePatternComparer.cs (1)
92return string.Equals(s1, s2, StringComparison.OrdinalIgnoreCase);
Infrastructure\RoutePattern\RoutePatternParser.cs (1)
275if (!routeParameters.Any(p => string.Equals(p.Name, name, StringComparison.OrdinalIgnoreCase)))
Infrastructure\RoutePattern\RoutePatternTree.cs (1)
41if (string.Equals(parameter.Name, name, StringComparison.OrdinalIgnoreCase))
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
254if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.OrdinalIgnoreCase))
Mvc\DetectAmbiguousActionRoutes.cs (3)
69if (string.Equals(name, "action", StringComparison.OrdinalIgnoreCase)) 84if (string.Equals(name, "action", StringComparison.OrdinalIgnoreCase)) 143(!HasActionToken || string.Equals(ActionName, other.ActionName, StringComparison.OrdinalIgnoreCase)) &&
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (2)
123if (string.Equals(routeParameter.Name, routeParameterName, StringComparison.OrdinalIgnoreCase)) 134var parameterSymbol = resolvedParameterSymbols.FirstOrDefault(s => string.Equals(s.RouteParameterName, routeParameter.Name, StringComparison.OrdinalIgnoreCase));
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (1)
63foreach (var matchingParameter in resolvedParameters.Where(s => string.Equals(s.RouteParameterName, parameterName, StringComparison.OrdinalIgnoreCase)))
src\Shared\Roslyn\MvcFacts.cs (1)
48if (!type.Name.EndsWith("Controller", StringComparison.OrdinalIgnoreCase) &&
Microsoft.AspNetCore.App.Analyzers.Test (1)
TestDiagnosticAnalyzer.cs (1)
157if (!project.MetadataReferences.Any(c => string.Equals(Path.GetFileNameWithoutExtension(c.Display), Path.GetFileNameWithoutExtension(assembly), StringComparison.OrdinalIgnoreCase)))
Microsoft.AspNetCore.App.UnitTests (9)
PackageTests.cs (5)
44.Where(file => !file.EndsWith(".symbols.nupkg", StringComparison.OrdinalIgnoreCase)); 76if (packageDir.Contains("Microsoft.AspNetCore.App", StringComparison.OrdinalIgnoreCase)) 82if (helixTestRunnerToolPackages.Any(s => packageDir.Contains(s, StringComparison.OrdinalIgnoreCase))) 123.Where(f => !toolAssembliesToSkip.Any(s => Path.GetFileNameWithoutExtension(f).Contains(s, StringComparison.OrdinalIgnoreCase))); 142return tfm.StartsWith("net4", StringComparison.OrdinalIgnoreCase);
TargetingPackTests.cs (2)
309.Where(f => !f.EndsWith(".resources", StringComparison.OrdinalIgnoreCase)) 417if (expectedLanguage.Equals("dotnet", StringComparison.OrdinalIgnoreCase))
TestData.cs (2)
348public static bool VerifyAncmBinary() => string.Equals(GetTestDataValue("VerifyAncmBinary"), "true", StringComparison.OrdinalIgnoreCase); 350public static bool VerifyPackageAssemblyVersions() => string.Equals(GetTestDataValue("VerifyPackageAssemblyVersions"), "true", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Authentication.Cookies (3)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (3)
260Func<string, bool> predicate = value => keys.Any(k => value.StartsWith(k, StringComparison.OrdinalIgnoreCase)); 263rejectPredicate = value => predicate(value) && value.Contains("domain=" + options.Domain, StringComparison.OrdinalIgnoreCase); 267rejectPredicate = value => predicate(value) && value.Contains("path=" + options.Path, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Authentication.JwtBearer (2)
JwtBearerHandler.cs (1)
84if (authorization.StartsWith("Bearer ", StringComparison.OrdinalIgnoreCase))
JwtBearerPostConfigureOptions.cs (1)
47if (options.RequireHttpsMetadata && !options.MetadataAddress.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
110if (authorization.StartsWith(AuthHeaderPrefix, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Authentication.OAuth (2)
ClaimActionCollection.cs (1)
27var itemsToRemove = Actions.Where(map => string.Equals(claimType, map.ClaimType, StringComparison.OrdinalIgnoreCase)).ToList();
MapAllClaimsAction.cs (1)
31var duplicate = identity.FindFirst(c => string.Equals(c.Type, pair.Name, StringComparison.OrdinalIgnoreCase)
Microsoft.AspNetCore.Authentication.OpenIdConnect (9)
OpenIdConnectHandler.cs (6)
120&& Request.ContentType.StartsWith("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase) 608if (!(contentType?.MediaType?.Equals("application/json", StringComparison.OrdinalIgnoreCase) ?? false)) 659&& Request.ContentType.StartsWith("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase) 999else if (!string.Equals(contentMediaType, "application/json", StringComparison.OrdinalIgnoreCase)) 1062if (contentType?.MediaType?.Equals("application/json", StringComparison.OrdinalIgnoreCase) ?? false) 1066else if (contentType?.MediaType?.Equals("application/jwt", StringComparison.OrdinalIgnoreCase) ?? false)
OpenIdConnectPostConfigureOptions.cs (1)
95if (options.RequireHttpsMetadata && !(options.MetadataAddress?.StartsWith("https://", StringComparison.OrdinalIgnoreCase) ?? false))
UniqueJsonKeyClaimAction.cs (2)
39var claim = identity.FindFirst(c => string.Equals(c.Type, ClaimType, StringComparison.OrdinalIgnoreCase)); 50&& string.Equals(shortType, ClaimType, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
358var contentTypeIsJson = string.Equals(response.Content.Headers.ContentType?.MediaType ?? "", "application/json", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Authentication.WsFederation (3)
WsFederationHandler.cs (2)
72WsFederationConstants.WsFederationActions.SignOutCleanup, StringComparison.OrdinalIgnoreCase)) 157&& Request.ContentType.StartsWith("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase)
WsFederationPostConfigureOptions.cs (1)
79if (options.RequireHttpsMetadata && !options.MetadataAddress.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Authorization (2)
ClaimsAuthorizationRequirement.cs (2)
60if (string.Equals(claim.Type, requirement.ClaimType, StringComparison.OrdinalIgnoreCase)) 71if (string.Equals(claim.Type, requirement.ClaimType, StringComparison.OrdinalIgnoreCase)
Microsoft.AspNetCore.Components (33)
CascadingValue.cs (5)
67if (parameter.Name.Equals(nameof(Value), StringComparison.OrdinalIgnoreCase)) 72else if (parameter.Name.Equals(nameof(ChildContent), StringComparison.OrdinalIgnoreCase)) 76else if (parameter.Name.Equals(nameof(Name), StringComparison.OrdinalIgnoreCase)) 84else if (parameter.Name.Equals(nameof(IsFixed), StringComparison.OrdinalIgnoreCase)) 140|| string.Equals(requestedName, Name, StringComparison.OrdinalIgnoreCase); // Also match on name
CascadingValueSource.cs (1)
149|| string.Equals(requestedName, _name, StringComparison.OrdinalIgnoreCase); // Also match on name
DynamicComponent.cs (2)
69if (entry.Name.Equals(nameof(Type), StringComparison.OrdinalIgnoreCase)) 73else if (entry.Name.Equals(nameof(Parameters), StringComparison.OrdinalIgnoreCase))
NavigationManagerExtensions.cs (2)
628if (pair.EncodedName.Span.Equals(encodedName, StringComparison.OrdinalIgnoreCase)) 667if (!pair.EncodedName.Span.Equals(encodedName, StringComparison.OrdinalIgnoreCase))
Reflection\ComponentProperties.cs (1)
105if (string.Equals(parameterName, writers.CaptureUnmatchedValuesPropertyName, StringComparison.OrdinalIgnoreCase))
Rendering\SimplifiedStringHashComparer.cs (1)
22return string.Equals(x, y, StringComparison.OrdinalIgnoreCase);
ResourceAssetCollection.cs (1)
36if (property.Name.Equals("label", StringComparison.OrdinalIgnoreCase))
Routing\QueryParameterNameComparer.cs (3)
13=> x.Span.CompareTo(y.Span, StringComparison.OrdinalIgnoreCase); 16=> x.Span.Equals(y.Span, StringComparison.OrdinalIgnoreCase); 19=> string.GetHashCode(obj.Span, StringComparison.OrdinalIgnoreCase);
Routing\RouteTable.cs (2)
49routeValueDictionary[kvp.Key] = value.Replace("%2F", "/", StringComparison.OrdinalIgnoreCase); 99routeValues[kvp.Key] = value.Replace("%2F", "/", StringComparison.OrdinalIgnoreCase);
Routing\RouteTableFactory.cs (3)
29return result != 0 ? result : string.Compare(x.RoutePattern.RawText, y.RoutePattern.RawText, StringComparison.OrdinalIgnoreCase); 180if (string.Equals(parsed.RawText, template, StringComparison.OrdinalIgnoreCase)) 334!string.Equals(leftLiteral.Content, rightLiteral.Content, StringComparison.OrdinalIgnoreCase))
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (3)
715if (string.Equals(array[i].Key, key, StringComparison.OrdinalIgnoreCase)) 735if (string.Equals(array[i].Key, key, StringComparison.OrdinalIgnoreCase)) 758if (string.Equals(array[i].Key, key, StringComparison.OrdinalIgnoreCase))
src\Http\Routing\src\Patterns\RoutePattern.cs (1)
148if (string.Equals(parameter.Name, name, StringComparison.OrdinalIgnoreCase))
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
506if (string.Equals(kvp.Key, parameters[i].Name, StringComparison.OrdinalIgnoreCase))
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (5)
211if (!stringSegment.Equals(part.Content, StringComparison.OrdinalIgnoreCase)) 220if (!stringSegment.Equals(part.Content, StringComparison.OrdinalIgnoreCase)) 314StringComparison.OrdinalIgnoreCase)) 383StringComparison.OrdinalIgnoreCase); 390StringComparison.OrdinalIgnoreCase);
src\Http\Routing\src\RouteValueEqualityComparer.cs (2)
17/// strings are compared using <see cref="StringComparison.OrdinalIgnoreCase"/>. 42return string.Equals(stringX, stringY, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.Endpoints (29)
Assets\ImportMapDefinition.cs (4)
61if (!(asset.Url.EndsWith(".mjs", StringComparison.OrdinalIgnoreCase) || 62asset.Url.EndsWith(".js", StringComparison.OrdinalIgnoreCase)) || 92if (string.Equals(property.Name, "integrity", StringComparison.OrdinalIgnoreCase)) 96else if (string.Equals(property.Name, "label", StringComparison.OrdinalIgnoreCase))
Builder\ResourcePreloadCollection.cs (9)
25if (property.Name.Equals("preloadgroup", StringComparison.OrdinalIgnoreCase)) 57if (property.Name.Equals("label", StringComparison.OrdinalIgnoreCase)) 61else if (property.Name.Equals("integrity", StringComparison.OrdinalIgnoreCase)) 65else if (property.Name.Equals("preloadgroup", StringComparison.OrdinalIgnoreCase)) 69else if (property.Name.Equals("preloadrel", StringComparison.OrdinalIgnoreCase)) 73else if (property.Name.Equals("preloadas", StringComparison.OrdinalIgnoreCase)) 77else if (property.Name.Equals("preloadpriority", StringComparison.OrdinalIgnoreCase)) 81else if (property.Name.Equals("preloadcrossorigin", StringComparison.OrdinalIgnoreCase)) 85else if (property.Name.Equals("preloadorder", StringComparison.OrdinalIgnoreCase))
DependencyInjection\DefaultRazorComponentsServiceOptionsConfiguration.cs (2)
25options.DetailedErrors = string.Equals(value, "true", StringComparison.OrdinalIgnoreCase) || 26string.Equals(value, "1", StringComparison.OrdinalIgnoreCase);
FormMapping\FormKey.cs (2)
11private readonly int _hashCode = string.GetHashCode(value.Span, StringComparison.OrdinalIgnoreCase); 18MemoryExtensions.Equals(Value.Span, other.Value.Span, StringComparison.OrdinalIgnoreCase);
FormMapping\Metadata\FormDataMetadataFactory.cs (1)
193.FirstOrDefault(p => string.Equals(p.Name, property.Name, StringComparison.OrdinalIgnoreCase));
RazorComponentEndpointInvoker.cs (2)
213if (!type.MediaType.Equals("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase) && 214!type.MediaType.Equals("multipart/form-data", StringComparison.OrdinalIgnoreCase))
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
236if (candidate.AttributeEventHandlerId > 0 && string.Equals(candidate.AttributeName, eventType, StringComparison.OrdinalIgnoreCase))
src\Shared\Components\ResourceCollectionResolver.cs (8)
69if (property.Name.Equals("label", StringComparison.OrdinalIgnoreCase)) 74else if (property.Name.Equals("integrity", StringComparison.OrdinalIgnoreCase)) 79else if (property.Name.Equals("preloadrel", StringComparison.OrdinalIgnoreCase)) 84else if (property.Name.Equals("preloadas", StringComparison.OrdinalIgnoreCase)) 89else if (property.Name.Equals("preloadpriority", StringComparison.OrdinalIgnoreCase)) 94else if (property.Name.Equals("preloadcrossorigin", StringComparison.OrdinalIgnoreCase)) 99else if (property.Name.Equals("preloadorder", StringComparison.OrdinalIgnoreCase)) 104else if (property.Name.Equals("preloadgroup", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitOptionsJSInteropDetailedErrorsConfiguration.cs (2)
22options.DetailedErrors = string.Equals(value, "true", StringComparison.OrdinalIgnoreCase) || 23string.Equals(value, "1", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.Tests (5)
CascadingParameterTest.cs (1)
968if (string.Equals(RenderWhenEqualTo, CascadingParameter.ToString(), StringComparison.OrdinalIgnoreCase))
RendererTest.cs (1)
6079if (parameter.Name.Equals(nameof(SomeParam), StringComparison.OrdinalIgnoreCase))
RenderTreeDiffBuilderTest.cs (1)
1761tree.AddComponentParameter(1, "MyEnum", StringComparison.OrdinalIgnoreCase);
Routing\TemplateParserTests.cs (2)
311string.Equals(xParameterPart.Name, yParameterPart.Name, StringComparison.OrdinalIgnoreCase) && 315string.Equals(xLiteralPart.Content, yLiteralPart.Content, StringComparison.OrdinalIgnoreCase),
Microsoft.AspNetCore.Components.Web (11)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (8)
110var isTextArea = string.Equals(frame.ElementName, "textarea", StringComparison.OrdinalIgnoreCase); 111var isForm = string.Equals(frame.ElementName, "form", StringComparison.OrdinalIgnoreCase); 119&& string.Equals(frame.ElementName, "option", StringComparison.OrdinalIgnoreCase) 130var isSelect = string.Equals(frame.ElementName, "select", StringComparison.OrdinalIgnoreCase); 143else if (string.Equals(frame.ElementNameField, "script", StringComparison.OrdinalIgnoreCase)) 210if (string.Equals(enclosingElementFrame.ElementName, "form", StringComparison.OrdinalIgnoreCase)) 307if (frame.AttributeName.Equals("value", StringComparison.OrdinalIgnoreCase)) 317if (isForm && frame.AttributeName.Equals("action", StringComparison.OrdinalIgnoreCase) &&
Routing\NavigationLock.cs (2)
51if (parameter.Name.Equals(nameof(OnBeforeInternalNavigation), StringComparison.OrdinalIgnoreCase)) 55else if (parameter.Name.Equals(nameof(ConfirmExternalNavigation), StringComparison.OrdinalIgnoreCase))
Routing\NavLink.cs (1)
235return value.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)
Microsoft.AspNetCore.Components.WebAssembly (2)
Hosting\WebAssemblyHostBuilder.cs (1)
115if (ama.Value != null && string.Equals((string?)ama.Value, "true", StringComparison.OrdinalIgnoreCase))
Hosting\WebAssemblyHostEnvironmentExtensions.cs (1)
62StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
ContentEncodingNegotiator.cs (1)
80if (StringSegment.Equals("identity", encodingName, StringComparison.OrdinalIgnoreCase))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
17StringComparison.OrdinalIgnoreCase :
Microsoft.AspNetCore.CookiePolicy.Test (3)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (3)
260Func<string, bool> predicate = value => keys.Any(k => value.StartsWith(k, StringComparison.OrdinalIgnoreCase)); 263rejectPredicate = value => predicate(value) && value.Contains("domain=" + options.Domain, StringComparison.OrdinalIgnoreCase); 267rejectPredicate = value => predicate(value) && value.Contains("path=" + options.Path, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.DataProtection (6)
Internal\ContainerUtils.cs (1)
113string.Equals(value, "true", StringComparison.OrdinalIgnoreCase);
Internal\HostingApplicationDiscriminator.cs (2)
36contentRoot.EndsWith(DirectorySeparator, StringComparison.OrdinalIgnoreCase) || 37contentRoot.EndsWith(AltDirectorySeparator, StringComparison.OrdinalIgnoreCase))
RegistryPolicyResolver.cs (3)
82if (string.Equals(encryptionType, "CNG-CBC", StringComparison.OrdinalIgnoreCase)) 86else if (string.Equals(encryptionType, "CNG-GCM", StringComparison.OrdinalIgnoreCase)) 90else if (string.Equals(encryptionType, "Managed", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.DataProtection.Extensions.Tests (6)
DataProtectionProviderTests.cs (6)
40Assert.StartsWith("key-", allFiles[0].Name, StringComparison.OrdinalIgnoreCase); 75Assert.StartsWith("key-", file.Name, StringComparison.OrdinalIgnoreCase); 109Assert.StartsWith("key-", allFiles[0].Name, StringComparison.OrdinalIgnoreCase); 155Assert.StartsWith("key-", allFiles[0].Name, StringComparison.OrdinalIgnoreCase); 235Assert.StartsWith("key-", allFiles[0].Name, StringComparison.OrdinalIgnoreCase); 306Assert.StartsWith("key-", allFiles[0].Name, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.DataProtection.Tests (4)
Repositories\FileSystemXmlRepositoryTests.cs (1)
110Assert.EndsWith(".xml", filename, StringComparison.OrdinalIgnoreCase);
XmlEncryption\CertificateXmlEncryptionTests.cs (1)
52Assert.DoesNotContain("265ee4ea-ade2-43b1-b706-09b259e58b6b", encryptedXmlInfo.EncryptedElement.ToString(), StringComparison.OrdinalIgnoreCase);
XmlEncryption\DpapiNGXmlEncryptionTests.cs (1)
25Assert.DoesNotContain("265ee4ea-ade2-43b1-b706-09b259e58b6b", encryptedXmlInfo.EncryptedElement.ToString(), StringComparison.OrdinalIgnoreCase);
XmlEncryption\DpapiXmlEncryptionTests.cs (1)
27Assert.DoesNotContain("265ee4ea-ade2-43b1-b706-09b259e58b6b", encryptedXmlInfo.EncryptedElement.ToString(), StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Diagnostics (2)
src\Shared\HttpExtensions.cs (2)
32return contentType.Equals(UrlEncodedFormContentType, StringComparison.OrdinalIgnoreCase) || 33contentType.StartsWith(MultipartFormContentType, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HttpLoggingRedactionInterceptor.cs (1)
199if (path.StartsWith(excludedPath, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Internal\JsonRequestHelpers.cs (3)
39if (mt.MediaType.Equals(JsonContentType, StringComparison.OrdinalIgnoreCase)) 46if (mt.Suffix.Equals("json", StringComparison.OrdinalIgnoreCase)) 69if (charset.Equals("utf-8", StringComparison.OrdinalIgnoreCase))
Internal\JsonTranscodingServerCallContext.cs (1)
155else if (header.Key.EndsWith(Metadata.BinaryHeaderSuffix, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Hosting (13)
GenericHost\GenericWebHostService.cs (2)
171if (address.Contains(".localhost", StringComparison.OrdinalIgnoreCase) && Uri.TryCreate(address, UriKind.Absolute, out var uri) && uri.Host.EndsWith(".localhost", StringComparison.OrdinalIgnoreCase))
Internal\HostingTelemetryHelpers.cs (2)
54if (string.Equals(scheme, "http", StringComparison.OrdinalIgnoreCase)) 59else if (string.Equals(scheme, "https", StringComparison.OrdinalIgnoreCase))
Internal\StartupLoader.cs (4)
271var startupType1 = definedTypes.Where(info => info.Name.Equals(startupNameWithEnv, StringComparison.OrdinalIgnoreCase)); 272var startupType2 = definedTypes.Where(info => info.Name.Equals(startupNameWithoutEnv, StringComparison.OrdinalIgnoreCase)); 324var selectedMethods = methods.Where(method => method.Name.Equals(methodNameWithEnv, StringComparison.OrdinalIgnoreCase)).ToList(); 331selectedMethods = methods.Where(method => method.Name.Equals(methodNameWithNoEnv, StringComparison.OrdinalIgnoreCase)).ToList();
Internal\WebHostUtilities.cs (2)
10return string.Equals("true", value, StringComparison.OrdinalIgnoreCase) 11|| string.Equals("1", value, StringComparison.OrdinalIgnoreCase);
src\Shared\HttpExtensions.cs (2)
32return contentType.Equals(UrlEncodedFormContentType, StringComparison.OrdinalIgnoreCase) || 33contentType.StartsWith(MultipartFormContentType, StringComparison.OrdinalIgnoreCase);
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
17StringComparison.OrdinalIgnoreCase :
Microsoft.AspNetCore.Hosting.Abstractions (1)
HostingEnvironmentExtensions.cs (1)
63StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http (17)
BindingAddress.cs (4)
141return string.Equals(Scheme, other.Scheme, StringComparison.OrdinalIgnoreCase) 142&& string.Equals(Host, other.Host, StringComparison.OrdinalIgnoreCase) 225if (string.Equals(scheme, "http", StringComparison.OrdinalIgnoreCase)) 229else if (string.Equals(scheme, "https", StringComparison.OrdinalIgnoreCase))
Features\FormFeature.cs (2)
348return contentType != null && contentType.MediaType.Equals("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase); 354return contentType != null && contentType.MediaType.Equals("multipart/form-data", StringComparison.OrdinalIgnoreCase);
FormFileCollection.cs (2)
19if (string.Equals(name, file.Name, StringComparison.OrdinalIgnoreCase)) 35if (string.Equals(name, file.Name, StringComparison.OrdinalIgnoreCase))
Internal\DefaultHttpRequest.cs (1)
111get { return string.Equals(Https, Scheme, StringComparison.OrdinalIgnoreCase); }
Internal\ResponseCookies.cs (8)
124value.StartsWith(encKeyPlusEquals, StringComparison.OrdinalIgnoreCase) && 125value.Contains($"domain={opts.Domain}", StringComparison.OrdinalIgnoreCase) && 126value.Contains($"path={opts.Path}", StringComparison.OrdinalIgnoreCase); 131value.StartsWith(encKeyPlusEquals, StringComparison.OrdinalIgnoreCase) && 132value.Contains($"domain={opts.Domain}", StringComparison.OrdinalIgnoreCase); 137value.StartsWith(encKeyPlusEquals, StringComparison.OrdinalIgnoreCase) && 138value.Contains($"path={opts.Path}", StringComparison.OrdinalIgnoreCase); 142rejectPredicate = (value, encKeyPlusEquals, opts) => value.StartsWith(encKeyPlusEquals, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Abstractions (13)
HostString.cs (3)
254if (StringSegment.Equals(pattern, host, StringComparison.OrdinalIgnoreCase)) 266if (hostRoot.Equals(allowedRoot, StringComparison.OrdinalIgnoreCase)) 287return string.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase);
Metadata\ProducesResponseTypeMetadata.cs (1)
46if (type.Contains('*', StringComparison.OrdinalIgnoreCase))
PathString.cs (4)
223return StartsWithSegments(other, StringComparison.OrdinalIgnoreCase); 265return StartsWithSegments(other, StringComparison.OrdinalIgnoreCase, out remaining); 314return StartsWithSegments(other, StringComparison.OrdinalIgnoreCase, out matched, out remaining); 385return Equals(other, StringComparison.OrdinalIgnoreCase);
Routing\RouteValueDictionary.cs (5)
631if (string.Equals(storage.Properties[i].Name, key, StringComparison.OrdinalIgnoreCase)) 715if (string.Equals(array[i].Key, key, StringComparison.OrdinalIgnoreCase)) 735if (string.Equals(array[i].Key, key, StringComparison.OrdinalIgnoreCase)) 758if (string.Equals(array[i].Key, key, StringComparison.OrdinalIgnoreCase)) 777if (string.Equals(properties[i].Name, key, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Http.Abstractions.Tests (20)
PathStringTests.cs (20)
178[InlineData("/test/path", "/TEST", StringComparison.OrdinalIgnoreCase, true)] 180[InlineData("/test/path", "/TEST/pa", StringComparison.OrdinalIgnoreCase, false)] 182[InlineData("/TEST/PATH", "/test", StringComparison.OrdinalIgnoreCase, true)] 184[InlineData("/TEST/path", "/test/pa", StringComparison.OrdinalIgnoreCase, false)] 186[InlineData("/test/PATH/path/TEST", "/TEST/path/PATH", StringComparison.OrdinalIgnoreCase, true)] 199[InlineData("/a/", "/a/", StringComparison.OrdinalIgnoreCase, true)] 201[InlineData("/a/b", "/a/", StringComparison.OrdinalIgnoreCase, false)] 203[InlineData("/a/b/", "/a/", StringComparison.OrdinalIgnoreCase, false)] 205[InlineData("/a//b", "/a/", StringComparison.OrdinalIgnoreCase, true)] 207[InlineData("/a//b/", "/a/", StringComparison.OrdinalIgnoreCase, true)] 220[InlineData("/test/path", "/TEST", StringComparison.OrdinalIgnoreCase, true)] 222[InlineData("/test/path", "/TEST/pa", StringComparison.OrdinalIgnoreCase, false)] 224[InlineData("/TEST/PATH", "/test", StringComparison.OrdinalIgnoreCase, true)] 226[InlineData("/TEST/path", "/test/pa", StringComparison.OrdinalIgnoreCase, false)] 228[InlineData("/test/PATH/path/TEST", "/TEST/path/PATH", StringComparison.OrdinalIgnoreCase, true)] 241[InlineData("/a/", "/a/", StringComparison.OrdinalIgnoreCase, true)] 243[InlineData("/a/b", "/a/", StringComparison.OrdinalIgnoreCase, false)] 245[InlineData("/a/b/", "/a/", StringComparison.OrdinalIgnoreCase, false)] 247[InlineData("/a//b", "/a/", StringComparison.OrdinalIgnoreCase, true)] 249[InlineData("/a//b/", "/a/", StringComparison.OrdinalIgnoreCase, true)]
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnection.cs (1)
644if (string.Equals(header.Key, Constants.UserAgent, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Http.Extensions (7)
HttpRequestJsonExtensions.cs (3)
380if (mt.MediaType.Equals(ContentTypeConstants.JsonContentType, StringComparison.OrdinalIgnoreCase)) 387if (mt.Suffix.Equals("json", StringComparison.OrdinalIgnoreCase)) 411if (charset.Equals("utf-8", StringComparison.OrdinalIgnoreCase))
src\Components\Endpoints\src\FormMapping\FormKey.cs (2)
11private readonly int _hashCode = string.GetHashCode(value.Span, StringComparison.OrdinalIgnoreCase); 18MemoryExtensions.Equals(Value.Span, other.Value.Span, StringComparison.OrdinalIgnoreCase);
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
193.FirstOrDefault(p => string.Equals(p.Name, property.Name, StringComparison.OrdinalIgnoreCase));
src\Shared\ParameterBindingMethodCache.cs (1)
728return Type == other.Type && string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Extensions.Tests (6)
PropertyAsParameterInfoTests.cs (1)
183return parameters.Single(p => p.Name.Equals(parameterName, StringComparison.OrdinalIgnoreCase));
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
336if (resolveReferencePath.Equals(typeof(RequestDelegateGenerator.RequestDelegateGenerator).Assembly.Location, StringComparison.OrdinalIgnoreCase))
RequestDelegateGenerator\SharedTypes.cs (1)
226if (parameter.Name?.StartsWith("myBindAsyncParam", StringComparison.OrdinalIgnoreCase) == false)
ValidationFilterEndpointFactoryTests.cs (3)
52Assert.StartsWith(MediaTypeNames.Application.Json, context.Response.ContentType, StringComparison.OrdinalIgnoreCase); 99Assert.StartsWith(MediaTypeNames.Application.ProblemJson, context.Response.ContentType, StringComparison.OrdinalIgnoreCase); 157Assert.StartsWith(MediaTypeNames.Application.ProblemJson, context.Response.ContentType, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
336if (resolveReferencePath.Equals(typeof(RequestDelegateGenerator.RequestDelegateGenerator).Assembly.Location, StringComparison.OrdinalIgnoreCase))
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (1)
226if (parameter.Name?.StartsWith("myBindAsyncParam", StringComparison.OrdinalIgnoreCase) == false)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
StaticRouteHandlerModel\EndpointResponse.cs (1)
110string.Equals(otherEndpointResponse.ContentType, ContentType, StringComparison.OrdinalIgnoreCase);
StaticRouteHandlerModel\Model\ParameterLookupKey.cs (1)
31string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.HttpLogging (1)
MediaTypeHelpers.cs (1)
53StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.HttpsPolicy (2)
HstsMiddleware.cs (1)
86if (string.Equals(host, _excludedHosts[i], StringComparison.OrdinalIgnoreCase))
HttpsRedirectionMiddleware.cs (1)
144if (bindingAddress.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Identity.FunctionalTests (3)
Infrastructure\ServerFactory.cs (3)
123string.Equals(assemblyName, frameworkAssembly, StringComparison.OrdinalIgnoreCase); 134StringComparison.OrdinalIgnoreCase))) 147string.Equals(p.Name, part.Name, StringComparison.OrdinalIgnoreCase)))
Microsoft.AspNetCore.Identity.InMemory.Test (1)
InMemoryStore.cs (1)
123Roles.SingleOrDefault(r => String.Equals(r.NormalizedName, roleName, StringComparison.OrdinalIgnoreCase)));
Microsoft.AspNetCore.Identity.Test (1)
IdentityUIScriptsTest.cs (1)
138.FirstOrDefault(attr => string.Equals("asp-fallback-src", attr.Name, StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.Identity.UI (5)
Areas\Identity\Pages\V4\Account\Manage\ManageNavPages.cs (2)
118return string.Equals(activePage, page, StringComparison.OrdinalIgnoreCase) ? "active" : null; 177return string.Equals(activePage, page, StringComparison.OrdinalIgnoreCase) ? "page" : null;
Areas\Identity\Pages\V5\Account\Manage\ManageNavPages.cs (2)
118return string.Equals(activePage, page, StringComparison.OrdinalIgnoreCase) ? "active" : null; 177return string.Equals(activePage, page, StringComparison.OrdinalIgnoreCase) ? "page" : null;
IdentityBuilderUIExtensions.cs (1)
156private static bool IsIdentityUIView(CompiledViewDescriptor desc) => desc.RelativePath.StartsWith("/Areas/Identity", StringComparison.OrdinalIgnoreCase) &&
Microsoft.AspNetCore.InternalTesting (4)
HttpClientSlim.cs (1)
155if (requestUri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
xunit\EnvironmentVariableSkipConditionAttribute.cs (1)
56var hasMatched = _values.Any(value => string.Equals(value, _currentValue, StringComparison.OrdinalIgnoreCase));
xunit\SkipOnHelixAttribute.cs (2)
54if (Queues.Contains("All.OSX") && targetQueue.StartsWith("osx", StringComparison.OrdinalIgnoreCase)) 59if (Queues.Contains("All.Ubuntu") && targetQueue.StartsWith("ubuntu", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.InternalTesting.Tests (1)
EnvironmentVariableSkipConditionTest.cs (1)
166if (string.Equals(name, _varName, System.StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.JsonPatch (1)
Internal\PocoAdapter.cs (1)
213.FirstOrDefault(p => string.Equals(p.PropertyName, segment, StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Internal\PocoAdapter.cs (1)
236=> serializerOptions.PropertyNameCaseInsensitive ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (1)
TestObjectModels\HeterogenousCollection.cs (1)
46var stringComparison = options.PropertyNameCaseInsensitive ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
192supportedCulture => StringSegment.Equals(supportedCulture.Name, name, StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelStateDictionary.cs (2)
781if (!key.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)) 947StringComparison.OrdinalIgnoreCase);
src\Shared\ParameterBindingMethodCache.cs (1)
728return Type == other.Type && string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.Analyzers (2)
src\Shared\Roslyn\MvcFacts.cs (1)
48if (!type.Name.EndsWith("Controller", StringComparison.OrdinalIgnoreCase) &&
TopLevelParameterNameAnalyzer.cs (1)
118if (string.Equals(parameterName, propertyName, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
src\Shared\Roslyn\MvcFacts.cs (1)
48if (!type.Name.EndsWith("Controller", StringComparison.OrdinalIgnoreCase) &&
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
322.FirstOrDefault(rp => string.Equals(rp.Name, parameter.Name, StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (3)
DefaultApiDescriptionProviderTest.cs (3)
50p => string.Equals(p.Name, "category", StringComparison.OrdinalIgnoreCase)); 52p => string.Equals(p.Name, "group", StringComparison.OrdinalIgnoreCase)); 54p => string.Equals(p.Name, "any", StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.Mvc.Core (43)
ActionConstraints\HttpMethodActionConstraint.cs (1)
74if (string.Equals(supportedMethod, method, StringComparison.OrdinalIgnoreCase))
ApplicationModels\ApplicationModelFactory.cs (1)
238if (!template.Equals(other, StringComparison.OrdinalIgnoreCase))
ApplicationModels\DefaultApplicationModelProvider.cs (1)
165typeInfo.Name.EndsWith("Controller", StringComparison.OrdinalIgnoreCase) ?
ApplicationParts\RelatedAssemblyAttribute.cs (1)
83if (string.Equals(assemblyName, attribute.AssemblyFileName, StringComparison.OrdinalIgnoreCase))
Controllers\ControllerFeatureProvider.cs (1)
68if (!typeInfo.Name.EndsWith(ControllerTypeNameSuffix, StringComparison.OrdinalIgnoreCase) &&
Formatters\MediaType.cs (4)
210if (charset.HasValue && charset.Equals(encoding.WebName, StringComparison.OrdinalIgnoreCase)) 355if (current == input.Length && name.Equals("*", StringComparison.OrdinalIgnoreCase)) 459return Name.Equals(name, StringComparison.OrdinalIgnoreCase); 464return HasName(other.Name) && Value.Equals(other.Value, StringComparison.OrdinalIgnoreCase);
Formatters\TextInputFormatter.cs (1)
98StringComparison.OrdinalIgnoreCase))
Formatters\TextOutputFormatter.cs (3)
90if (contentTypeCharset.Equals(supportedEncoding.WebName, StringComparison.OrdinalIgnoreCase)) 183if (string.Equals(encoding.WebName, Encoding.UTF8.WebName, StringComparison.OrdinalIgnoreCase) && 205if (charset.Equals(encoding.WebName, StringComparison.OrdinalIgnoreCase) ||
ModelBinding\Binders\EnumTypeModelBinder.cs (1)
85return !string.Equals(underlying, converted, StringComparison.OrdinalIgnoreCase);
ModelBinding\Binders\FormFileModelBinder.cs (3)
153if (file.Name.Equals(modelName, StringComparison.OrdinalIgnoreCase)) 184if (string.Equals(name, file.Name, StringComparison.OrdinalIgnoreCase)) 199if (string.Equals(name, file.Name, StringComparison.OrdinalIgnoreCase))
ModelBinding\ElementalValueProvider.cs (1)
32if (string.Equals(key, Key, StringComparison.OrdinalIgnoreCase))
ModelBinding\PrefixContainer.cs (5)
93else if (entry.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)) 199StringComparison.OrdinalIgnoreCase); 202Debug.Assert(candidate.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)); 256StringComparison.OrdinalIgnoreCase); 259Debug.Assert(candidate.StartsWith(prefix, StringComparison.OrdinalIgnoreCase));
Routing\AttributeRoute.cs (2)
211if (string.Equals(kvp.Key, parameter.Name, StringComparison.OrdinalIgnoreCase)) 269StringComparison.OrdinalIgnoreCase);
Routing\KnownRouteValueConstraint.cs (1)
54if (string.Equals(value, existingValue, StringComparison.OrdinalIgnoreCase))
Routing\NormalizedRouteValue.cs (1)
42if (string.Equals(normalizedValue, stringRouteValue, StringComparison.OrdinalIgnoreCase))
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (3)
260Func<string, bool> predicate = value => keys.Any(k => value.StartsWith(k, StringComparison.OrdinalIgnoreCase)); 263rejectPredicate = value => predicate(value) && value.Contains("domain=" + options.Domain, StringComparison.OrdinalIgnoreCase); 267rejectPredicate = value => predicate(value) && value.Contains("path=" + options.Path, StringComparison.OrdinalIgnoreCase);
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (13)
172public bool MatchesAllTypes => Type.Equals("*", StringComparison.OrdinalIgnoreCase); 210public bool MatchesAllSubTypes => SubType.Equals("*", StringComparison.OrdinalIgnoreCase); 221public bool MatchesAllSubTypesWithoutSuffix => SubTypeWithoutSuffix.Equals("*", StringComparison.OrdinalIgnoreCase); 245GetParameter("*").Equals("*", StringComparison.OrdinalIgnoreCase); 349if (charset.Equals("utf-8", StringComparison.OrdinalIgnoreCase)) 372set.Type.Equals(Type, StringComparison.OrdinalIgnoreCase); 407set.SubTypeWithoutSuffix.Equals(SubTypeWithoutSuffix, StringComparison.OrdinalIgnoreCase); 414return set.SubTypeSuffix.Equals(SubTypeSuffix, StringComparison.OrdinalIgnoreCase); 419return set.SubType.Equals(SubType, StringComparison.OrdinalIgnoreCase) || 420set.SubType.Equals(SubTypeSuffix, StringComparison.OrdinalIgnoreCase); 507if (current == input.Length && name.Equals("*", StringComparison.OrdinalIgnoreCase)) 611return Name.Equals(name, StringComparison.OrdinalIgnoreCase); 616return HasName(other.Name) && Value.Equals(other.Value, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.Core.Test (19)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (3)
905var controllerDefault = Assert.Single(indexAction.RouteValues, rd => rd.Key.Equals("controller", StringComparison.OrdinalIgnoreCase)); 908var actionDefault = Assert.Single(indexAction.RouteValues, rd => rd.Key.Equals("action", StringComparison.OrdinalIgnoreCase)); 911var areaDefault = Assert.Single(indexAction.RouteValues, rd => rd.Key.Equals("area", StringComparison.OrdinalIgnoreCase));
ControllerBaseTest.cs (7)
35!method.Name.Equals("Dispose", StringComparison.OrdinalIgnoreCase)) 2722string.Equals(m.PropertyName, "Include1", StringComparison.OrdinalIgnoreCase) || 2723string.Equals(m.PropertyName, "Include2", StringComparison.OrdinalIgnoreCase); 2755string.Equals(m.PropertyName, "Include1", StringComparison.OrdinalIgnoreCase) || 2756string.Equals(m.PropertyName, "Include2", StringComparison.OrdinalIgnoreCase); 2904string.Equals(m.PropertyName, "Include1", StringComparison.OrdinalIgnoreCase) || 2905string.Equals(m.PropertyName, "Include2", StringComparison.OrdinalIgnoreCase);
Formatters\JsonOutputFormatterTestBase.cs (1)
204.First((e) => e.WebName.Equals(encodingAsString, StringComparison.OrdinalIgnoreCase));
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (2)
1368!string.Equals("Excluded1", m.PropertyName, StringComparison.OrdinalIgnoreCase) && 1369!string.Equals("Excluded2", m.PropertyName, StringComparison.OrdinalIgnoreCase);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (2)
1543!string.Equals("Excluded1", m.PropertyName, StringComparison.OrdinalIgnoreCase) && 1544!string.Equals("Excluded2", m.PropertyName, StringComparison.OrdinalIgnoreCase);
ModelBinding\ModelBindingHelperTest.cs (4)
184string.Equals(m.PropertyName, "IncludedProperty", StringComparison.OrdinalIgnoreCase) || 185string.Equals(m.PropertyName, "MyProperty", StringComparison.OrdinalIgnoreCase); 514string.Equals(m.PropertyName, "IncludedProperty", StringComparison.OrdinalIgnoreCase) || 515string.Equals(m.PropertyName, "MyProperty", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.Cors (2)
CorsHttpMethodActionConstraint.cs (1)
42if (string.Equals(supportedMethod, accessControlRequestMethod, StringComparison.OrdinalIgnoreCase))
DisableCorsAuthorizationFilter.cs (1)
31StringComparison.OrdinalIgnoreCase) &&
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlAssert.cs (2)
51return string.Equals(expected.Version, actual.Version, StringComparison.OrdinalIgnoreCase) 52&& string.Equals(expected.Encoding, actual.Encoding, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
BasicTests.cs (1)
343Assert.Contains(expectedLink, responseData, StringComparison.OrdinalIgnoreCase);
src\Mvc\Mvc.Formatters.Xml\test\XmlAssert.cs (2)
51return string.Equals(expected.Version, actual.Version, StringComparison.OrdinalIgnoreCase) 52&& string.Equals(expected.Encoding, actual.Encoding, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ValidationIntegrationTests.cs (1)
116e => string.Equals(e.Key, "AccountId", StringComparison.OrdinalIgnoreCase)).Value;
ValidationWithRecordIntegrationTests.cs (1)
108e => string.Equals(e.Key, "AccountId", StringComparison.OrdinalIgnoreCase)).Value;
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (1)
204.First((e) => e.WebName.Equals(encodingAsString, StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.Mvc.Razor (3)
Infrastructure\DefaultFileVersionProvider.cs (1)
65resolvedPath.StartsWith(requestPathBase.Value, StringComparison.OrdinalIgnoreCase))
RazorViewEngine.cs (1)
491return name.EndsWith(ViewExtension, StringComparison.OrdinalIgnoreCase);
TagHelpers\UrlResolutionTagHelper.cs (1)
157if (!string.Equals(attribute.Name, attributeName, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (17)
ChecksumValidator.cs (6)
23return checksums.Any(c => string.Equals(item.Identifier, c.Identifier, StringComparison.OrdinalIgnoreCase)); 44.FirstOrDefault(c => string.Equals(item.Identifier, c.Identifier, StringComparison.OrdinalIgnoreCase)); 59if (!string.Equals(sourceDocumentChecksum.algorithm, primaryChecksum.ChecksumAlgorithm, StringComparison.OrdinalIgnoreCase) || 69if (string.Equals(item.Identifier, checksum.Identifier, StringComparison.OrdinalIgnoreCase)) 83if (!string.Equals(sourceDocumentChecksum.algorithm, checksum.ChecksumAlgorithm, StringComparison.OrdinalIgnoreCase) || 102if (nameof(SHA256).Equals(checksumAlgorithm, StringComparison.OrdinalIgnoreCase))
CompilationFailedExceptionFactory.cs (2)
75string.Equals(CS0234, g.Id, StringComparison.OrdinalIgnoreCase) || 76string.Equals(CS0246, g.Id, StringComparison.OrdinalIgnoreCase)))
FileProviderRazorProjectFileSystem.cs (1)
64else if (string.Equals(RazorFileExtension, Path.GetExtension(fileInfo.Name), StringComparison.OrdinalIgnoreCase))
FileProviderRazorProjectItem.cs (1)
80PhysicalPath.StartsWith(_root, StringComparison.OrdinalIgnoreCase) &&
RazorProjectPageRouteModelProvider.cs (2)
56if (context.RouteModels.Any(m => string.Equals(relativePath, m.RelativePath, StringComparison.OrdinalIgnoreCase))) 85if (context.RouteModels.Any(m => string.Equals(relativePath, m.RelativePath, StringComparison.OrdinalIgnoreCase)))
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (5)
65string.Equals(IndexFileName, fileName, StringComparison.OrdinalIgnoreCase)) 94!relativePath.StartsWith(_normalizedAreaRootDirectory, StringComparison.OrdinalIgnoreCase)) // The path must start with area root. 110if (string.Compare(relativePath, areaEndIndex, AreaPagesRoot, 0, AreaPagesRoot.Length, StringComparison.OrdinalIgnoreCase) != 0) 129Debug.Assert(path.StartsWith(rootDirectory, StringComparison.OrdinalIgnoreCase)); 130Debug.Assert(path.EndsWith(RazorViewEngine.ViewExtension, StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (5)
TestInfrastructure\DirectoryNode.cs (5)
26if (!filePath.StartsWith(Path, StringComparison.OrdinalIgnoreCase)) 41if (!path.StartsWith(Path, StringComparison.OrdinalIgnoreCase)) 67if (!path.StartsWith(Path, StringComparison.OrdinalIgnoreCase)) 87if (string.Compare(path, directoryLength, filePath, directoryLength, path.Length - directoryLength, StringComparison.OrdinalIgnoreCase) == 0) 157if (string.Compare(path, startIndex, directoryPath, startIndex, directoryPath.Length - startIndex, StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.AspNetCore.Mvc.RazorPages (18)
ApplicationModels\CompiledPageRouteModelProvider.cs (2)
104if (relativePath.StartsWith(areaRootDirectory, StringComparison.OrdinalIgnoreCase)) 108else if (relativePath.StartsWith(rootDirectory, StringComparison.OrdinalIgnoreCase))
ApplicationModels\PageConventionCollection.cs (8)
254if (pageName[0] != '/' || pageName.EndsWith(".cshtml", StringComparison.OrdinalIgnoreCase)) 297if (string.Equals(_areaName, model.AreaName, StringComparison.OrdinalIgnoreCase) && 298string.Equals(model.ViewEnginePath, _path, StringComparison.OrdinalIgnoreCase)) 325if (string.Equals(_areaName, model.AreaName, StringComparison.OrdinalIgnoreCase) && 353if (string.Equals(model.ViewEnginePath, _path, StringComparison.OrdinalIgnoreCase) && 354string.Equals(model.AreaName, _areaName, StringComparison.OrdinalIgnoreCase)) 381if (string.Equals(_areaName, model.AreaName, StringComparison.OrdinalIgnoreCase) && 399viewEnginePath.StartsWith(folderPath, StringComparison.OrdinalIgnoreCase) &&
ApplicationModels\PageRouteModelFactory.cs (5)
65string.Equals(IndexFileName, fileName, StringComparison.OrdinalIgnoreCase)) 94!relativePath.StartsWith(_normalizedAreaRootDirectory, StringComparison.OrdinalIgnoreCase)) // The path must start with area root. 110if (string.Compare(relativePath, areaEndIndex, AreaPagesRoot, 0, AreaPagesRoot.Length, StringComparison.OrdinalIgnoreCase) != 0) 129Debug.Assert(path.StartsWith(rootDirectory, StringComparison.OrdinalIgnoreCase)); 130Debug.Assert(path.EndsWith(RazorViewEngine.ViewExtension, StringComparison.OrdinalIgnoreCase));
Infrastructure\DefaultPageHandlerMethodSelector.cs (3)
93string.Equals(handler.HttpMethod, httpMethod, StringComparison.OrdinalIgnoreCase)) 109string.Equals(handler.HttpMethod, fuzzyHttpMethod, StringComparison.OrdinalIgnoreCase)) 122!handler.Name.Equals(handlerName, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.TagHelpers (23)
EnvironmentTagHelper.cs (3)
96if (environment.Equals(currentEnvironmentName, StringComparison.OrdinalIgnoreCase)) 116if (environment.Equals(currentEnvironmentName, StringComparison.OrdinalIgnoreCase)) 134if (environment.Equals(currentEnvironmentName, StringComparison.OrdinalIgnoreCase))
FormTagHelper.cs (2)
204if (string.Equals(Method ?? "get", "get", StringComparison.OrdinalIgnoreCase)) 305if (string.Equals(Method, "get", StringComparison.OrdinalIgnoreCase))
InputTagHelper.cs (5)
405string.Equals("week", inputType, StringComparison.OrdinalIgnoreCase) && 426StringComparison.OrdinalIgnoreCase)) 475if (string.Equals("month", inputType, StringComparison.OrdinalIgnoreCase)) 480else if (string.Equals("decimal", inputTypeHint, StringComparison.OrdinalIgnoreCase) && 497string.Equals(nameof(DateTimeOffset), inputTypeHint, StringComparison.OrdinalIgnoreCase))
LinkTagHelper.cs (4)
327if (string.Equals(Href, url, StringComparison.OrdinalIgnoreCase)) 380if (string.Equals(attribute.Name, HrefAttributeName, StringComparison.OrdinalIgnoreCase)) 385if (SuppressFallbackIntegrity && string.Equals(attribute.Name, IntegrityAttributeName, StringComparison.OrdinalIgnoreCase)) 501if (string.Equals(attribute.Name, HrefAttributeName, StringComparison.OrdinalIgnoreCase))
ResourceCollectionUtilities.cs (1)
32if (pathBase.HasValue && url.StartsWith(pathBase, StringComparison.OrdinalIgnoreCase))
ScriptTagHelper.cs (5)
243if (string.Equals(Type, "importmap", StringComparison.OrdinalIgnoreCase)) 340if (string.Equals(url, Src, StringComparison.OrdinalIgnoreCase)) 377if (!attribute.Name.Equals(SrcAttributeName, StringComparison.OrdinalIgnoreCase)) 379if (SuppressFallbackIntegrity && string.Equals(IntegrityAttributeName, attribute.Name, StringComparison.OrdinalIgnoreCase)) 491if (!attribute.Name.Equals(SrcAttributeName, StringComparison.OrdinalIgnoreCase))
TagHelperOutputExtensions.cs (3)
61StringComparison.OrdinalIgnoreCase)) 96else if (string.Equals(attribute.Key, "class", StringComparison.OrdinalIgnoreCase)) 331if (string.Equals(name, attributes[i].Name, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
TagHelperOutputExtensionsTest.cs (3)
569.Where(item => item.Name.StartsWith("route-", StringComparison.OrdinalIgnoreCase)) 596.Where(item => item.Name.StartsWith("route-", StringComparison.OrdinalIgnoreCase)); 623.Where(item => item.Name.StartsWith("route-", StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.Mvc.Testing (5)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-rc.1.25420.121\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (2)
163=> arg.Equals("--applicationName", StringComparison.OrdinalIgnoreCase) || 164arg.Equals("/applicationName", StringComparison.OrdinalIgnoreCase);
Handlers\RedirectHandler.cs (1)
104if (!header.Key.Equals(HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase))
WebApplicationFactory.cs (2)
459.Where(a => string.Equals(a.Key, tEntryPointAssemblyFullName, StringComparison.OrdinalIgnoreCase) || 460string.Equals(a.Key, tEntryPointAssemblyName, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.ViewFeatures (32)
AttributeDictionary.cs (4)
207return string.Equals(item.Value, Get(index).Value, StringComparison.OrdinalIgnoreCase); 263else if (string.Equals(item.Value, Get(index).Value, StringComparison.OrdinalIgnoreCase)) 395if (string.Equals(item, _attributes.Get(i).Key, StringComparison.OrdinalIgnoreCase)) 500if (string.Equals(item, _attributes.Get(i).Value, StringComparison.OrdinalIgnoreCase))
DefaultHtmlGenerator.cs (11)
448StringComparison.OrdinalIgnoreCase); 462string.Equals(model.ToString(), valueString, StringComparison.OrdinalIgnoreCase); 1242if (string.Equals(suppliedTypeString, "file", StringComparison.OrdinalIgnoreCase) || 1243string.Equals(suppliedTypeString, "image", StringComparison.OrdinalIgnoreCase)) 1458string.Equals(inputType, "number", StringComparison.OrdinalIgnoreCase) || 1459string.Equals(inputType, "range", StringComparison.OrdinalIgnoreCase); 1469string.Equals(inputType, "date", StringComparison.OrdinalIgnoreCase) || 1470string.Equals(inputType, "datetime-local", StringComparison.OrdinalIgnoreCase) || 1471string.Equals(inputType, "month", StringComparison.OrdinalIgnoreCase) || 1472string.Equals(inputType, "time", StringComparison.OrdinalIgnoreCase) || 1473string.Equals(inputType, "week", StringComparison.OrdinalIgnoreCase);
ExpressionHelper.cs (1)
96lastIsModel = string.Equals("model", name, StringComparison.OrdinalIgnoreCase);
HtmlHelper.cs (1)
1411return string.Equals(expression, "model", StringComparison.OrdinalIgnoreCase) ? string.Empty : expression;
PartialViewResultExecutor.cs (1)
182if (string.Equals(normalizedValue, stringRouteValue, StringComparison.OrdinalIgnoreCase))
Rendering\TagBuilder.cs (1)
242if (string.Equals(key, "id", StringComparison.OrdinalIgnoreCase) &&
src\Shared\Components\ResourceCollectionResolver.cs (8)
69if (property.Name.Equals("label", StringComparison.OrdinalIgnoreCase)) 74else if (property.Name.Equals("integrity", StringComparison.OrdinalIgnoreCase)) 79else if (property.Name.Equals("preloadrel", StringComparison.OrdinalIgnoreCase)) 84else if (property.Name.Equals("preloadas", StringComparison.OrdinalIgnoreCase)) 89else if (property.Name.Equals("preloadpriority", StringComparison.OrdinalIgnoreCase)) 94else if (property.Name.Equals("preloadcrossorigin", StringComparison.OrdinalIgnoreCase)) 99else if (property.Name.Equals("preloadorder", StringComparison.OrdinalIgnoreCase)) 104else if (property.Name.Equals("preloadgroup", StringComparison.OrdinalIgnoreCase))
TemplateBuilder.cs (2)
96else if ((string.Equals("week", _templateName, StringComparison.OrdinalIgnoreCase) || 97string.Equals("week", viewData.ModelMetadata.DataTypeName, StringComparison.OrdinalIgnoreCase)))
ViewComponents\ViewComponentConventions.cs (2)
75if (componentType.Name.EndsWith(ViewComponentSuffix, StringComparison.OrdinalIgnoreCase)) 106typeInfo.Name.EndsWith(ViewComponentSuffix, StringComparison.OrdinalIgnoreCase) ||
ViewResultExecutor.cs (1)
182if (string.Equals(normalizedValue, stringRouteValue, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ControllerTest.cs (1)
28!method.Name.Equals("Dispose", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.OpenApi (3)
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (2)
82pattern.EndsWith(".yaml", StringComparison.OrdinalIgnoreCase) || 83pattern.EndsWith(".yml", StringComparison.OrdinalIgnoreCase);
src\Shared\ParameterBindingMethodCache.cs (1)
728return Type == other.Type && string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.OpenApi.Build.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.OpenApi.SourceGenerators (3)
Helpers\DocumentationCommentXmlNames.cs (1)
49return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
XmlCommentGenerator.cs (1)
17.Where(file => file.Path.EndsWith(".xml", StringComparison.OrdinalIgnoreCase))
XmlComments\XmlComment.InheritDoc.cs (1)
245if (docId != null && !docId.StartsWith("!", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (2)
SnapshotTestHelper.cs (2)
353=> arg.Equals("--applicationName", StringComparison.OrdinalIgnoreCase) || 354arg.Equals("/applicationName", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.OpenApi.Tests (2)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (2)
103Assert.Equal(isYaml, responseString.StartsWith("openapi: '3.1.1'", StringComparison.OrdinalIgnoreCase)); 224Assert.Equal(isYaml, responseString.StartsWith("openapi: '3.1.1'", StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheEntry.cs (1)
30if (string.Equals(key, header.Name, StringComparison.OrdinalIgnoreCase))
OutputCacheMiddleware.cs (1)
528if (ifNoneMatchHeader.Count == 1 && StringSegment.Equals(ifNoneMatchHeader[0], EntityTagHeaderValue.Any.Tag, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
245if (string.Equals("https", ((IHttpRequestFeature)this).Scheme, StringComparison.OrdinalIgnoreCase)
Microsoft.AspNetCore.Razor (2)
TagHelpers\ReadOnlyTagHelperAttributeList.cs (1)
179return string.Equals(name, attribute.Name, StringComparison.OrdinalIgnoreCase);
TagHelpers\TagHelperAttribute.cs (1)
75string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase) &&
Microsoft.AspNetCore.ResponseCaching (3)
ResponseCachingMiddleware.cs (2)
314if (!string.Equals(header.Key, HeaderNames.Age, StringComparison.OrdinalIgnoreCase)) 435if (ifNoneMatchHeader.Count == 1 && StringSegment.Equals(ifNoneMatchHeader[0], EntityTagHeaderValue.Any.Tag, StringComparison.OrdinalIgnoreCase))
ResponseCachingPolicyProvider.cs (1)
102if (varyHeader.Count == 1 && string.Equals(varyHeader, "*", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.ResponseCompression (4)
ResponseCompressionBody.cs (1)
213if (string.Equals(varyValues[i], HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase))
ResponseCompressionProvider.cs (3)
110if (StringSegment.Equals(provider.EncodingName, encodingName, StringComparison.OrdinalIgnoreCase)) 130if (StringSegment.Equals("identity", encodingName, StringComparison.OrdinalIgnoreCase)) 280return string.Equals(EncodingName, other.EncodingName, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Rewrite (10)
ApacheModRewrite\CookieActionFactory.cs (4)
94action!.Secure = "secure".Equals(value, StringComparison.OrdinalIgnoreCase) 95|| "true".Equals(value, StringComparison.OrdinalIgnoreCase) 99action!.HttpOnly = "httponly".Equals(value, StringComparison.OrdinalIgnoreCase) 100|| "true".Equals(value, StringComparison.OrdinalIgnoreCase)
RedirectToNonWwwRule.cs (1)
46if (!request.Host.HasValue || !request.Host.Value.StartsWith(WwwDot, StringComparison.OrdinalIgnoreCase))
RedirectToWwwHelper.cs (2)
15if (request.Host.Host.Equals(Localhost, StringComparison.OrdinalIgnoreCase)) 26if (domain.Equals(request.Host.Host, StringComparison.OrdinalIgnoreCase))
RedirectToWwwRule.cs (1)
46if (req.Host.HasValue && req.Host.Value.StartsWith(WwwDot, StringComparison.OrdinalIgnoreCase))
UrlMatches\ExactMatch.cs (1)
20var pathMatch = string.Equals(pattern, _stringMatch, _ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
UrlMatches\StringMatch.cs (1)
23_stringComparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
Microsoft.AspNetCore.Routing (58)
Constraints\StringRouteConstraint.cs (1)
46return parameterValueString.Equals(_value, StringComparison.OrdinalIgnoreCase);
Matching\ContentEncodingNegotiationMatcherPolicy.cs (4)
20MemoryExtensions.Equals("identity".AsSpan(), candidate, StringComparison.OrdinalIgnoreCase) || 21MemoryExtensions.Equals("*".AsSpan(), candidate, StringComparison.OrdinalIgnoreCase); 90if (matchedEncoding != null && string.Equals(negotiationValue, matchedEncoding, StringComparison.OrdinalIgnoreCase)) 113if (matchedEncoding != null && string.Equals(negotiationValue, matchedEncoding, StringComparison.OrdinalIgnoreCase))
Matching\EndpointComparer.cs (1)
62return string.Compare(routeEndpointX.RoutePattern.RawText, routeEndpointY.RoutePattern.RawText, StringComparison.OrdinalIgnoreCase);
Matching\HostMatcherPolicy.cs (8)
105if (host.Length == 0 || MemoryExtensions.Equals(host, WildcardHost, StringComparison.OrdinalIgnoreCase)) 113MemoryExtensions.EndsWith(requestHost, host.Slice(WildcardHost.Length), StringComparison.OrdinalIgnoreCase)) 117else if (MemoryExtensions.Equals(requestHost, host, StringComparison.OrdinalIgnoreCase)) 127if (MemoryExtensions.Equals(port, WildcardHost, StringComparison.OrdinalIgnoreCase)) 340else if (string.Equals("https", httpContext.Request.Scheme, StringComparison.OrdinalIgnoreCase)) 344else if (string.Equals("http", httpContext.Request.Scheme, StringComparison.OrdinalIgnoreCase)) 451return host.EndsWith(_wildcardEndsWith!, StringComparison.OrdinalIgnoreCase); 455return string.Equals(host, Host, StringComparison.OrdinalIgnoreCase);
Matching\HttpMethodDestinationsLookup.cs (10)
43case 'c' when method.Equals(HttpMethods.Connect, StringComparison.OrdinalIgnoreCase): 46case 'd' when method.Equals(HttpMethods.Delete, StringComparison.OrdinalIgnoreCase): 49case 'g' when method.Equals(HttpMethods.Get, StringComparison.OrdinalIgnoreCase): 52case 'h' when method.Equals(HttpMethods.Head, StringComparison.OrdinalIgnoreCase): 55case 'o' when method.Equals(HttpMethods.Options, StringComparison.OrdinalIgnoreCase): 59if (method.Equals(HttpMethods.Put, StringComparison.OrdinalIgnoreCase)) 64else if (method.Equals(HttpMethods.Post, StringComparison.OrdinalIgnoreCase)) 69else if (method.Equals(HttpMethods.Patch, StringComparison.OrdinalIgnoreCase)) 75case 't' when method.Equals(HttpMethods.Trace, StringComparison.OrdinalIgnoreCase): 118if (matchedMethod is not null && method.Equals(matchedMethod, StringComparison.OrdinalIgnoreCase))
Matching\HttpMethodMatcherPolicy.cs (2)
212if (!string.Equals(AnyMethod, httpMethod, StringComparison.OrdinalIgnoreCase)) 367if (string.Equals(httpMethod, AnyMethod, StringComparison.OrdinalIgnoreCase))
Matching\LinearSearchJumpTable.cs (1)
37if (pathSpan.Equals(text, StringComparison.OrdinalIgnoreCase))
Matching\NegotiationMatcherPolicy.cs (2)
120if (MemoryExtensions.Equals(metadata.AsSpan(), value.Value.AsSpan(), StringComparison.OrdinalIgnoreCase)) 250if (string.Equals(metadata, DefaultNegotiationValue, StringComparison.OrdinalIgnoreCase))
Matching\SingleEntryJumpTable.cs (1)
34if (pathSpan.Equals(_text, StringComparison.OrdinalIgnoreCase))
Patterns\RoutePattern.cs (1)
148if (string.Equals(parameter.Name, name, StringComparison.OrdinalIgnoreCase))
Patterns\RoutePatternFactory.cs (1)
506if (string.Equals(kvp.Key, parameters[i].Name, StringComparison.OrdinalIgnoreCase))
Patterns\RoutePatternMatcher.cs (5)
211if (!stringSegment.Equals(part.Content, StringComparison.OrdinalIgnoreCase)) 220if (!stringSegment.Equals(part.Content, StringComparison.OrdinalIgnoreCase)) 314StringComparison.OrdinalIgnoreCase)) 383StringComparison.OrdinalIgnoreCase); 390StringComparison.OrdinalIgnoreCase);
RouteValueEqualityComparer.cs (2)
17/// strings are compared using <see cref="StringComparison.OrdinalIgnoreCase"/>. 42return string.Equals(stringX, stringY, StringComparison.OrdinalIgnoreCase);
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (1)
29if (routePrefix.EndsWith("/", StringComparison.OrdinalIgnoreCase))
src\Shared\HttpExtensions.cs (2)
32return contentType.Equals(UrlEncodedFormContentType, StringComparison.OrdinalIgnoreCase) || 33contentType.StartsWith(MultipartFormContentType, StringComparison.OrdinalIgnoreCase);
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (13)
172public bool MatchesAllTypes => Type.Equals("*", StringComparison.OrdinalIgnoreCase); 210public bool MatchesAllSubTypes => SubType.Equals("*", StringComparison.OrdinalIgnoreCase); 221public bool MatchesAllSubTypesWithoutSuffix => SubTypeWithoutSuffix.Equals("*", StringComparison.OrdinalIgnoreCase); 245GetParameter("*").Equals("*", StringComparison.OrdinalIgnoreCase); 349if (charset.Equals("utf-8", StringComparison.OrdinalIgnoreCase)) 372set.Type.Equals(Type, StringComparison.OrdinalIgnoreCase); 407set.SubTypeWithoutSuffix.Equals(SubTypeWithoutSuffix, StringComparison.OrdinalIgnoreCase); 414return set.SubTypeSuffix.Equals(SubTypeSuffix, StringComparison.OrdinalIgnoreCase); 419return set.SubType.Equals(SubType, StringComparison.OrdinalIgnoreCase) || 420set.SubType.Equals(SubTypeSuffix, StringComparison.OrdinalIgnoreCase); 507if (current == input.Length && name.Equals("*", StringComparison.OrdinalIgnoreCase)) 611return Name.Equals(name, StringComparison.OrdinalIgnoreCase); 616return HasName(other.Name) && Value.Equals(other.Value, StringComparison.OrdinalIgnoreCase);
Template\RouteTemplate.cs (1)
123if (string.Equals(parameter.Name, name, StringComparison.OrdinalIgnoreCase))
Template\TemplateBinder.cs (1)
659return string.Equals(sa, sb, StringComparison.OrdinalIgnoreCase);
Tree\TreeRouter.cs (1)
111StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Routing.Microbenchmarks (6)
Matching\JumpTableMultipleEntryBenchmark.cs (1)
83StringComparison.OrdinalIgnoreCase);
Matching\JumpTableSingleEntryBenchmark.cs (1)
72StringComparison.OrdinalIgnoreCase);
Matching\TrivialMatcher.cs (2)
28if (string.Equals(_endpoint.RoutePattern.RawText, path, StringComparison.OrdinalIgnoreCase)) 40if (string.Equals(_endpoint.RoutePattern.RawText, path, StringComparison.OrdinalIgnoreCase))
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcher.cs (2)
70StringComparison.OrdinalIgnoreCase) != 0))) 92StringComparison.OrdinalIgnoreCase) != 0))
Microsoft.AspNetCore.Routing.Tests (2)
Matching\BarebonesMatcher.cs (2)
70StringComparison.OrdinalIgnoreCase) != 0))) 92StringComparison.OrdinalIgnoreCase) != 0))
Microsoft.AspNetCore.Server.HttpSys (134)
RequestProcessing\Request.cs (5)
87else if (originalPath.Equals(pathBase, StringComparison.OrdinalIgnoreCase)) 99else if (originalPath.StartsWith(prefix.Path, StringComparison.OrdinalIgnoreCase)) 129else if (baseValue == '/' && originalPath.AsSpan(originalOffset).StartsWith("%2F", StringComparison.OrdinalIgnoreCase)) 142&& originalPath.AsSpan(originalOffset).StartsWith("%2F", StringComparison.OrdinalIgnoreCase)) 538if (transferEncoding.AsSpan().Slice(index + 1).Trim().Equals("chunked", StringComparison.OrdinalIgnoreCase))
RequestProcessing\Response.cs (1)
481return string.Equals(knownValue, input.ToString().Trim(), StringComparison.OrdinalIgnoreCase);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (123)
1051if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1057if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1063if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1067if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1071if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1077if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1081if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1087if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1091if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1095if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1099if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1105if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1109if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1113if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1117if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1121if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1127if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1131if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1137if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1143if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1147if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1151if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1157if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1163if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1167if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1173if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1177if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1181if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1185if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1189if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1195if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1199if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1205if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1209if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1215if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1219if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1223if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1229if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1233if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1239if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1243if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1257if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1264if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1271if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1276if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1281if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1288if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1293if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1300if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1305if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1310if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1315if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1322if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1327if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1332if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1337if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1342if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1349if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1354if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1361if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1368if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1373if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1378if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1385if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1392if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1397if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1404if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1409if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1414if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1419if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1424if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1431if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1436if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1443if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1448if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1455if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1460if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1465if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1472if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1477if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1484if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1489if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1505if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1512if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1519if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1524if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1529if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1536if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1541if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1548if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1553if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1558if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1563if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1570if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1575if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1580if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1585if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1590if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1597if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1602if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1609if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1616if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1621if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1626if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1633if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1640if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1645if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1652if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1657if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1662if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1667if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1672if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1679if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1684if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1691if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1696if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1703if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1708if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1713if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1720if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1725if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1732if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1737if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase))
UrlPrefix.cs (3)
55if (string.Equals(Constants.HttpScheme, scheme, StringComparison.OrdinalIgnoreCase)) 60else if (string.Equals(Constants.HttpsScheme, scheme, StringComparison.OrdinalIgnoreCase)) 194return string.Equals(FullPrefix, Convert.ToString(obj, CultureInfo.InvariantCulture), StringComparison.OrdinalIgnoreCase);
UrlPrefixCollection.cs (2)
95&& string.Equals(host, prefix.HostAndPort, StringComparison.OrdinalIgnoreCase) 96&& originalPathString.StartsWithSegments(new PathString(prefix.PathWithoutTrailingSlash), StringComparison.OrdinalIgnoreCase, out var remainder)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
RequestBodyTests.cs (2)
221if (string.Equals(header.Key, "Content-Length", StringComparison.OrdinalIgnoreCase)) 249if (string.Equals(header.Key, headerName, StringComparison.OrdinalIgnoreCase))
ServerTests.cs (1)
84Assert.Contains(address, netshOutput, StringComparison.OrdinalIgnoreCase);
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.IIS (136)
Core\IISHttpContext.cs (9)
190else if (originalPath.Equals(pathBase, StringComparison.OrdinalIgnoreCase)) 206&& originalPath.StartsWith(pathBase, StringComparison.OrdinalIgnoreCase)) 236else if (baseValue == '/' && originalPath.AsSpan(originalOffset).StartsWith("%2F", StringComparison.OrdinalIgnoreCase)) 249&& originalPath.AsSpan(originalOffset).StartsWith("%2F", StringComparison.OrdinalIgnoreCase)) 587if (string.Equals(ConnectionClose, HttpResponseHeaders[HeaderNames.Connection], StringComparison.OrdinalIgnoreCase)) 850if ((authenticationType.Equals(NtlmString, StringComparison.OrdinalIgnoreCase) 851|| authenticationType.Equals(NegotiateString, StringComparison.OrdinalIgnoreCase) 852|| authenticationType.Equals(BasicString, StringComparison.OrdinalIgnoreCase))) 913if (transferEncoding.AsSpan().Slice(index + 1).Trim().Equals("chunked", StringComparison.OrdinalIgnoreCase))
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (123)
1051if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1057if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1063if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1067if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1071if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1077if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1081if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1087if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1091if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1095if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1099if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1105if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1109if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1113if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1117if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1121if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1127if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1131if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1137if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1143if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1147if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1151if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1157if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1163if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1167if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1173if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1177if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1181if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1185if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1189if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1195if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1199if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1205if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1209if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1215if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1219if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1223if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1229if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1233if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1239if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1243if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1257if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1264if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1271if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1276if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1281if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1288if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1293if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1300if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1305if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1310if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1315if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1322if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1327if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1332if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1337if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1342if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1349if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1354if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1361if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1368if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1373if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1378if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1385if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1392if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1397if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1404if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1409if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1414if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1419if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1424if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1431if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1436if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1443if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1448if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1455if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1460if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1465if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1472if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1477if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1484if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1489if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1505if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1512if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1519if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1524if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1529if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1536if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1541if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1548if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1553if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1558if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1563if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1570if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1575if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1580if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1585if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1590if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1597if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1602if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1609if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1616if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1621if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1626if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1633if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1640if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1645if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1652if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1657if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1662if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1667if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1672if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1679if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1684if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1691if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1696if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1703if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1708if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1713if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1720if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1725if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1732if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1737if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase))
StartupHook.cs (4)
29var enableStartupErrorPage = detailedErrors?.Equals("1", StringComparison.OrdinalIgnoreCase) ?? false; 30enableStartupErrorPage |= detailedErrors?.Equals("true", StringComparison.OrdinalIgnoreCase) ?? false; 33enableStartupErrorPage |= aspnetCoreEnvironment?.Equals("Development", StringComparison.OrdinalIgnoreCase) ?? false; 36enableStartupErrorPage |= dotnetEnvironment?.Equals("Development", StringComparison.OrdinalIgnoreCase) ?? false;
Microsoft.AspNetCore.Server.IISIntegration (3)
IISMiddleware.cs (2)
113string.Equals(ANCMShutdownEventHeaderValue, httpContext.Request.Headers[MSAspNetCoreEvent], StringComparison.OrdinalIgnoreCase)) 121if (Debugger.IsAttached && string.Equals("DEBUG", httpContext.Request.Method, StringComparison.OrdinalIgnoreCase))
WebHostBuilderIISExtensions.cs (1)
70if (!string.Equals(authType, "anonymous", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Common\Tfm.cs (1)
24return string.Equals(tfm1, tfm2, StringComparison.OrdinalIgnoreCase);
xunit\SkipIfEnvironmentVariableNotEnabled.cs (1)
26return string.Equals(Environment.GetEnvironmentVariable(_environmentVariableName), "true", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
512if (!string.Equals(className, "IISEXPRESS", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.Kestrel.Core (378)
Internal\AddressBinder.cs (4)
105if (parsedAddress.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase)) 109else if (!parsedAddress.Scheme.Equals("http", StringComparison.OrdinalIgnoreCase)) 148if (string.Equals(host, "localhost", StringComparison.OrdinalIgnoreCase)) 156if (host.Length > localhostTld.Length && host.EndsWith(localhostTld, StringComparison.OrdinalIgnoreCase))
Internal\Http\HttpHeaders.Generated.cs (368)
2606if (HeaderNames.TE.Equals(key, StringComparison.OrdinalIgnoreCase)) 2629if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 2670if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 2679if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 2688if (HeaderNames.From.Equals(key, StringComparison.OrdinalIgnoreCase)) 2720if (InternalHeaderNames.Path.Equals(key, StringComparison.OrdinalIgnoreCase)) 2729if (HeaderNames.Range.Equals(key, StringComparison.OrdinalIgnoreCase)) 2788if (HeaderNames.Accept.Equals(key, StringComparison.OrdinalIgnoreCase)) 2797if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 2806if (HeaderNames.Expect.Equals(key, StringComparison.OrdinalIgnoreCase)) 2815if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 2824if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 2892if (InternalHeaderNames.Method.Equals(key, StringComparison.OrdinalIgnoreCase)) 2901if (InternalHeaderNames.Scheme.Equals(key, StringComparison.OrdinalIgnoreCase)) 2910if (HeaderNames.Baggage.Equals(key, StringComparison.OrdinalIgnoreCase)) 2919if (HeaderNames.Referer.Equals(key, StringComparison.OrdinalIgnoreCase)) 2928if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 2937if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 2978if (InternalHeaderNames.AltUsed.Equals(key, StringComparison.OrdinalIgnoreCase)) 2987if (HeaderNames.IfMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 2996if (HeaderNames.IfRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 3028if (InternalHeaderNames.Protocol.Equals(key, StringComparison.OrdinalIgnoreCase)) 3037if (HeaderNames.Translate.Equals(key, StringComparison.OrdinalIgnoreCase)) 3105if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 3114if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 3123if (InternalHeaderNames.Authority.Equals(key, StringComparison.OrdinalIgnoreCase)) 3132if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 3141if (HeaderNames.RequestId.Equals(key, StringComparison.OrdinalIgnoreCase)) 3150if (HeaderNames.TraceState.Equals(key, StringComparison.OrdinalIgnoreCase)) 3173if (HeaderNames.TraceParent.Equals(key, StringComparison.OrdinalIgnoreCase)) 3214if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 3223if (HeaderNames.GrpcTimeout.Equals(key, StringComparison.OrdinalIgnoreCase)) 3232if (HeaderNames.MaxForwards.Equals(key, StringComparison.OrdinalIgnoreCase)) 3282if (HeaderNames.Authorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 3291if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 3300if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 3309if (HeaderNames.IfNoneMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 3341if (HeaderNames.AcceptCharset.Equals(key, StringComparison.OrdinalIgnoreCase)) 3350if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 3382if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 3391if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 3423if (HeaderNames.IfModifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 3432if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 3473if (HeaderNames.CorrelationContext.Equals(key, StringComparison.OrdinalIgnoreCase)) 3482if (HeaderNames.IfUnmodifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 3491if (HeaderNames.ProxyAuthorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 3514if (HeaderNames.GrpcAcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 3537if (HeaderNames.UpgradeInsecureRequests.Equals(key, StringComparison.OrdinalIgnoreCase)) 3560if (HeaderNames.AccessControlRequestMethod.Equals(key, StringComparison.OrdinalIgnoreCase)) 3583if (HeaderNames.AccessControlRequestHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 3612if (HeaderNames.TE.Equals(key, StringComparison.OrdinalIgnoreCase)) 3629if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 3658if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 3664if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 3670if (HeaderNames.From.Equals(key, StringComparison.OrdinalIgnoreCase)) 3693if (InternalHeaderNames.Path.Equals(key, StringComparison.OrdinalIgnoreCase)) 3699if (HeaderNames.Range.Equals(key, StringComparison.OrdinalIgnoreCase)) 3740if (HeaderNames.Accept.Equals(key, StringComparison.OrdinalIgnoreCase)) 3746if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 3752if (HeaderNames.Expect.Equals(key, StringComparison.OrdinalIgnoreCase)) 3758if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 3764if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 3811if (InternalHeaderNames.Method.Equals(key, StringComparison.OrdinalIgnoreCase)) 3817if (InternalHeaderNames.Scheme.Equals(key, StringComparison.OrdinalIgnoreCase)) 3823if (HeaderNames.Baggage.Equals(key, StringComparison.OrdinalIgnoreCase)) 3829if (HeaderNames.Referer.Equals(key, StringComparison.OrdinalIgnoreCase)) 3835if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 3841if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 3870if (InternalHeaderNames.AltUsed.Equals(key, StringComparison.OrdinalIgnoreCase)) 3876if (HeaderNames.IfMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 3882if (HeaderNames.IfRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 3905if (InternalHeaderNames.Protocol.Equals(key, StringComparison.OrdinalIgnoreCase)) 3911if (HeaderNames.Translate.Equals(key, StringComparison.OrdinalIgnoreCase)) 3958if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 3964if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 3970if (InternalHeaderNames.Authority.Equals(key, StringComparison.OrdinalIgnoreCase)) 3976if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 3982if (HeaderNames.RequestId.Equals(key, StringComparison.OrdinalIgnoreCase)) 3988if (HeaderNames.TraceState.Equals(key, StringComparison.OrdinalIgnoreCase)) 4005if (HeaderNames.TraceParent.Equals(key, StringComparison.OrdinalIgnoreCase)) 4034if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 4040if (HeaderNames.GrpcTimeout.Equals(key, StringComparison.OrdinalIgnoreCase)) 4046if (HeaderNames.MaxForwards.Equals(key, StringComparison.OrdinalIgnoreCase)) 4081if (HeaderNames.Authorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 4087if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 4093if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 4099if (HeaderNames.IfNoneMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 4121if (HeaderNames.AcceptCharset.Equals(key, StringComparison.OrdinalIgnoreCase)) 4127if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 4149if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 4155if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 4178if (HeaderNames.IfModifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 4184if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 4213if (HeaderNames.CorrelationContext.Equals(key, StringComparison.OrdinalIgnoreCase)) 4219if (HeaderNames.IfUnmodifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 4225if (HeaderNames.ProxyAuthorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 4242if (HeaderNames.GrpcAcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 4259if (HeaderNames.UpgradeInsecureRequests.Equals(key, StringComparison.OrdinalIgnoreCase)) 4276if (HeaderNames.AccessControlRequestMethod.Equals(key, StringComparison.OrdinalIgnoreCase)) 4293if (HeaderNames.AccessControlRequestHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 4323if (HeaderNames.TE.Equals(key, StringComparison.OrdinalIgnoreCase)) 4348if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 4393if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 4403if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 4413if (HeaderNames.From.Equals(key, StringComparison.OrdinalIgnoreCase)) 4448if (InternalHeaderNames.Path.Equals(key, StringComparison.OrdinalIgnoreCase)) 4458if (HeaderNames.Range.Equals(key, StringComparison.OrdinalIgnoreCase)) 4523if (HeaderNames.Accept.Equals(key, StringComparison.OrdinalIgnoreCase)) 4533if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 4543if (HeaderNames.Expect.Equals(key, StringComparison.OrdinalIgnoreCase)) 4553if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 4563if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 4638if (InternalHeaderNames.Method.Equals(key, StringComparison.OrdinalIgnoreCase)) 4648if (InternalHeaderNames.Scheme.Equals(key, StringComparison.OrdinalIgnoreCase)) 4658if (HeaderNames.Baggage.Equals(key, StringComparison.OrdinalIgnoreCase)) 4668if (HeaderNames.Referer.Equals(key, StringComparison.OrdinalIgnoreCase)) 4678if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 4688if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 4733if (InternalHeaderNames.AltUsed.Equals(key, StringComparison.OrdinalIgnoreCase)) 4743if (HeaderNames.IfMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 4753if (HeaderNames.IfRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 4788if (InternalHeaderNames.Protocol.Equals(key, StringComparison.OrdinalIgnoreCase)) 4798if (HeaderNames.Translate.Equals(key, StringComparison.OrdinalIgnoreCase)) 4873if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 4883if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 4893if (InternalHeaderNames.Authority.Equals(key, StringComparison.OrdinalIgnoreCase)) 4903if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 4913if (HeaderNames.RequestId.Equals(key, StringComparison.OrdinalIgnoreCase)) 4923if (HeaderNames.TraceState.Equals(key, StringComparison.OrdinalIgnoreCase)) 4948if (HeaderNames.TraceParent.Equals(key, StringComparison.OrdinalIgnoreCase)) 4993if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 5003if (HeaderNames.GrpcTimeout.Equals(key, StringComparison.OrdinalIgnoreCase)) 5013if (HeaderNames.MaxForwards.Equals(key, StringComparison.OrdinalIgnoreCase)) 5068if (HeaderNames.Authorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 5078if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 5088if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 5098if (HeaderNames.IfNoneMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 5132if (HeaderNames.AcceptCharset.Equals(key, StringComparison.OrdinalIgnoreCase)) 5142if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 5176if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 5186if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 5221if (HeaderNames.IfModifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 5231if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 5276if (HeaderNames.CorrelationContext.Equals(key, StringComparison.OrdinalIgnoreCase)) 5286if (HeaderNames.IfUnmodifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 5296if (HeaderNames.ProxyAuthorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 5321if (HeaderNames.GrpcAcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 5346if (HeaderNames.UpgradeInsecureRequests.Equals(key, StringComparison.OrdinalIgnoreCase)) 5371if (HeaderNames.AccessControlRequestMethod.Equals(key, StringComparison.OrdinalIgnoreCase)) 5396if (HeaderNames.AccessControlRequestHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 5430if (HeaderNames.TE.Equals(key, StringComparison.OrdinalIgnoreCase)) 5455if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 5500if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 5510if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 5520if (HeaderNames.From.Equals(key, StringComparison.OrdinalIgnoreCase)) 5555if (InternalHeaderNames.Path.Equals(key, StringComparison.OrdinalIgnoreCase)) 5565if (HeaderNames.Range.Equals(key, StringComparison.OrdinalIgnoreCase)) 5630if (HeaderNames.Accept.Equals(key, StringComparison.OrdinalIgnoreCase)) 5640if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 5650if (HeaderNames.Expect.Equals(key, StringComparison.OrdinalIgnoreCase)) 5660if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 5670if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 5745if (InternalHeaderNames.Method.Equals(key, StringComparison.OrdinalIgnoreCase)) 5755if (InternalHeaderNames.Scheme.Equals(key, StringComparison.OrdinalIgnoreCase)) 5765if (HeaderNames.Baggage.Equals(key, StringComparison.OrdinalIgnoreCase)) 5775if (HeaderNames.Referer.Equals(key, StringComparison.OrdinalIgnoreCase)) 5785if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 5795if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 5840if (InternalHeaderNames.AltUsed.Equals(key, StringComparison.OrdinalIgnoreCase)) 5850if (HeaderNames.IfMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 5860if (HeaderNames.IfRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 5895if (InternalHeaderNames.Protocol.Equals(key, StringComparison.OrdinalIgnoreCase)) 5905if (HeaderNames.Translate.Equals(key, StringComparison.OrdinalIgnoreCase)) 5980if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 5990if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 6000if (InternalHeaderNames.Authority.Equals(key, StringComparison.OrdinalIgnoreCase)) 6010if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 6020if (HeaderNames.RequestId.Equals(key, StringComparison.OrdinalIgnoreCase)) 6030if (HeaderNames.TraceState.Equals(key, StringComparison.OrdinalIgnoreCase)) 6055if (HeaderNames.TraceParent.Equals(key, StringComparison.OrdinalIgnoreCase)) 6100if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 6110if (HeaderNames.GrpcTimeout.Equals(key, StringComparison.OrdinalIgnoreCase)) 6120if (HeaderNames.MaxForwards.Equals(key, StringComparison.OrdinalIgnoreCase)) 6175if (HeaderNames.Authorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 6185if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 6195if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 6205if (HeaderNames.IfNoneMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 6239if (HeaderNames.AcceptCharset.Equals(key, StringComparison.OrdinalIgnoreCase)) 6249if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 6283if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 6293if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 6328if (HeaderNames.IfModifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 6338if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 6383if (HeaderNames.CorrelationContext.Equals(key, StringComparison.OrdinalIgnoreCase)) 6393if (HeaderNames.IfUnmodifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 6403if (HeaderNames.ProxyAuthorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 6428if (HeaderNames.GrpcAcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 6453if (HeaderNames.UpgradeInsecureRequests.Equals(key, StringComparison.OrdinalIgnoreCase)) 6478if (HeaderNames.AccessControlRequestMethod.Equals(key, StringComparison.OrdinalIgnoreCase)) 6503if (HeaderNames.AccessControlRequestHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 10901if (HeaderNames.Age.Equals(key, StringComparison.OrdinalIgnoreCase)) 10910if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 10951if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 10960if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 10969if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 10992if (HeaderNames.Allow.Equals(key, StringComparison.OrdinalIgnoreCase)) 11024if (HeaderNames.Server.Equals(key, StringComparison.OrdinalIgnoreCase)) 11033if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 11092if (HeaderNames.AltSvc.Equals(key, StringComparison.OrdinalIgnoreCase)) 11101if (HeaderNames.Expires.Equals(key, StringComparison.OrdinalIgnoreCase)) 11110if (HeaderNames.Trailer.Equals(key, StringComparison.OrdinalIgnoreCase)) 11119if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 11128if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 11151if (HeaderNames.Location.Equals(key, StringComparison.OrdinalIgnoreCase)) 11192if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 11201if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 11210if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 11242if (HeaderNames.ContentMD5.Equals(key, StringComparison.OrdinalIgnoreCase)) 11251if (HeaderNames.RetryAfter.Equals(key, StringComparison.OrdinalIgnoreCase)) 11274if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 11333if (HeaderNames.AcceptRanges.Equals(key, StringComparison.OrdinalIgnoreCase)) 11342if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 11351if (HeaderNames.ContentRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 11360if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 11369if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 11392if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 11451if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 11460if (HeaderNames.ContentLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 11469if (HeaderNames.ContentLocation.Equals(key, StringComparison.OrdinalIgnoreCase)) 11478if (HeaderNames.ProxyConnection.Equals(key, StringComparison.OrdinalIgnoreCase)) 11487if (HeaderNames.WWWAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 11510if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 11533if (HeaderNames.ProxyAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 11556if (HeaderNames.AccessControlMaxAge.Equals(key, StringComparison.OrdinalIgnoreCase)) 11579if (HeaderNames.AccessControlAllowOrigin.Equals(key, StringComparison.OrdinalIgnoreCase)) 11611if (HeaderNames.AccessControlAllowHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 11620if (HeaderNames.AccessControlAllowMethods.Equals(key, StringComparison.OrdinalIgnoreCase)) 11643if (HeaderNames.AccessControlExposeHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 11666if (HeaderNames.AccessControlAllowCredentials.Equals(key, StringComparison.OrdinalIgnoreCase)) 11702if (HeaderNames.Age.Equals(key, StringComparison.OrdinalIgnoreCase)) 11708if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 11738if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 11745if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 11751if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 11768if (HeaderNames.Allow.Equals(key, StringComparison.OrdinalIgnoreCase)) 11792if (HeaderNames.Server.Equals(key, StringComparison.OrdinalIgnoreCase)) 11799if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 11841if (HeaderNames.AltSvc.Equals(key, StringComparison.OrdinalIgnoreCase)) 11848if (HeaderNames.Expires.Equals(key, StringComparison.OrdinalIgnoreCase)) 11854if (HeaderNames.Trailer.Equals(key, StringComparison.OrdinalIgnoreCase)) 11860if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 11866if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 11883if (HeaderNames.Location.Equals(key, StringComparison.OrdinalIgnoreCase)) 11913if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 11920if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 11926if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 11949if (HeaderNames.ContentMD5.Equals(key, StringComparison.OrdinalIgnoreCase)) 11955if (HeaderNames.RetryAfter.Equals(key, StringComparison.OrdinalIgnoreCase)) 11972if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 12013if (HeaderNames.AcceptRanges.Equals(key, StringComparison.OrdinalIgnoreCase)) 12019if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 12025if (HeaderNames.ContentRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 12031if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12037if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 12053if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 12093if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12099if (HeaderNames.ContentLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 12105if (HeaderNames.ContentLocation.Equals(key, StringComparison.OrdinalIgnoreCase)) 12111if (HeaderNames.ProxyConnection.Equals(key, StringComparison.OrdinalIgnoreCase)) 12117if (HeaderNames.WWWAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 12135if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12153if (HeaderNames.ProxyAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 12170if (HeaderNames.AccessControlMaxAge.Equals(key, StringComparison.OrdinalIgnoreCase)) 12187if (HeaderNames.AccessControlAllowOrigin.Equals(key, StringComparison.OrdinalIgnoreCase)) 12210if (HeaderNames.AccessControlAllowHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 12216if (HeaderNames.AccessControlAllowMethods.Equals(key, StringComparison.OrdinalIgnoreCase)) 12233if (HeaderNames.AccessControlExposeHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 12250if (HeaderNames.AccessControlAllowCredentials.Equals(key, StringComparison.OrdinalIgnoreCase)) 12291if (HeaderNames.Age.Equals(key, StringComparison.OrdinalIgnoreCase)) 12301if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 12347if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 12358if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 12368if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 12393if (HeaderNames.Allow.Equals(key, StringComparison.OrdinalIgnoreCase)) 12429if (HeaderNames.Server.Equals(key, StringComparison.OrdinalIgnoreCase)) 12440if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 12506if (HeaderNames.AltSvc.Equals(key, StringComparison.OrdinalIgnoreCase)) 12517if (HeaderNames.Expires.Equals(key, StringComparison.OrdinalIgnoreCase)) 12527if (HeaderNames.Trailer.Equals(key, StringComparison.OrdinalIgnoreCase)) 12537if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 12547if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 12572if (HeaderNames.Location.Equals(key, StringComparison.OrdinalIgnoreCase)) 12618if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 12629if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 12639if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 12674if (HeaderNames.ContentMD5.Equals(key, StringComparison.OrdinalIgnoreCase)) 12684if (HeaderNames.RetryAfter.Equals(key, StringComparison.OrdinalIgnoreCase)) 12709if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 12774if (HeaderNames.AcceptRanges.Equals(key, StringComparison.OrdinalIgnoreCase)) 12784if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 12794if (HeaderNames.ContentRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 12804if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12814if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 12838if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 12902if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12912if (HeaderNames.ContentLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 12922if (HeaderNames.ContentLocation.Equals(key, StringComparison.OrdinalIgnoreCase)) 12932if (HeaderNames.ProxyConnection.Equals(key, StringComparison.OrdinalIgnoreCase)) 12942if (HeaderNames.WWWAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 12968if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12994if (HeaderNames.ProxyAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 13019if (HeaderNames.AccessControlMaxAge.Equals(key, StringComparison.OrdinalIgnoreCase)) 13044if (HeaderNames.AccessControlAllowOrigin.Equals(key, StringComparison.OrdinalIgnoreCase)) 13079if (HeaderNames.AccessControlAllowHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 13089if (HeaderNames.AccessControlAllowMethods.Equals(key, StringComparison.OrdinalIgnoreCase)) 13114if (HeaderNames.AccessControlExposeHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 13139if (HeaderNames.AccessControlAllowCredentials.Equals(key, StringComparison.OrdinalIgnoreCase)) 13183if (HeaderNames.Age.Equals(key, StringComparison.OrdinalIgnoreCase)) 13193if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 13239if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 13250if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 13260if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 13285if (HeaderNames.Allow.Equals(key, StringComparison.OrdinalIgnoreCase)) 13321if (HeaderNames.Server.Equals(key, StringComparison.OrdinalIgnoreCase)) 13332if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 13398if (HeaderNames.AltSvc.Equals(key, StringComparison.OrdinalIgnoreCase)) 13409if (HeaderNames.Expires.Equals(key, StringComparison.OrdinalIgnoreCase)) 13419if (HeaderNames.Trailer.Equals(key, StringComparison.OrdinalIgnoreCase)) 13429if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 13439if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 13464if (HeaderNames.Location.Equals(key, StringComparison.OrdinalIgnoreCase)) 13510if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 13521if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 13531if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 13566if (HeaderNames.ContentMD5.Equals(key, StringComparison.OrdinalIgnoreCase)) 13576if (HeaderNames.RetryAfter.Equals(key, StringComparison.OrdinalIgnoreCase)) 13601if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 13666if (HeaderNames.AcceptRanges.Equals(key, StringComparison.OrdinalIgnoreCase)) 13676if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 13686if (HeaderNames.ContentRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 13696if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 13706if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 13730if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 13794if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 13804if (HeaderNames.ContentLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 13814if (HeaderNames.ContentLocation.Equals(key, StringComparison.OrdinalIgnoreCase)) 13824if (HeaderNames.ProxyConnection.Equals(key, StringComparison.OrdinalIgnoreCase)) 13834if (HeaderNames.WWWAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 13860if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 13886if (HeaderNames.ProxyAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 13911if (HeaderNames.AccessControlMaxAge.Equals(key, StringComparison.OrdinalIgnoreCase)) 13936if (HeaderNames.AccessControlAllowOrigin.Equals(key, StringComparison.OrdinalIgnoreCase)) 13971if (HeaderNames.AccessControlAllowHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 13981if (HeaderNames.AccessControlAllowMethods.Equals(key, StringComparison.OrdinalIgnoreCase)) 14006if (HeaderNames.AccessControlExposeHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 14031if (HeaderNames.AccessControlAllowCredentials.Equals(key, StringComparison.OrdinalIgnoreCase)) 17189if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17212if (HeaderNames.GrpcStatus.Equals(key, StringComparison.OrdinalIgnoreCase)) 17235if (HeaderNames.GrpcMessage.Equals(key, StringComparison.OrdinalIgnoreCase)) 17265if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17282if (HeaderNames.GrpcStatus.Equals(key, StringComparison.OrdinalIgnoreCase)) 17299if (HeaderNames.GrpcMessage.Equals(key, StringComparison.OrdinalIgnoreCase)) 17330if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17355if (HeaderNames.GrpcStatus.Equals(key, StringComparison.OrdinalIgnoreCase)) 17380if (HeaderNames.GrpcMessage.Equals(key, StringComparison.OrdinalIgnoreCase)) 17414if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17439if (HeaderNames.GrpcStatus.Equals(key, StringComparison.OrdinalIgnoreCase)) 17464if (HeaderNames.GrpcMessage.Equals(key, StringComparison.OrdinalIgnoreCase))
Internal\Http\HttpProtocol.cs (1)
949(expect.FirstOrDefault() ?? "").Equals("100-continue", StringComparison.OrdinalIgnoreCase))
Internal\Http2\Http2Stream.cs (1)
299!string.Equals(headerScheme, Scheme, StringComparison.OrdinalIgnoreCase))
Internal\Http3\Http3Stream.cs (1)
1063!string.Equals(headerScheme, Scheme, StringComparison.OrdinalIgnoreCase))
Internal\SniOptionsSelector.cs (2)
124if (serverName.EndsWith(suffix, StringComparison.OrdinalIgnoreCase)) 241return string.Compare(x, y, StringComparison.OrdinalIgnoreCase);
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (1)
189return string.Equals(name, "Content-Disposition", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (7)
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (1)
189return string.Equals(name, "Content-Disposition", StringComparison.OrdinalIgnoreCase);
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
1508Header = headers.SingleOrDefault(knownHeader => string.Equals(knownHeader.Name, g.Key, StringComparison.OrdinalIgnoreCase)), 1529Header = headers.SingleOrDefault(knownHeader => string.Equals(knownHeader.Name, g.Key, StringComparison.OrdinalIgnoreCase)),
src\Servers\Kestrel\shared\test\RevocationResponder.cs (4)
48if (authority.AiaHttpUri != null && authority.AiaHttpUri.StartsWith(UriPrefix, StringComparison.OrdinalIgnoreCase)) 55if (authority.CdpUri != null && authority.CdpUri.StartsWith(UriPrefix, StringComparison.OrdinalIgnoreCase)) 62if (authority.OcspUri != null && authority.OcspUri.StartsWith(UriPrefix, StringComparison.OrdinalIgnoreCase)) 217if (url.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (1)
189return string.Equals(name, "Content-Disposition", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.Kestrel.Tests (4)
HttpsConfigurationTests.cs (3)
47if (address.StartsWith("https", StringComparison.OrdinalIgnoreCase) && !useKestrelHttpsConfiguration) 120if (address.StartsWith("https", StringComparison.OrdinalIgnoreCase) && !useKestrelHttpsConfiguration) 198if (address.StartsWith("https", StringComparison.OrdinalIgnoreCase) && !useKestrelHttpsConfiguration)
KestrelConfigurationLoaderTests.cs (1)
915if (certificatePath.EndsWith(".pem", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Shared.Tests (127)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (123)
1051if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1057if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1063if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1067if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1071if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1077if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1081if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1087if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1091if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1095if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1099if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1105if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1109if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1113if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1117if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1121if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1127if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1131if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1137if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1143if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1147if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1151if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1157if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1163if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1167if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1173if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1177if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1181if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1185if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1189if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1195if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1199if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1205if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1209if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1215if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1219if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1223if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1229if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1233if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1239if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1243if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1257if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1264if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1271if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1276if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1281if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1288if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1293if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1300if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1305if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1310if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1315if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1322if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1327if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1332if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1337if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1342if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1349if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1354if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1361if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1368if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1373if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1378if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1385if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1392if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1397if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1404if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1409if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1414if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1419if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1424if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1431if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1436if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1443if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1448if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1455if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1460if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1465if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1472if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1477if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1484if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1489if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1505if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1512if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1519if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1524if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1529if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1536if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1541if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1548if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1553if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1558if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1563if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1570if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1575if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1580if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1585if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1590if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1597if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1602if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1609if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1616if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1621if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1626if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1633if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1640if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1645if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1652if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1657if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1662if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1667if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1672if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1679if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1684if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1691if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1696if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1703if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1708if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1713if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1720if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1725if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1732if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1737if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.SignalR.Core (2)
Internal\Utf8HashLookup.cs (2)
101if (_slots[i].hashCode == hashCode && key.Equals(_slots[i].value, StringComparison.OrdinalIgnoreCase)) 113HashCodeMask & string.GetHashCode(value, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.SignalR.Tests (1)
HttpHeaderConnectionHandler.cs (1)
26var headerValues = headers.FirstOrDefault(h => string.Equals(h.Key, headerName, StringComparison.OrdinalIgnoreCase)).Value.ToArray();
Microsoft.AspNetCore.SpaServices.Extensions (3)
Proxying\SpaProxy.cs (3)
72var targetUri = new Uri((baseUriAsString.EndsWith("/", StringComparison.OrdinalIgnoreCase) ? baseUriAsString[..^1] : baseUriAsString) 197if (string.Equals(uriBuilder.Scheme, "https", StringComparison.OrdinalIgnoreCase)) 201else if (string.Equals(uriBuilder.Scheme, "http", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.StaticAssets (11)
Development\StaticAssetDescriptorExtensions.cs (5)
16if (string.Equals(header.Name, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 29if (string.Equals(header.Name, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 42if (string.Equals(header.Name, HeaderNames.ETag, StringComparison.OrdinalIgnoreCase)) 59if (string.Equals(selector.Name, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 72if (string.Equals(header.Name, HeaderNames.ETag, StringComparison.OrdinalIgnoreCase))
Development\StaticAssetDevelopmentRuntimeHandler.cs (5)
80if (string.Equals(property.Name, "original-resource", StringComparison.OrdinalIgnoreCase)) 94if (string.Equals(header.Name, HeaderNames.ETag, StringComparison.OrdinalIgnoreCase)) 311if (string.Equals(responseHeader.Name, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 313if (!string.Equals(responseHeader.Value, "no-cache", StringComparison.OrdinalIgnoreCase)) 338if (string.Equals(property.Name, "integrity", StringComparison.OrdinalIgnoreCase))
StaticAssetsManifest.cs (1)
56public bool IsBuildManifest() => string.Equals(ManifestType, "Build", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.TestHost (3)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-rc.1.25420.121\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (2)
163=> arg.Equals("--applicationName", StringComparison.OrdinalIgnoreCase) || 164arg.Equals("/applicationName", StringComparison.OrdinalIgnoreCase);
ClientHandler.cs (1)
160if (string.Equals(header.Key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Testing (1)
ServiceFakesHostExtensions.cs (1)
79.Select(x => new Uri(x.Replace("[::]", "localhost", StringComparison.OrdinalIgnoreCase)));
Microsoft.AspNetCore.WebSockets (4)
WebSocketMiddleware.cs (4)
244if (string.Equals(value, Constants.Headers.UpgradeWebSocket, StringComparison.OrdinalIgnoreCase)) 264if (string.Equals(value, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 296&& string.Equals(protocol, Constants.Headers.UpgradeWebSocket, StringComparison.OrdinalIgnoreCase) 305if (string.Equals(value, Constants.Headers.SupportedVersion, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.WebSockets.ConformanceTests (2)
SkipIfWsTestNotPresentAttribute.cs (2)
17string.Equals(Environment.GetEnvironmentVariable("TRAVIS"), "true", StringComparison.OrdinalIgnoreCase) || 18string.Equals(Environment.GetEnvironmentVariable("APPVEYOR"), "true", StringComparison.OrdinalIgnoreCase);
Microsoft.Build.Framework (24)
EncodingUtilities.cs (1)
320return string.Equals(Environment.GetEnvironmentVariable("DOTNET_CLI_FORCE_UTF8_ENCODING"), "true", StringComparison.OrdinalIgnoreCase);
EnvironmentUtilities.cs (3)
101return propertyName.StartsWith("MSBUILD", StringComparison.OrdinalIgnoreCase) || 102propertyName.StartsWith("COMPLUS_", StringComparison.OrdinalIgnoreCase) || 103propertyName.StartsWith("DOTNET_", StringComparison.OrdinalIgnoreCase);
FileClassifier.cs (5)
69private static readonly StringComparison PathComparison = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase; 167processFileName.Equals(s, StringComparison.OrdinalIgnoreCase))) 181Path.GetDirectoryName(msBuildAssembly)?.EndsWith(@"\amd64", StringComparison.OrdinalIgnoreCase) == true 217=> assemblyName.StartsWith("Microsoft.", StringComparison.OrdinalIgnoreCase); 223=> assemblyName.StartsWith(MicrosoftAssemblyPrefixSpan, StringComparison.OrdinalIgnoreCase);
MSBuildNameIgnoreCaseComparer.cs (1)
106return String.Compare(compareToString, 0, constrainedString, start, lengthToCompare, StringComparison.OrdinalIgnoreCase) == 0;
OperatingSystem.cs (1)
19return platform?.Equals("WINDOWS", StringComparison.OrdinalIgnoreCase) ?? throw new ArgumentNullException(nameof(platform));
Profiler\EvaluationLocation.cs (1)
239string.Equals(File, other.File, StringComparison.OrdinalIgnoreCase) &&
Sdk\SdkReference.cs (4)
66return string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase) && 67string.Equals(Version, other.Version, StringComparison.OrdinalIgnoreCase) && 68string.Equals(MinimumVersion, other.MinimumVersion, StringComparison.OrdinalIgnoreCase); 107sdkReference = parts[1].StartsWith("min=", StringComparison.OrdinalIgnoreCase)
TargetStartedEventArgs.cs (1)
181if (string.Equals(projectFile, targetFile, StringComparison.OrdinalIgnoreCase))
Telemetry\TaskOrTargetTelemetryKey.cs (1)
94=> string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase) &&
Traits.cs (6)
195(value.Equals("1", StringComparison.OrdinalIgnoreCase) || 196value.Equals("true", StringComparison.OrdinalIgnoreCase)); 303_logPropertiesAndItemsAfterEvaluation = variable == "1" || string.Equals(variable, "true", StringComparison.OrdinalIgnoreCase); 477if (mode.Equals("full", StringComparison.OrdinalIgnoreCase)) 482if (mode.Equals("partial", StringComparison.OrdinalIgnoreCase)) 505const StringComparison comparison = StringComparison.OrdinalIgnoreCase;
Microsoft.Build.Tasks.CodeAnalysis (41)
src\Compilers\Core\MSBuildTask\CanonicalError.cs (4)
273if (message.IndexOf("warning", StringComparison.OrdinalIgnoreCase) == -1 && 274message.IndexOf("error", StringComparison.OrdinalIgnoreCase) == -1) 315if (0 == String.Compare(category, "error", StringComparison.OrdinalIgnoreCase)) 319else if (0 == String.Compare(category, "warning", StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\MSBuildTask\Csc.cs (2)
402if (string.Compare("global", trimmedAlias, StringComparison.OrdinalIgnoreCase) == 0) 669if (!string.IsNullOrEmpty(PreferredUILang) && !string.Equals(PreferredUILang, System.Globalization.CultureInfo.CurrentUICulture.Name, StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (7)
459if ((RoslynString.IsNullOrEmpty(platform) || platform.Equals("anycpu", StringComparison.OrdinalIgnoreCase)) && Prefer32Bit) 653if (var.StartsWith("LIB=", StringComparison.OrdinalIgnoreCase)) 857if (string.Compare(TargetType, "library", StringComparison.OrdinalIgnoreCase) == 0) 861else if (string.Compare(TargetType, "module", StringComparison.OrdinalIgnoreCase) == 0) 1048if (string.Compare((string?)_store[nameof(DebugType)], "none", StringComparison.OrdinalIgnoreCase) == 0) 1196if (!string.Equals(TargetType, "library", StringComparison.OrdinalIgnoreCase) 1197&& !string.Equals(TargetType, "module", StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\MSBuildTask\Utilities.cs (12)
93String.Compare(parameterValue, "true", StringComparison.OrdinalIgnoreCase) == 0 || 94String.Compare(parameterValue, "on", StringComparison.OrdinalIgnoreCase) == 0 || 95String.Compare(parameterValue, "yes", StringComparison.OrdinalIgnoreCase) == 0 || 96String.Compare(parameterValue, "!false", StringComparison.OrdinalIgnoreCase) == 0 || 97String.Compare(parameterValue, "!off", StringComparison.OrdinalIgnoreCase) == 0 || 98String.Compare(parameterValue, "!no", StringComparison.OrdinalIgnoreCase) == 0; 105String.Compare(parameterValue, "false", StringComparison.OrdinalIgnoreCase) == 0 || 106String.Compare(parameterValue, "off", StringComparison.OrdinalIgnoreCase) == 0 || 107String.Compare(parameterValue, "no", StringComparison.OrdinalIgnoreCase) == 0 || 108String.Compare(parameterValue, "!true", StringComparison.OrdinalIgnoreCase) == 0 || 109String.Compare(parameterValue, "!on", StringComparison.OrdinalIgnoreCase) == 0 || 110String.Compare(parameterValue, "!yes", StringComparison.OrdinalIgnoreCase) == 0;
src\Compilers\Core\MSBuildTask\Vbc.cs (16)
309if (!desiredLocation.EndsWith(".pdb", StringComparison.OrdinalIgnoreCase)) 355(0 == String.Compare(twoLetterPrefix, "0x", StringComparison.OrdinalIgnoreCase)) || 356(0 == String.Compare(twoLetterPrefix, "&h", StringComparison.OrdinalIgnoreCase)) 453if (0 == String.Compare(this.VBRuntimePath, this.VBRuntime, StringComparison.OrdinalIgnoreCase)) 460if (0 == String.Compare(vbRuntimeSwitch, "EMBED", StringComparison.OrdinalIgnoreCase)) 464else if (0 == String.Compare(vbRuntimeSwitch, "NONE", StringComparison.OrdinalIgnoreCase)) 468else if (0 == String.Compare(vbRuntimeSwitch, "DEFAULT", StringComparison.OrdinalIgnoreCase)) 483(0 == String.Compare(this.Verbosity, "quiet", StringComparison.OrdinalIgnoreCase)) || 484(0 == String.Compare(this.Verbosity, "verbose", StringComparison.OrdinalIgnoreCase)) 505if (0 != String.Compare("Sub Main", this.MainEntryPoint, StringComparison.OrdinalIgnoreCase)) 610if ((0 != String.Compare(Verbosity, "normal", StringComparison.OrdinalIgnoreCase)) && 611(0 != String.Compare(Verbosity, "quiet", StringComparison.OrdinalIgnoreCase)) && 612(0 != String.Compare(Verbosity, "verbose", StringComparison.OrdinalIgnoreCase))) 643singleLine.IndexOf("warning", StringComparison.OrdinalIgnoreCase) == -1 && 644singleLine.IndexOf("error", StringComparison.OrdinalIgnoreCase) == -1) 963if (!String.IsNullOrEmpty(PreferredUILang) && !String.Equals(PreferredUILang, System.Globalization.CultureInfo.CurrentUICulture.Name, StringComparison.OrdinalIgnoreCase))
Microsoft.Build.Tasks.CodeAnalysis.Sdk (41)
src\Compilers\Core\MSBuildTask\CanonicalError.cs (4)
273if (message.IndexOf("warning", StringComparison.OrdinalIgnoreCase) == -1 && 274message.IndexOf("error", StringComparison.OrdinalIgnoreCase) == -1) 315if (0 == String.Compare(category, "error", StringComparison.OrdinalIgnoreCase)) 319else if (0 == String.Compare(category, "warning", StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\MSBuildTask\Csc.cs (2)
402if (string.Compare("global", trimmedAlias, StringComparison.OrdinalIgnoreCase) == 0) 669if (!string.IsNullOrEmpty(PreferredUILang) && !string.Equals(PreferredUILang, System.Globalization.CultureInfo.CurrentUICulture.Name, StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (7)
459if ((RoslynString.IsNullOrEmpty(platform) || platform.Equals("anycpu", StringComparison.OrdinalIgnoreCase)) && Prefer32Bit) 653if (var.StartsWith("LIB=", StringComparison.OrdinalIgnoreCase)) 857if (string.Compare(TargetType, "library", StringComparison.OrdinalIgnoreCase) == 0) 861else if (string.Compare(TargetType, "module", StringComparison.OrdinalIgnoreCase) == 0) 1048if (string.Compare((string?)_store[nameof(DebugType)], "none", StringComparison.OrdinalIgnoreCase) == 0) 1196if (!string.Equals(TargetType, "library", StringComparison.OrdinalIgnoreCase) 1197&& !string.Equals(TargetType, "module", StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\MSBuildTask\Utilities.cs (12)
93String.Compare(parameterValue, "true", StringComparison.OrdinalIgnoreCase) == 0 || 94String.Compare(parameterValue, "on", StringComparison.OrdinalIgnoreCase) == 0 || 95String.Compare(parameterValue, "yes", StringComparison.OrdinalIgnoreCase) == 0 || 96String.Compare(parameterValue, "!false", StringComparison.OrdinalIgnoreCase) == 0 || 97String.Compare(parameterValue, "!off", StringComparison.OrdinalIgnoreCase) == 0 || 98String.Compare(parameterValue, "!no", StringComparison.OrdinalIgnoreCase) == 0; 105String.Compare(parameterValue, "false", StringComparison.OrdinalIgnoreCase) == 0 || 106String.Compare(parameterValue, "off", StringComparison.OrdinalIgnoreCase) == 0 || 107String.Compare(parameterValue, "no", StringComparison.OrdinalIgnoreCase) == 0 || 108String.Compare(parameterValue, "!true", StringComparison.OrdinalIgnoreCase) == 0 || 109String.Compare(parameterValue, "!on", StringComparison.OrdinalIgnoreCase) == 0 || 110String.Compare(parameterValue, "!yes", StringComparison.OrdinalIgnoreCase) == 0;
src\Compilers\Core\MSBuildTask\Vbc.cs (16)
309if (!desiredLocation.EndsWith(".pdb", StringComparison.OrdinalIgnoreCase)) 355(0 == String.Compare(twoLetterPrefix, "0x", StringComparison.OrdinalIgnoreCase)) || 356(0 == String.Compare(twoLetterPrefix, "&h", StringComparison.OrdinalIgnoreCase)) 453if (0 == String.Compare(this.VBRuntimePath, this.VBRuntime, StringComparison.OrdinalIgnoreCase)) 460if (0 == String.Compare(vbRuntimeSwitch, "EMBED", StringComparison.OrdinalIgnoreCase)) 464else if (0 == String.Compare(vbRuntimeSwitch, "NONE", StringComparison.OrdinalIgnoreCase)) 468else if (0 == String.Compare(vbRuntimeSwitch, "DEFAULT", StringComparison.OrdinalIgnoreCase)) 483(0 == String.Compare(this.Verbosity, "quiet", StringComparison.OrdinalIgnoreCase)) || 484(0 == String.Compare(this.Verbosity, "verbose", StringComparison.OrdinalIgnoreCase)) 505if (0 != String.Compare("Sub Main", this.MainEntryPoint, StringComparison.OrdinalIgnoreCase)) 610if ((0 != String.Compare(Verbosity, "normal", StringComparison.OrdinalIgnoreCase)) && 611(0 != String.Compare(Verbosity, "quiet", StringComparison.OrdinalIgnoreCase)) && 612(0 != String.Compare(Verbosity, "verbose", StringComparison.OrdinalIgnoreCase))) 643singleLine.IndexOf("warning", StringComparison.OrdinalIgnoreCase) == -1 && 644singleLine.IndexOf("error", StringComparison.OrdinalIgnoreCase) == -1) 963if (!String.IsNullOrEmpty(PreferredUILang) && !String.Equals(PreferredUILang, System.Globalization.CultureInfo.CurrentUICulture.Name, StringComparison.OrdinalIgnoreCase))
Microsoft.Cci.Extensions (3)
Comparers\ApiComparer.cs (1)
139var i = name.IndexOf("<", StringComparison.OrdinalIgnoreCase);
Filters\BaselineDifferenceFilter.cs (1)
41if (filteredLine.StartsWith("Compat issues with assembly", StringComparison.OrdinalIgnoreCase) ||
HostEnvironment.cs (1)
482var coreAssemblyFile = contractSet.FirstOrDefault(c => Path.GetFileNameWithoutExtension(c).EndsWith(coreAssemblySimpleName, StringComparison.OrdinalIgnoreCase) == true);
Microsoft.CodeAnalysis (57)
CommandLine\AnalyzerConfig.cs (1)
167_hasGlobalFileName = Path.GetFileName(pathToFile).Equals(UserGlobalConfigName, StringComparison.OrdinalIgnoreCase);
CommandLine\CommandLineParser.cs (13)
252part.Substring(0, versionParameterDesignatorLength).Equals(versionParameterDesignator, StringComparison.OrdinalIgnoreCase) && 658if (!string.Equals(newArg, "/noconfig", StringComparison.OrdinalIgnoreCase) && !string.Equals(newArg, "-noconfig", StringComparison.OrdinalIgnoreCase)) 791if (!arg.StartsWith(optionName, StringComparison.OrdinalIgnoreCase)) 872else if (string.Equals(rawAccessibility, "public", StringComparison.OrdinalIgnoreCase)) 876else if (string.Equals(rawAccessibility, "private", StringComparison.OrdinalIgnoreCase)) 1138isScriptFile = !extension.Span.Equals(RegularFileExtension.AsSpan(), StringComparison.OrdinalIgnoreCase); 1238if (string.Equals("sha1", arg, StringComparison.OrdinalIgnoreCase)) 1243if (string.Equals("sha256", arg, StringComparison.OrdinalIgnoreCase)) 1366if (value.StartsWith("0x", StringComparison.OrdinalIgnoreCase)) 1370else if (value.StartsWith("0", StringComparison.OrdinalIgnoreCase)) 1404if (value.StartsWith("0x", StringComparison.OrdinalIgnoreCase)) 1408else if (value.StartsWith("0", StringComparison.OrdinalIgnoreCase))
Desktop\AssemblyPortabilityPolicy.cs (4)
91string.Equals(enableAttribute, "false", StringComparison.OrdinalIgnoreCase) ? false : 92string.Equals(enableAttribute, "true", StringComparison.OrdinalIgnoreCase) ? true : 97if (string.Equals(pkt, "31bf3856ad364e35", StringComparison.OrdinalIgnoreCase)) 101else if (string.Equals(pkt, "7cec85d7bea7798e", StringComparison.OrdinalIgnoreCase))
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
67internal static readonly (StringComparer Comparer, StringComparison Comparison) SimpleNameComparer = (StringComparer.OrdinalIgnoreCase, StringComparison.OrdinalIgnoreCase);
DiagnosticAnalyzer\AnalyzerFileReference.cs (3)
567if (string.Equals(referencedAssemblyName.Name, runningCompilerAssemblyName.Name, StringComparison.OrdinalIgnoreCase) 616if (targetFrameworkAttribute is object && targetFrameworkAttribute.FrameworkName.StartsWith(".NETFramework", StringComparison.OrdinalIgnoreCase)) 645builder.Sort(static (x, y) => string.Compare(x.typeName, y.typeName, StringComparison.OrdinalIgnoreCase));
DiagnosticAnalyzer\AnalyzerManager.cs (1)
287if (descriptor.Id.Equals(diagnostic.Id, StringComparison.OrdinalIgnoreCase))
DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
39=> analyzerPath.StartsWith(DotNetPath, StringComparison.OrdinalIgnoreCase);
FileKey.cs (1)
64string.Equals(this.FullPath, other.FullPath, StringComparison.OrdinalIgnoreCase);
FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
MetadataReader\PEModule.cs (1)
3993return string.Equals(metadataReader.GetString(nameHandle), name, StringComparison.OrdinalIgnoreCase);
MetadataReference\AssemblyIdentity.DisplayName.cs (13)
274if (string.Equals(propertyName, "Version", StringComparison.OrdinalIgnoreCase)) 298else if (string.Equals(propertyName, "Culture", StringComparison.OrdinalIgnoreCase) || 299string.Equals(propertyName, "Language", StringComparison.OrdinalIgnoreCase)) 313culture = string.Equals(propertyValue, InvariantCultureDisplay, StringComparison.OrdinalIgnoreCase) ? null : propertyValue; 316else if (string.Equals(propertyName, "PublicKey", StringComparison.OrdinalIgnoreCase)) 343else if (string.Equals(propertyName, "PublicKeyToken", StringComparison.OrdinalIgnoreCase)) 366else if (string.Equals(propertyName, "Retargetable", StringComparison.OrdinalIgnoreCase)) 380if (string.Equals(propertyValue, "Yes", StringComparison.OrdinalIgnoreCase)) 384else if (string.Equals(propertyValue, "No", StringComparison.OrdinalIgnoreCase)) 395else if (string.Equals(propertyName, "ContentType", StringComparison.OrdinalIgnoreCase)) 409if (string.Equals(propertyValue, "WindowsRuntime", StringComparison.OrdinalIgnoreCase)) 682if (string.Equals(value, "null", StringComparison.OrdinalIgnoreCase) || 683string.Equals(value, "neutral", StringComparison.OrdinalIgnoreCase))
MetadataReference\AssemblyIdentityExtensions.cs (2)
18identity.Name.StartsWith("windows.", StringComparison.OrdinalIgnoreCase); 27string.Equals(identity.Name, WindowsRuntimeIdentitySimpleName, StringComparison.OrdinalIgnoreCase);
PEWriter\NativeResourceWriter.cs (1)
161return String.Compare(xString, yString, StringComparison.OrdinalIgnoreCase);
SourceGeneration\AdditionalSourcesCollection.cs (1)
21private const StringComparison _hintNameComparison = StringComparison.OrdinalIgnoreCase;
SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
163var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Symbols\Attributes\CommonAttributeData.cs (1)
92StringComparison options = description.MatchIgnoringCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
Syntax\SyntaxTreeComparer.cs (1)
27return string.Equals(x.FilePath, y.FilePath, StringComparison.OrdinalIgnoreCase) &&
Microsoft.CodeAnalysis.Analyzers (52)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (7)
625IArgumentOperation? titleArgument = creationArguments.FirstOrDefault(a => a.Parameter?.Name.Equals("title", StringComparison.OrdinalIgnoreCase) == true); 727var messageArgument = creationArguments.FirstOrDefault(a => a.Parameter?.Name.Equals("messageFormat", StringComparison.OrdinalIgnoreCase) == true); 774IArgumentOperation? descriptionArgument = creationArguments.FirstOrDefault(a => a.Parameter?.Name.Equals("description", StringComparison.OrdinalIgnoreCase) == true); 964var index = s.IndexOf(MultiSentenceSeparator, StringComparison.OrdinalIgnoreCase); 1037if (argument.Parameter?.Name.Equals(HelpLinkUriParameterName, StringComparison.OrdinalIgnoreCase) == true) 1067a => a.Parameter?.Name.Equals(CustomTagsParameterName, StringComparison.OrdinalIgnoreCase) == true); 1202if (argument.Parameter?.Name.Equals(DiagnosticIdParameterName, StringComparison.OrdinalIgnoreCase) == true)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (3)
303if (category != null && !string.Equals(category, releaseTrackingLine.Category, StringComparison.OrdinalIgnoreCase) || 370if (ruleId.StartsWith("CA", StringComparison.OrdinalIgnoreCase) && 440lastEntry.releaseTrackingLine.Category.Equals(releaseTrackingLine.Category, StringComparison.OrdinalIgnoreCase) &&
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ResourceStringsFormat.cs (5)
27if (string.Equals(".resx", Path.GetExtension(file.Path), StringComparison.OrdinalIgnoreCase)) 43Debug.Assert(!resourceFileName.EndsWith(".resx", StringComparison.OrdinalIgnoreCase)); 60if (string.Equals(resourceFileName, fileName, StringComparison.OrdinalIgnoreCase)) 89!valueElementStr.StartsWith(valueTagPrefix, StringComparison.OrdinalIgnoreCase) || 90!valueElementStr.EndsWith(valueTagSuffix, StringComparison.OrdinalIgnoreCase))
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (5)
114TextDocument? additionalDocument = project.AdditionalDocuments.FirstOrDefault(doc => string.Equals(doc.Name, name, StringComparison.OrdinalIgnoreCase)); 312if (lineText.StartsWith(ReleaseTrackingHelper.TableTitleNewRules, StringComparison.OrdinalIgnoreCase)) 327if (lineText.StartsWith(ReleaseTrackingHelper.TableTitleRemovedRules, StringComparison.OrdinalIgnoreCase)) 331else if (lineText.StartsWith(ReleaseTrackingHelper.TableTitleChangedRules, StringComparison.OrdinalIgnoreCase)) 379string.Compare(entriesToAdd.First(), lineText, StringComparison.OrdinalIgnoreCase) <= 0)
MetaAnalyzers\ReleaseTrackingHelper.cs (10)
71if (lineText.StartsWith(ReleasePrefix, StringComparison.OrdinalIgnoreCase)) 96if (lineText.StartsWith(TableTitleNewRules, StringComparison.OrdinalIgnoreCase)) 101else if (lineText.StartsWith(TableTitleRemovedRules, StringComparison.OrdinalIgnoreCase)) 106else if (lineText.StartsWith(TableTitleChangedRules, StringComparison.OrdinalIgnoreCase)) 161if (lineText.StartsWith("## ", StringComparison.OrdinalIgnoreCase)) 165else if (lineText.StartsWith("### ", StringComparison.OrdinalIgnoreCase)) 211if (string.Equals(category, oldCategory, StringComparison.OrdinalIgnoreCase) && 290if (category.Equals(UndetectedText, StringComparison.OrdinalIgnoreCase)) 304if (string.Equals(severityPart, DisabledText, StringComparison.OrdinalIgnoreCase)) 308else if (severityPart.Equals(UndetectedText, StringComparison.OrdinalIgnoreCase))
MetaAnalyzers\ReportDiagnosticAnalyzer.cs (2)
203!symbol.Name.Equals(DiagnosticWellKnownNames.ReportDiagnosticName, StringComparison.OrdinalIgnoreCase) || 233method.Name.Equals(nameof(Diagnostic.Create), StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
140var index = symbolName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.AnalyzerUtilities (23)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
140var index = symbolName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (2)
254(targetMethod.Name.StartsWith("create", StringComparison.OrdinalIgnoreCase) || 255targetMethod.Name.StartsWith("open", StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (1)
127(attr.AttributeClass.Name.Equals("ValidatedNotNullAttribute", StringComparison.OrdinalIgnoreCase) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.BannedApiAnalyzers (21)
RestrictedInternalsVisibleToAnalyzer.cs (1)
154!string.Equals(assemblyName, compilation.Assembly.Name, StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
140var index = symbolName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.CodeStyle (20)
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
155if (RoslynString.IsNullOrWhiteSpace(expectedNamespace) || expectedNamespace.Equals(currentNamespace, StringComparison.OrdinalIgnoreCase))
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
375if (trimmedPart.StartsWith(categoryPrefix, StringComparison.OrdinalIgnoreCase))
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
473static (field, property) => field.Name.EndsWith(property.Name, StringComparison.OrdinalIgnoreCase),
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
263: string.Equals(ctorParameter.Name, parameterName, StringComparison.OrdinalIgnoreCase);
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
274where m.Name.Equals(memberName, StringComparison.OrdinalIgnoreCase)
Microsoft.CodeAnalysis.CSharp (9)
CommandLine\CSharpCommandLineParser.cs (1)
2108if (part.Span.Equals(nullableSpan, StringComparison.OrdinalIgnoreCase))
Emitter\Model\PEModuleBuilder.cs (1)
180!string.Equals(refIdentity.CultureName, asmIdentity.CultureName, StringComparison.OrdinalIgnoreCase))
Parser\Lexer.cs (1)
1615Debug.Assert(string.Equals(info.Text.Substring(0, objectAddressOffset + 1), "@0x", StringComparison.OrdinalIgnoreCase));
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
543if (moduleId.EndsWith(extension, StringComparison.OrdinalIgnoreCase))
Symbols\Metadata\PE\MetadataDecoder.cs (1)
159if (string.Equals(m.Name, moduleName, StringComparison.OrdinalIgnoreCase))
Symbols\MissingModuleSymbol.cs (1)
242return (object)other != null && assembly.Equals(other.assembly, compareKind) && string.Equals(_name, other._name, StringComparison.OrdinalIgnoreCase);
Symbols\Source\SourceAssemblySymbol.cs (3)
801else if (String.Compare(_compilation.Options.CryptoKeyContainer, assemblyKeyContainerAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0) 848else if (String.Compare(_compilation.Options.CryptoKeyFile, assemblyKeyFileAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0) 980if (!string.Equals(fileName, moduleName, StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
240if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
397comparisonResult = string.Compare(x.ValueText, y.ValueText, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (2)
143if (numericText.StartsWith("0x", StringComparison.OrdinalIgnoreCase)) 149else if (numericText.StartsWith("0b", StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
2903if (currentUICultureName.Length == 0 || currentUICultureName.StartsWith("en", StringComparison.OrdinalIgnoreCase)) 14415Assert.EndsWith("EMBED.EXE", writtenText[0], StringComparison.OrdinalIgnoreCase); 14416Assert.EndsWith("GENERATEDSOURCE.CS", writtenText[1], StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\UnknownSourcePasteProcessor.cs (2)
197if (fullChangeLineText.StartsWith(commonIndentationPrefix, StringComparison.OrdinalIgnoreCase)) 293if (commonIndentationPrefix != null && lineLeadingWhitespace.StartsWith(commonIndentationPrefix, StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (2)
155=> string.Equals(shortcut, SnippetShortcut, StringComparison.OrdinalIgnoreCase) || 156string.Equals(shortcut, PreProcessorSnippetShortcut, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.CSharp.Features (1)
ChangeSignature\CSharpChangeSignatureService.cs (1)
831var nameAttribute = paramNode.StartTag.Attributes.FirstOrDefault(a => a.Name.ToString().Equals("name", StringComparison.OrdinalIgnoreCase));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Compilation\SymbolSearchTests.cs (9)
157Test(compilation, n => n.IndexOf("my", StringComparison.OrdinalIgnoreCase) >= 0, includeNamespace: false, includeType: false, includeMember: true, count: 4); 158Test(compilation, n => n.IndexOf("my", StringComparison.OrdinalIgnoreCase) >= 0, includeNamespace: false, includeType: true, includeMember: false, count: 4); 159Test(compilation, n => n.IndexOf("my", StringComparison.OrdinalIgnoreCase) >= 0, includeNamespace: false, includeType: true, includeMember: true, count: 8); 160Test(compilation, n => n.IndexOf("my", StringComparison.OrdinalIgnoreCase) >= 0, includeNamespace: true, includeType: false, includeMember: false, count: 1); 161Test(compilation, n => n.IndexOf("my", StringComparison.OrdinalIgnoreCase) >= 0, includeNamespace: true, includeType: false, includeMember: true, count: 5); 162Test(compilation, n => n.IndexOf("my", StringComparison.OrdinalIgnoreCase) >= 0, includeNamespace: true, includeType: true, includeMember: false, count: 5); 163Test(compilation, n => n.IndexOf("my", StringComparison.OrdinalIgnoreCase) >= 0, includeNamespace: true, includeType: true, includeMember: true, count: 9); 165Test(compilation, n => n.IndexOf("enum", StringComparison.OrdinalIgnoreCase) >= 0, includeNamespace: true, includeType: true, includeMember: true, count: 2); 190Test(compilation, n => n.IndexOf("M", StringComparison.OrdinalIgnoreCase) >= 0, includeNamespace: false, includeType: false, includeMember: true, count: 3);
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Classification\Worker.cs (1)
133token.Text.EndsWith("u8", StringComparison.OrdinalIgnoreCase))
Rename\CSharpRenameRewriterLanguageService.cs (5)
954string.Compare(renameSymbol.Name, "Current", StringComparison.OrdinalIgnoreCase) == 0; 959(string.Compare(renameSymbol.Name, WellKnownMemberNames.MoveNextMethodName, StringComparison.OrdinalIgnoreCase) == 0 || 960string.Compare(renameSymbol.Name, WellKnownMemberNames.GetEnumeratorMethodName, StringComparison.OrdinalIgnoreCase) == 0 || 961string.Compare(renameSymbol.Name, WellKnownMemberNames.GetAwaiter, StringComparison.OrdinalIgnoreCase) == 0 || 962string.Compare(renameSymbol.Name, WellKnownMemberNames.DeconstructMethodName, StringComparison.OrdinalIgnoreCase) == 0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
240if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
397comparisonResult = string.Compare(x.ValueText, y.ValueText, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (2)
143if (numericText.StartsWith("0x", StringComparison.OrdinalIgnoreCase)) 149else if (numericText.StartsWith("0b", StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.EditorFeatures (5)
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (2)
182string.Equals(key, optionName, StringComparison.OrdinalIgnoreCase)) 267return !string.IsNullOrWhiteSpace(currentLineText) && !currentLineText.Trim().StartsWith("#", StringComparison.OrdinalIgnoreCase);
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
424!string.Equals(_filterText, typedChar.ToString(), StringComparison.OrdinalIgnoreCase) &&
Peek\PeekableItemSource.cs (1)
47if (!string.Equals(session.RelationshipName, PredefinedPeekRelationships.Definitions.Name, StringComparison.OrdinalIgnoreCase))
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (1)
267var comparison = isRenamingDeclaration || syntaxFactsService.IsCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\TestWorkspaceFixture.cs (1)
37if (markup.TrimStart().StartsWith("<Workspace>", StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (7)
MetadataUtilities.cs (5)
58if (hasNoAssemblyRefs || metadata.Name.Equals("System.Private.CoreLib.dll", StringComparison.OrdinalIgnoreCase)) 440return moduleName.StartsWith("windows.", StringComparison.OrdinalIgnoreCase) && 441moduleName.EndsWith(".winmd", StringComparison.OrdinalIgnoreCase) && 442!moduleName.Equals("windows.winmd", StringComparison.OrdinalIgnoreCase); 447return assemblyName.Equals("windows", StringComparison.OrdinalIgnoreCase);
PseudoVariableUtilities.cs (2)
44Debug.Assert(name.StartsWith("$ReturnValue", StringComparison.OrdinalIgnoreCase)); 67alias.FullName.StartsWith("$ReturnValue", StringComparison.OrdinalIgnoreCase));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
FunctionResolverBase.cs (1)
158return moduleName.Equals(name, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrValue.cs (1)
706if (string.Equals(module.Name, moduleName, StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.Extensions.Package (3)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
LanguageServices\FSharpVisualStudioWorkspaceExtensions.cs (1)
24var projects = workspace.CurrentSolution.Projects.Where(p => string.Equals(p.OutputFilePath, filePath, StringComparison.OrdinalIgnoreCase)).ToList();
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
RazorAnalyzerAssemblyRedirector.cs (1)
20if (fullPath.IndexOf("razor", StringComparison.OrdinalIgnoreCase) >= 0)
RazorAnalyzerAssemblyResolver.cs (1)
87if (!Path.GetFileName(directory.AsSpan().TrimEnd(Path.DirectorySeparatorChar)).Equals(ServiceHubCoreFolderName, StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.Features (37)
AddImport\PackageSourceHelper.cs (2)
47return uri.Host.EndsWith($".{NugetOrg}", StringComparison.OrdinalIgnoreCase) 48|| uri.Host.Equals(NugetOrg, StringComparison.OrdinalIgnoreCase);
AddMissingReference\AddMissingReferenceCodeAction.cs (1)
54string.Equals(missingAssemblyIdentity.Name, candidateProject.AssemblyName, StringComparison.OrdinalIgnoreCase))
CodeFixes\Configuration\ConfigurationUpdater.cs (4)
472key.Equals("is_global", StringComparison.OrdinalIgnoreCase) && 473value.Trim().Equals("true", StringComparison.OrdinalIgnoreCase) && 528foundMatch = string.Equals(diagId, _diagnostic.Id, StringComparison.OrdinalIgnoreCase); 546foundMatch = string.Equals(category, _categoryToBulkConfigure, StringComparison.OrdinalIgnoreCase);
CodeLens\CodeLensFindReferenceProgress.cs (1)
81StringComparison.OrdinalIgnoreCase))
CodeLens\LocationComparer.cs (1)
22x.SourceTree.FilePath.Equals(y.SourceTree.FilePath, StringComparison.OrdinalIgnoreCase);
Completion\CompletionHelper.cs (1)
174var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Completion\Providers\AbstractContextVariableArgumentProvider.cs (3)
70&& !string.Equals(candidate.Name, context.Parameter.Name, StringComparison.OrdinalIgnoreCase)) 158if (string.Equals(bestSymbol.Name, context.Parameter.Name, StringComparison.OrdinalIgnoreCase)) 159return string.Equals(symbol.Name, context.Parameter.Name, StringComparison.OrdinalIgnoreCase);
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (2)
65: prefix.Equals(hexPrefix, StringComparison.OrdinalIgnoreCase) ? NumericKind.Hexadecimal 66: prefix.Equals(binaryPrefix, StringComparison.OrdinalIgnoreCase) ? NumericKind.Binary
EditAndContinue\EditSession.cs (1)
1518EditAndContinueMethodDebugInfoReader.IgnoreCaseWhenComparingDocumentNames ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal));
EditAndContinue\Utilities\Extensions.cs (4)
121LanguageNames.CSharp => filePath.EndsWith(".g.i.cs", StringComparison.OrdinalIgnoreCase), 122LanguageNames.VisualBasic => filePath.EndsWith(".g.i.vb", StringComparison.OrdinalIgnoreCase), 127=> filePath.EndsWith(".razor.g.cs", StringComparison.OrdinalIgnoreCase) || 128filePath.EndsWith(".cshtml.g.cs", StringComparison.OrdinalIgnoreCase);
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
594where m.Name.Equals(expectedFieldName, StringComparison.OrdinalIgnoreCase)
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (2)
276var firstDocument = navigateProject.Documents.First(d => d.FilePath?.Equals(firstDocumentFilePath, StringComparison.OrdinalIgnoreCase) ?? false); 283var sourceDescription = sourceFileInfos.FirstOrDefault(sfi => sfi!.FilePath?.Equals(navigateDocument.FilePath, StringComparison.OrdinalIgnoreCase) ?? false)?.SourceDescription ?? FeaturesResources.from_metadata;
PdbSourceDocument\SourceLinkMap.cs (2)
192if (path.StartsWith(file.Path, StringComparison.OrdinalIgnoreCase)) 199else if (string.Equals(path, file.Path, StringComparison.OrdinalIgnoreCase))
Rename\SymbolicRenameInfo.cs (1)
173triggerToken.ToString().Equals("New", StringComparison.OrdinalIgnoreCase))
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
94=> text.StartsWith(prefix, StringComparison.OrdinalIgnoreCase) && text.Length > prefix.Length && !char.IsLower(text[prefix.Length]); 102.Where(m => setMethodName.Equals(m.Name, StringComparison.OrdinalIgnoreCase))
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
155if (RoslynString.IsNullOrWhiteSpace(expectedNamespace) || expectedNamespace.Equals(currentNamespace, StringComparison.OrdinalIgnoreCase))
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
375if (trimmedPart.StartsWith(categoryPrefix, StringComparison.OrdinalIgnoreCase))
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
473static (field, property) => field.Name.EndsWith(property.Name, StringComparison.OrdinalIgnoreCase),
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
263: string.Equals(ctorParameter.Name, parameterName, StringComparison.OrdinalIgnoreCase);
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
274where m.Name.Equals(memberName, StringComparison.OrdinalIgnoreCase)
StackTraceExplorer\StackTraceExplorerService.cs (1)
109if (name.Equals(documentName, StringComparison.OrdinalIgnoreCase))
TaskList\AbstractTaskListService.cs (1)
96length: token.Length, comparisonType: StringComparison.OrdinalIgnoreCase) != 0)
UnusedReferences\UnusedReferencesRemover.cs (1)
32.Where(project => projectFilePath.Equals(project.FilePath, StringComparison.OrdinalIgnoreCase));
Workspace\CompileTimeSolutionProvider.cs (1)
88=> documentState.FilePath != null && documentState.FilePath.EndsWith(RazorEncConfigFileName, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
Microsoft.CodeAnalysis.LanguageServer (3)
DotnetCliHelper.cs (1)
47if (line.StartsWith("Base Path", StringComparison.OrdinalIgnoreCase))
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
69private static readonly StringComparison s_stringComparison = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Testing\TestRunner.TestRunHandler.cs (1)
197return messages.WhereAsArray(static (msg, category) => msg.Category.Equals(category, StringComparison.OrdinalIgnoreCase), requiredCategory);
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
144var matchingSnippetInfo = snippetInfo.First(s => wordText.Equals(s.Shortcut, StringComparison.OrdinalIgnoreCase));
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (7)
69var matchingSnippet = snippets.Value.Single(s => string.Equals(s.Title, snippetTitle, StringComparison.OrdinalIgnoreCase)); 79if (codeSnippetsElement.Name.LocalName.Equals("CodeSnippets", StringComparison.OrdinalIgnoreCase)) 81return codeSnippetsElement.Elements().WhereAsArray(e => e.Name.LocalName.Equals("CodeSnippet", StringComparison.OrdinalIgnoreCase)); 83else if (codeSnippetsElement.Name.LocalName.Equals("CodeSnippet", StringComparison.OrdinalIgnoreCase)) 93return element.Elements().Where(e => e.Name.LocalName.Equals(localName, StringComparison.OrdinalIgnoreCase)); 98return element?.Elements().FirstOrDefault(e => e.Name.LocalName.Equals(localName, StringComparison.OrdinalIgnoreCase)); 144var delimiterAttribute = code.Attributes().FirstOrDefault(a => a.Name.LocalName.Equals("Delimiter", StringComparison.OrdinalIgnoreCase));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
CodeActions\RunCodeActionsTests.cs (1)
49var documentForB = testLspServer.TestWorkspace.CurrentSolution.Projects.Single().Documents.Single(doc => doc.Name.Equals("B.cs", StringComparison.OrdinalIgnoreCase));
Completion\CompletionTests.cs (2)
1003Assert.Contains("ta", results.Items.First().Label, StringComparison.OrdinalIgnoreCase); 1288Assert.Contains("ta", results.Items.First().Label, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (20)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
140var index = symbolName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.PublicApiAnalyzers (20)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
140var index = symbolName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
DeclarePublicApiFix.cs (1)
124TextDocument? additionalDocument = project.AdditionalDocuments.FirstOrDefault(doc => string.Equals(doc.Name, name, StringComparison.OrdinalIgnoreCase));
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (1)
DeclarePublicAPIAnalyzerTestsBase.cs (1)
288if (!editorconfigText.EndsWith("true", StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.Remote.Workspaces (3)
BrokeredServiceDescriptors.cs (1)
26name => CommonMethodNameTransforms.CamelCase(name.EndsWith(AsyncSuffix, StringComparison.OrdinalIgnoreCase) ? name.Substring(0, name.Length - AsyncSuffix.Length) : name);
VisualStudioMefHostServices.cs (2)
85=> string.Compare(ExtensionTypeName, other.ExtensionTypeName, StringComparison.OrdinalIgnoreCase) == 0 && 86string.Compare(MetadataTypeName, other.MetadataTypeName, StringComparison.OrdinalIgnoreCase) == 0;
Microsoft.CodeAnalysis.ResxSourceGenerator (21)
AbstractResxGenerator.cs (1)
38var resourceFiles = context.AdditionalTextsProvider.Where(static file => file.Path.EndsWith(".resx", StringComparison.OrdinalIgnoreCase));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
140var index = symbolName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
148return normalizedPath.StartsWith(directory, StringComparison.OrdinalIgnoreCase);
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
217if (fileName.EndsWith(".ni", StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
GlobalAssemblyCacheTests.cs (1)
115Assert.True(gacLocationsUpper.Any(gac => location.StartsWith(gac, StringComparison.OrdinalIgnoreCase)), "Path within some GAC root");
Microsoft.CodeAnalysis.Test.Utilities (7)
Assert\ConditionalFactAttribute.cs (2)
250!CultureInfo.CurrentUICulture.Name.StartsWith("en", StringComparison.OrdinalIgnoreCase) || 251!CultureInfo.CurrentCulture.Name.StartsWith("en", StringComparison.OrdinalIgnoreCase);
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
1775return fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 1776fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase);
FX\EnsureEnglishUICulture.cs (1)
20if (currentUICultureName.Length == 0 || currentUICultureName.StartsWith("en", StringComparison.OrdinalIgnoreCase))
Platform\CoreClr\TestExecutionLoadContext.cs (1)
40var comparison = StringComparison.OrdinalIgnoreCase;
Platform\Custom\SigningTestHelpers.cs (1)
90StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.UnitTests (5)
CachingLookupTests.cs (1)
65where string.Equals(GetKey(n, ignoreCase), key, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)
FileSystem\PathUtilitiesTests.cs (4)
298Assert.True(PathUtilities.IsSameDirectoryOrChildOf(@"C:\a\B\C", @"C:\A\B", StringComparison.OrdinalIgnoreCase)); 299Assert.True(PathUtilities.IsSameDirectoryOrChildOf(@"C:\A\b\C", @"C:\A\B", StringComparison.OrdinalIgnoreCase)); 308Assert.True(PathUtilities.IsSameDirectoryOrChildOf(@"/a/B/C", @"/A/B", StringComparison.OrdinalIgnoreCase)); 309Assert.True(PathUtilities.IsSameDirectoryOrChildOf(@"/A/b/C", @"/A/B", StringComparison.OrdinalIgnoreCase));
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Attributes\SourceAttributeData.vb (1)
304Dim options As StringComparison = If(ignoreCase, StringComparison.OrdinalIgnoreCase, StringComparison.Ordinal)
Symbols\MissingModuleSymbol.vb (1)
214Return other IsNot Nothing AndAlso m_Assembly.Equals(other.m_Assembly) AndAlso String.Equals(_name, other._name, StringComparison.OrdinalIgnoreCase)
Microsoft.CodeAnalysis.Workspaces (35)
Diagnostics\Extensions.cs (3)
101fileNameSpan.Equals("Microsoft.CodeAnalysis.Features.dll".AsSpan(), StringComparison.OrdinalIgnoreCase) || 102fileNameSpan.Equals("Microsoft.CodeAnalysis.CSharp.Features.dll".AsSpan(), StringComparison.OrdinalIgnoreCase) || 103fileNameSpan.Equals("Microsoft.CodeAnalysis.VisualBasic.Features.dll".AsSpan(), StringComparison.OrdinalIgnoreCase);
Rename\ConflictEngine\MutableConflictResolution.cs (1)
111if (newName.Equals(document.Name, StringComparison.OrdinalIgnoreCase))
Rename\IRenameRewriterLanguageService.cs (1)
142param => string.Compare(param.Name, newPropertyName, StringComparison.OrdinalIgnoreCase) == 0);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
68string.Compare(TrimNameToAfterLastDot(referencedSymbol.Name), TrimNameToAfterLastDot(originalSymbol.Name), StringComparison.OrdinalIgnoreCase) == 0 &&
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (4)
208s_enabled = string.Equals(enabled, "1", StringComparison.OrdinalIgnoreCase) || string.Equals(enabled, "True", StringComparison.OrdinalIgnoreCase); 229_enableDiagnosticTokens = string.Equals(enabled, "1", StringComparison.OrdinalIgnoreCase) || string.Equals(enabled, "True", StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
67internal static readonly (StringComparer Comparer, StringComparison Comparison) SimpleNameComparer = (StringComparer.OrdinalIgnoreCase, StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\DiagnosticAnalyzer\ProgramFilesAnalyzerPathResolver.cs (1)
39=> analyzerPath.StartsWith(DotNetPath, StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Utilities\WorkspacePathUtilities.cs (1)
20=> GetTypeNameFromDocumentName(document)?.Equals(typeName, StringComparison.OrdinalIgnoreCase) == true;
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
929if (!provider.Metadata.Extensions.Any(e => string.Equals(e, extension, StringComparison.OrdinalIgnoreCase))) 1195private static bool DirectoryNameEndsWith(string fullPath, string ending) => fullPath.LastIndexOf(ending, StringComparison.OrdinalIgnoreCase) + ending.Length - 1 ==
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
568&& string.Equals(peReference.FilePath, outputPath, StringComparison.OrdinalIgnoreCase)) 659if (string.Equals(convertedReference.path, outputPath, StringComparison.OrdinalIgnoreCase) && 891if (fullFilePath.Equals(getFilePath(oldReference), StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.Workspaces.Desktop (2)
Workspace\Host\Mef\MefV1HostServices.cs (2)
125return string.Compare(this.ExtensionTypeName, other.ExtensionTypeName, StringComparison.OrdinalIgnoreCase) == 0 126&& string.Compare(this.MetadataTypeName, other.MetadataTypeName, StringComparison.OrdinalIgnoreCase) == 0;
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\MSBuildProjectLoader.Worker.AnalyzerReferencePathComparer.cs (1)
22=> string.Equals(x?.FullPath, y?.FullPath, StringComparison.OrdinalIgnoreCase);
MSBuild\SolutionFileReader.SolutionFilterReader.cs (1)
20return Path.GetExtension(filename).Equals(".slnf", StringComparison.OrdinalIgnoreCase);
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
159s_monoMSBuildDirectory = versionDirectory.EnumerateDirectories().SingleOrDefault(d => string.Equals(d.Name, "bin", StringComparison.OrdinalIgnoreCase))?.FullName;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (23)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (2)
231if (prefer32bit && (RoslynString.IsNullOrWhiteSpace(platform) || string.Equals("anycpu", platform, StringComparison.OrdinalIgnoreCase))) 259if (string.Equals(alias, "global", StringComparison.OrdinalIgnoreCase))
MSBuild\ProjectFile\Conversions.cs (2)
16&& (string.Equals(bool.TrueString, value, StringComparison.OrdinalIgnoreCase) || 17string.Equals("On", value, StringComparison.OrdinalIgnoreCase));
MSBuild\ProjectFile\Extensions.cs (1)
72!string.Equals(referenceOutputAssemblyText, bool.FalseString, StringComparison.OrdinalIgnoreCase);
MSBuild\ProjectFile\ProjectFile.cs (6)
343if (normalizedPath.StartsWith(projectDirectory, StringComparison.OrdinalIgnoreCase)) 438item = references.FirstOrDefault(it => string.Compare(it.EvaluatedInclude, shortAssemblyName, StringComparison.OrdinalIgnoreCase) == 0); 443item = references.FirstOrDefault(it => string.Compare(it.EvaluatedInclude, fullAssemblyName, StringComparison.OrdinalIgnoreCase) == 0); 459var items = references.Where(it => it.EvaluatedInclude.StartsWith(partialName, StringComparison.OrdinalIgnoreCase)).ToList(); 469=> item.Metadata.FirstOrDefault(m => string.Equals(m.Name, MetadataNames.HintPath, StringComparison.OrdinalIgnoreCase))?.EvaluatedValue ?? string.Empty; 523item ??= references.First(it => string.Compare(projectName, it.GetMetadataValue(MetadataNames.Name), StringComparison.OrdinalIgnoreCase) == 0);
MSBuild\VisualBasic\VisualBasicCommandLineArgumentReader.cs (5)
88if (string.Equals("binary", optionCompare, StringComparison.OrdinalIgnoreCase)) 92else if (string.Equals("text", optionCompare, StringComparison.OrdinalIgnoreCase)) 110if (string.Equals("default", vbRuntime, StringComparison.OrdinalIgnoreCase)) 114else if (string.Equals("embed", vbRuntime, StringComparison.OrdinalIgnoreCase)) 118else if (string.Equals("none", vbRuntime, StringComparison.OrdinalIgnoreCase))
Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
159s_monoMSBuildDirectory = versionDirectory.EnumerateDirectories().SingleOrDefault(d => string.Equals(d.Name, "bin", StringComparison.OrdinalIgnoreCase))?.FullName;
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
MSBuildWorkspaceTestBase.cs (1)
147var solutionFileName = files.First(t => t.fileName.EndsWith(".sln", StringComparison.OrdinalIgnoreCase)).fileName;
VisualStudioMSBuildWorkspaceTests.cs (3)
779Assert.DoesNotContain(documents, d => d.Name.EndsWith(".xaml", StringComparison.OrdinalIgnoreCase)); 2315Assert.True(analyzerReference.FullPath.EndsWith("CSharpProject.dll", StringComparison.OrdinalIgnoreCase)); 2467if (fileName.EndsWith("proj", StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
MEF\TestComposition.cs (3)
199name.EndsWith(".Tests", StringComparison.OrdinalIgnoreCase) || 200name.EndsWith(".UnitTests", StringComparison.OrdinalIgnoreCase) || 201name.IndexOf("Test.Utilities", StringComparison.OrdinalIgnoreCase) >= 0;
WorkspaceExtensions.cs (1)
55=> solution.Projects.Where(p => string.Compare(p.Name, name, StringComparison.OrdinalIgnoreCase) == 0);
Microsoft.Data.Analysis (2)
DataFrame.cs (1)
555else if (stringValue.Equals("null", StringComparison.OrdinalIgnoreCase))
DataFrame.IO.cs (1)
30if (string.Equals(columnValue, "null", StringComparison.OrdinalIgnoreCase))
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
1657if (string.IsNullOrEmpty(item) || string.Equals(item, "null", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Arcade.Sdk (3)
src\DownloadFile.cs (1)
190httpResponse.ReasonPhrase.StartsWith("The requested URI does not represent any resource on the server.", StringComparison.OrdinalIgnoreCase))
src\InstallDotNetCore.cs (2)
102if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && string.Equals("x86", architecture, StringComparison.OrdinalIgnoreCase)) 193else if (!string.IsNullOrWhiteSpace(Platform) && !string.Equals(Platform, "AnyCpu", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
282projectFile.StartsWith(_solutionDirectory + @"\", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Manifest (16)
ArtifactModel.cs (1)
118StringComparison.OrdinalIgnoreCase) == false)
BuildModelFactory.cs (14)
87Where(i => !string.Equals(i.GetMetadata("ExcludeFromManifest"), "true", StringComparison.OrdinalIgnoreCase)); 110.Where(i => i.GetMetadata(ArtifactKindMetadata).Equals(nameof(ArtifactKind.Blob), StringComparison.OrdinalIgnoreCase)) 115.Where(i => i.GetMetadata(ArtifactKindMetadata).Equals(nameof(ArtifactKind.Package), StringComparison.OrdinalIgnoreCase)) 120.Where(i => i.GetMetadata(ArtifactKindMetadata).Equals(nameof(ArtifactKind.Pdb), StringComparison.OrdinalIgnoreCase)) 273if (!string.Equals(refIdentity.AzureDevOpsAccount, identity.AzureDevOpsAccount, StringComparison.OrdinalIgnoreCase)) 277if (!string.Equals(refIdentity.AzureDevOpsBranch, identity.AzureDevOpsBranch, StringComparison.OrdinalIgnoreCase)) 289if (!string.Equals(refIdentity.AzureDevOpsBuildNumber, identity.AzureDevOpsBuildNumber, StringComparison.OrdinalIgnoreCase)) 293if (!string.Equals(refIdentity.AzureDevOpsProject, identity.AzureDevOpsProject, StringComparison.OrdinalIgnoreCase)) 297if (!string.Equals(refIdentity.AzureDevOpsRepository, identity.AzureDevOpsRepository, StringComparison.OrdinalIgnoreCase)) 301if (!string.Equals(refIdentity.Branch, identity.Branch, StringComparison.OrdinalIgnoreCase)) 305if (!string.Equals(refIdentity.BuildId, identity.BuildId, StringComparison.OrdinalIgnoreCase)) 309if (!string.Equals(refIdentity.InitialAssetsLocation, identity.InitialAssetsLocation, StringComparison.OrdinalIgnoreCase)) 321if (!string.Equals(refIdentity.ProductVersion, identity.ProductVersion, StringComparison.OrdinalIgnoreCase)) 329if (!string.Equals(refIdentity.VersionStamp, identity.VersionStamp, StringComparison.OrdinalIgnoreCase))
VersionIdentifier.cs (1)
167(prevDelimiterCharacter != '-' || !_knownTags.Any(tag => nextSegment.StartsWith(tag, StringComparison.OrdinalIgnoreCase))))
Microsoft.DotNet.Build.Manifest.Tests (1)
BuildModelFactoryTests.cs (1)
787_buildEngine.BuildErrorEvents.Should().Contain(e => e.Message.Contains($"Build identity properties mismatch in manifest '': {propertyName}: expected '{valueA}', found '{valueB}'", StringComparison.OrdinalIgnoreCase));
Microsoft.DotNet.Build.Tasks.Feed (26)
src\AzureDevOpsNugetFeedAssetPublisher.cs (1)
68if (!file.EndsWith(GeneralUtils.PackageSuffix, StringComparison.OrdinalIgnoreCase))
src\AzureStorageExtensions.cs (1)
32return blobMD5.Equals(localMD5, StringComparison.OrdinalIgnoreCase);
src\common\AzureStorageUtils.cs (1)
273if (!localMD5.Equals(md5.Single(), StringComparison.OrdinalIgnoreCase))
src\common\GeneralUtils.cs (3)
231if (assetId.EndsWith(SymbolPackageSuffix, StringComparison.OrdinalIgnoreCase)) 251return name.EndsWith(SymbolPackageSuffix, StringComparison.OrdinalIgnoreCase) || 252name.EndsWith(SnupkgPackageSuffix, StringComparison.OrdinalIgnoreCase);
src\common\LatestLinksManager.cs (1)
105if (!feedBaseUrl.EndsWith("/", StringComparison.OrdinalIgnoreCase))
src\model\SetupTargetFeedConfigV3.cs (2)
263if (feed.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)) 276if (feed.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
src\model\SetupTargetFeedConfigV4.cs (2)
208if (feed.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)) 221if (feed.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
src\model\TargetFeedConfig.cs (1)
100((TargetURL is null && other.TargetURL is null) || TargetURL.Equals(other.TargetURL, StringComparison.OrdinalIgnoreCase)) &&
src\ProductionChannelValidator.cs (9)
145return repositoryUrl.Contains("dev.azure.com", StringComparison.OrdinalIgnoreCase) || 146repositoryUrl.Contains("visualstudio.com", StringComparison.OrdinalIgnoreCase); 269if (branchName.StartsWith("refs/heads/", StringComparison.OrdinalIgnoreCase)) 284if (classification.Classification.Equals("production", StringComparison.OrdinalIgnoreCase)) 302if (pattern.Equals(branchName, StringComparison.OrdinalIgnoreCase)) 309return branchName.StartsWith(prefix + "/", StringComparison.OrdinalIgnoreCase); 313if (pattern.Equals("~default", StringComparison.OrdinalIgnoreCase)) 317return branchName.Equals("main", StringComparison.OrdinalIgnoreCase) || 318branchName.Equals("master", StringComparison.OrdinalIgnoreCase);
src\PublishArtifactsInManifestBase.cs (2)
458else if ((!version.IsPrerelease || version.ReleaseLabels.Any(label => label.Contains("final", StringComparison.OrdinalIgnoreCase))) 1196if (!blobAsset.Attributes.TryGetValue("Category", out categories) || string.Equals(categories, "NONE", StringComparison.OrdinalIgnoreCase))
src\PublishBuildToMaestro.cs (3)
543if (repoAddr.Host.Equals(gitHubHost, StringComparison.OrdinalIgnoreCase)) 636if (repoUrl.Contains("DevDiv", StringComparison.OrdinalIgnoreCase) 637&& repoName.EndsWith("-Trusted", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Tasks.Installers (15)
src\CreateWixBuildWixpack.cs (14)
733int ifStart = input.IndexOf("<?if ", pos, StringComparison.OrdinalIgnoreCase); 734int ifdefStart = input.IndexOf("<?ifdef ", pos, StringComparison.OrdinalIgnoreCase); 735int ifndefStart = input.IndexOf("<?ifndef ", pos, StringComparison.OrdinalIgnoreCase); 768int ifEnd = input.IndexOf("?>", nextBlockStart, StringComparison.OrdinalIgnoreCase); 781int endifStart = input.IndexOf("<?endif?>", searchPos, StringComparison.OrdinalIgnoreCase); 793int elseifStart = input.IndexOf("<?elseif", nextTagStart, StringComparison.OrdinalIgnoreCase); 794int elseStart = input.IndexOf("<?else?>", nextTagStart, StringComparison.OrdinalIgnoreCase); 802int elseifEnd = input.IndexOf("?>", elseifStart, StringComparison.OrdinalIgnoreCase); 863int tagEnd = input.IndexOf("?>", nextBlockStart, StringComparison.OrdinalIgnoreCase); 868if (variableName.StartsWith("$(var.", StringComparison.OrdinalIgnoreCase) && variableName.EndsWith(")")) 886int endifStart = input.IndexOf("<?endif?>", tagEnd + 2, StringComparison.OrdinalIgnoreCase); 961if (varName.StartsWith("var.", StringComparison.OrdinalIgnoreCase)) 966else if (varName.StartsWith("sys.", StringComparison.OrdinalIgnoreCase)) 985return string.Equals(actualValue, value, StringComparison.OrdinalIgnoreCase);
src\StabilizeWixFileId.cs (1)
73?.EndsWith(file.ItemSpec, StringComparison.OrdinalIgnoreCase) == true)
Microsoft.DotNet.Build.Tasks.Packaging (15)
CreateTrimDependencyGroups.cs (1)
165if (!runtimeAssets.Any(r => Path.GetFileName(r).Equals(fileName, StringComparison.OrdinalIgnoreCase)))
GenerateNuSpec.cs (1)
257where !f.GetMetadata(Metadata.FileTarget).StartsWith("$none$", StringComparison.OrdinalIgnoreCase)
HarvestPackage.cs (5)
584if (parts[0].Equals("lib", StringComparison.OrdinalIgnoreCase) || 585parts[0].Equals("ref", StringComparison.OrdinalIgnoreCase)) 591parts[0].Equals("runtimes", StringComparison.OrdinalIgnoreCase) && 592parts[2].Equals("lib", StringComparison.OrdinalIgnoreCase)) 610return path.StartsWith("ref", StringComparison.OrdinalIgnoreCase);
PackageIndex.cs (1)
709var version = versionString.Equals(AnyVersion, StringComparison.OrdinalIgnoreCase) ? VersionUtility.MaxVersion : new Version(versionString);
PackageItem.cs (3)
31IsDll = Path.GetExtension(SourcePath).Equals(".dll", StringComparison.OrdinalIgnoreCase); 33IsRef = TargetPath.StartsWith("ref/", StringComparison.OrdinalIgnoreCase); 49if (!Path.GetExtension(TargetPath).Equals(Path.GetExtension(sourceFile), StringComparison.OrdinalIgnoreCase) ||
PromoteDependencies.cs (1)
106IsReference = item.GetMetadata("TargetPath").StartsWith("ref/", System.StringComparison.OrdinalIgnoreCase);
UpdatePackageIndex.cs (1)
244var dlls = reader.GetFiles().Where(f => Path.GetExtension(f).Equals(".dll", StringComparison.OrdinalIgnoreCase));
ValidatePackage.cs (2)
344Path.GetFileName(i.PackagePath).Equals(fileName, StringComparison.OrdinalIgnoreCase) && 450return !String.IsNullOrWhiteSpace(path) && Path.GetExtension(path).Equals(".dll", StringComparison.OrdinalIgnoreCase);
Microsoft.DotNet.Build.Tasks.Packaging.Tests (4)
CreateTrimDependencyGroupsTests.cs (4)
231f.ItemSpec.Equals("System.Collections.Immutable", StringComparison.OrdinalIgnoreCase)) 237f.ItemSpec.Equals("System.Collections.Immutable", StringComparison.OrdinalIgnoreCase)) 243f.ItemSpec.Equals("System.Collections.Immutable", StringComparison.OrdinalIgnoreCase)) 249f.ItemSpec.Equals("System.Collections.Immutable", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\IbcEntry.cs (1)
71=> path.StartsWith(prefix, StringComparison.OrdinalIgnoreCase) ? replacement + path.Substring(prefix.Length) : path;
Microsoft.DotNet.Build.Tasks.Workloads (2)
Extensions.cs (1)
26if (string.Equals(metadataName, name, StringComparison.OrdinalIgnoreCase))
Msi\MsiBase.wix.cs (1)
81(!string.IsNullOrWhiteSpace(Metadata.Authors) && (Metadata.Authors.IndexOf("Microsoft", StringComparison.OrdinalIgnoreCase) < 0)) ?
Microsoft.DotNet.CodeAnalysis (6)
Analyzers\MembersMustExistAnalyzer.cs (1)
48var additionalAnalyzerFiles = context.Options.AdditionalFiles.Where(af => af.Path.IndexOf(s_analyzerName, 0, StringComparison.OrdinalIgnoreCase) >= 0);
Analyzers\PinvokeAnalyzer.cs (5)
30_allowedPinvokeFile = obj.Options.AdditionalFiles.FirstOrDefault(f => Path.GetFileName(f.Path).IndexOf("PinvokeAnalyzer_", StringComparison.OrdinalIgnoreCase) >= 0); 31_exceptionFile = obj.Options.AdditionalFiles.FirstOrDefault(f => Path.GetFileName(f.Path).IndexOf("PinvokeAnalyzerExceptionList.analyzerdata", StringComparison.OrdinalIgnoreCase) >= 0); 113if (AllowedPinvokes[methodName].Equals(moduleName, StringComparison.OrdinalIgnoreCase)) 130return (ExceptionPinvokes.ContainsKey(methodName) && ExceptionPinvokes[methodName].Equals(moduleName, StringComparison.OrdinalIgnoreCase)); 142if (data.ModuleName.Equals("QCall", StringComparison.OrdinalIgnoreCase)) return;
Microsoft.DotNet.GenAPI (3)
GenAPITask.cs (3)
427if (langVersionValue.Equals("default", StringComparison.OrdinalIgnoreCase)) 431else if (langVersionValue.Equals("latest", StringComparison.OrdinalIgnoreCase)) 435else if (langVersionValue.Equals("preview", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Helix.JobSender (2)
JobDefinition.cs (2)
313if (string.Equals(reason, "PullRequest", StringComparison.OrdinalIgnoreCase)) 319if (string.Equals(teamProject, "internal", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Helix.Sdk (6)
FindDotNetCliPackage.cs (6)
285if (string.Equals(Channel, "lts", StringComparison.OrdinalIgnoreCase)) 289else if (string.Equals(Channel, "current", StringComparison.OrdinalIgnoreCase)) 298if (string.Equals(Version, "latest", StringComparison.OrdinalIgnoreCase)) 303if (string.Equals(PackageType, "sdk", StringComparison.OrdinalIgnoreCase)) 307else if (string.Equals(PackageType, "aspnetcore-runtime", StringComparison.OrdinalIgnoreCase)) 311else if (string.Equals(PackageType, "runtime", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetUtils.cs (1)
23return dirName == "/" && fileName.EndsWith(".nuspec", StringComparison.OrdinalIgnoreCase);
src\NuGetVersionUpdater.cs (1)
273if (string.Equals(name?.Value, "DotnetTool", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.RemoteExecutor (3)
RemoteExecutor.cs (3)
65if (!IOPath.GetFileName(HostRunner).Equals(hostName, StringComparison.OrdinalIgnoreCase)) 84else if (RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase)) 95Environment.Version.Major >= 5 || RuntimeInformation.FrameworkDescription.StartsWith(".NET Core", StringComparison.OrdinalIgnoreCase);
Microsoft.DotNet.SharedFramework.Sdk (5)
src\CreateFrameworkListFile.cs (2)
92.EndsWith(".resources.dll", StringComparison.OrdinalIgnoreCase) 96(f.Filename.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) || f.IsNative || f.IsPgoData))
src\ValidateFileVersions.cs (3)
25if (file.GetMetadata("IsSymbolFile").Equals("true", StringComparison.OrdinalIgnoreCase)) 76p.Key.EndsWith(".exe", StringComparison.OrdinalIgnoreCase) || 77p.Key.EndsWith(".dll", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.SignCheckLibrary (13)
Verification\AuthentiCode.cs (6)
198if (String.Equals(unsignedAttribute.Oid.Value, WinCrypt.szOID_RSA_counterSign, StringComparison.OrdinalIgnoreCase)) 204if (String.Equals(signedAttribute.Oid.Value, WinCrypt.szOID_RSA_signingTime, StringComparison.OrdinalIgnoreCase)) 222else if (String.Equals(unsignedAttribute.Oid.Value, WinCrypt.szOID_RFC3161_counterSign, StringComparison.OrdinalIgnoreCase)) 226else if (String.Equals(unsignedAttribute.Oid.Value, WinCrypt.szOID_NESTED_SIGNATURE, StringComparison.OrdinalIgnoreCase)) 236if (String.Equals(nestedUnsignedAttribute.Oid.Value, WinCrypt.szOID_RFC3161_counterSign, StringComparison.OrdinalIgnoreCase)) 258if (String.Equals(rfc3161Message.ContentInfo.ContentType.Value, WinCrypt.szOID_TIMESTAMP_TOKEN, StringComparison.OrdinalIgnoreCase))
Verification\Exclusions.cs (1)
197return String.Equals(pattern, value, StringComparison.OrdinalIgnoreCase);
Verification\Jar\JarIndividualEntry.cs (1)
74string digestAttributeKey = Attributes.Keys.FirstOrDefault(key => key.EndsWith("-Digest", StringComparison.OrdinalIgnoreCase));
Verification\Jar\JarManifestFileBase.cs (1)
95ZipArchiveEntry manifestArchiveEntry = archive.Entries.First(a => String.Equals(a.FullName, ManifestPath, StringComparison.OrdinalIgnoreCase));
Verification\Jar\JarUtils.cs (1)
66int digestIndex = attribute.IndexOf(suffix, StringComparison.OrdinalIgnoreCase);
Verification\SignatureVerificationManager.cs (3)
248if (zipArchive.Entries.Any(z => String.Equals(Path.GetExtension(z.FullName), "nuspec", StringComparison.OrdinalIgnoreCase))) 253else if (zipArchive.Entries.Any(z => String.Equals(Path.GetExtension(z.FullName), "vsixmanifest", StringComparison.OrdinalIgnoreCase))) 258else if (zipArchive.Entries.Any(z => String.Equals(z.FullName, "META-INF/MANIFEST.MF", StringComparison.OrdinalIgnoreCase)))
Microsoft.DotNet.SignTool (34)
src\BatchSignUtil.cs (2)
690private static bool IsVsixCertificate(string certificate) => certificate.StartsWith("Vsix", StringComparison.OrdinalIgnoreCase); 692private static bool IsLinuxSignCertificate(string certificate) => certificate.StartsWith("LinuxSign", StringComparison.OrdinalIgnoreCase);
src\Configuration.cs (6)
219var wixPack = _wixPacks.SingleOrDefault(w => w.Moniker.Equals(file.FileName, StringComparison.OrdinalIgnoreCase)); 327extension = _fileExtensionSignInfo.OrderByDescending(o => o.Key.Length).FirstOrDefault(f => file.FileName.EndsWith(f.Key, StringComparison.OrdinalIgnoreCase)).Key ?? extension; 478if (SignToolConstants.IgnoreFileCertificateSentinel.Equals(explicitCertificateName, StringComparison.OrdinalIgnoreCase)) 509if (signInfo.Certificate != null && signInfo.Certificate.Equals("BreakingSignatureChange", StringComparison.OrdinalIgnoreCase)) 655=> name.Equals("3PartyDual", StringComparison.OrdinalIgnoreCase) || 656name.Equals("3PartySHA2", StringComparison.OrdinalIgnoreCase);
src\ExplicitCertificateKey.cs (1)
51string.Equals(PublicKeyToken, other.PublicKeyToken, StringComparison.OrdinalIgnoreCase) &&
src\FileSignInfo.cs (18)
35=> Path.GetExtension(path).Equals(".vsix", StringComparison.OrdinalIgnoreCase); 38=> Path.GetExtension(path).Equals(".mpack", StringComparison.OrdinalIgnoreCase); 41=> Path.GetExtension(path).Equals(".nupkg", StringComparison.OrdinalIgnoreCase); 45=> Path.GetExtension(path).Equals(".pkg", StringComparison.OrdinalIgnoreCase); 49=> Path.GetExtension(path).Equals(".app", StringComparison.OrdinalIgnoreCase); 52=> path.EndsWith(".symbols.nupkg", StringComparison.OrdinalIgnoreCase); 55=> Path.GetExtension(path).Equals(".zip", StringComparison.OrdinalIgnoreCase); 58=> Path.GetExtension(path).Equals(".tgz", StringComparison.OrdinalIgnoreCase) 59|| (Path.GetExtension(path).Equals(".gz", StringComparison.OrdinalIgnoreCase) 60&& Path.GetExtension(Path.GetFileNameWithoutExtension(path)).Equals(".tar", StringComparison.OrdinalIgnoreCase)); 63=> (Path.GetExtension(path).Equals(".msi", StringComparison.OrdinalIgnoreCase) 64|| Path.GetExtension(path).Equals(".wixlib", StringComparison.OrdinalIgnoreCase)); 67=> Path.GetExtension(path).Equals(".ps1", StringComparison.OrdinalIgnoreCase) 68|| Path.GetExtension(path).Equals(".psd1", StringComparison.OrdinalIgnoreCase) 69|| Path.GetExtension(path).Equals(".psm1", StringComparison.OrdinalIgnoreCase); 104|| Path.GetExtension(FileName).Equals(".exe", StringComparison.OrdinalIgnoreCase)); 108(Path.GetExtension(FileName).Equals(".exe", StringComparison.OrdinalIgnoreCase) || 109Path.GetExtension(FileName).Equals(".msi", StringComparison.OrdinalIgnoreCase));
src\SignInfo.cs (1)
52public bool ShouldLocallyStrongNameSign => ShouldStrongName && StrongName.EndsWith(".snk", StringComparison.OrdinalIgnoreCase);
src\SignToolTask.cs (3)
539if (SignToolConstants.IgnoreFileCertificateSentinel.Equals(certificateName, StringComparison.OrdinalIgnoreCase) && 540SignToolConstants.IgnoreFileCertificateSentinel.Equals(strongName, StringComparison.OrdinalIgnoreCase)) 546var signInfo = SignToolConstants.IgnoreFileCertificateSentinel.Equals(strongName, StringComparison.OrdinalIgnoreCase)
src\VerifySignatures.cs (2)
130return File.ReadLines(filePath).Any(line => line.IndexOf("# SIG # Begin Signature Block", StringComparison.OrdinalIgnoreCase) >= 0) 173return archive.GetFiles().Any(f => f.StartsWith("package/services/digital-signature/", StringComparison.OrdinalIgnoreCase)) ?
src\WixPackInfo.cs (1)
42return Path.GetFileName(path).EndsWith(WixPackExtension, StringComparison.OrdinalIgnoreCase);
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
122if (p.Name.Equals(pvpIdent, StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.XliffTasks (8)
Tasks\GatherTranslatedSource.cs (1)
28bool preserveFileName = string.Equals(xlf.GetMetadata(MetadataKey.XlfPreserveFileName), "true", StringComparison.OrdinalIgnoreCase);
Tasks\GatherXlf.cs (1)
53bool preserveFileName = string.Equals(source.GetMetadata(MetadataKey.XlfPreserveFileName), "true", StringComparison.OrdinalIgnoreCase);
Tasks\XlfTask.cs (6)
37if (format.Equals("Resx", StringComparison.OrdinalIgnoreCase)) 41else if (format.Equals("Unstructured", StringComparison.OrdinalIgnoreCase)) 45else if (format.Equals("Vsct", StringComparison.OrdinalIgnoreCase)) 49else if (format.Equals("XamlRule", StringComparison.OrdinalIgnoreCase)) 53else if (format.Equals("Json", StringComparison.OrdinalIgnoreCase)) 97if (extension.Equals(".resx", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.XUnitAssert.Tests (60)
MemoryAssertsTests.cs (12)
58 Assert.Contains("WORLD".AsMemory(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 64 Assert.Contains("WORLD".Memoryify(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase); 223 var ex = Record.Exception(() => Assert.DoesNotContain("WORLD".AsMemory(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase)); 238 var ex = Record.Exception(() => Assert.DoesNotContain("WORLD".Memoryify(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase)); 477 Assert.EndsWith("WORLD!".AsMemory(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 478 Assert.EndsWith("WORLD!".AsMemory(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase); 479 Assert.EndsWith("WORLD!".Memoryify(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 480 Assert.EndsWith("WORLD!".Memoryify(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase); 894 Assert.StartsWith("HELLO".AsMemory(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 895 Assert.StartsWith("HELLO".AsMemory(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase); 896 Assert.StartsWith("HELLO".Memoryify(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 897 Assert.StartsWith("HELLO".Memoryify(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase);
SpanAssertsTests.cs (12)
58 Assert.Contains("WORLD".AsSpan(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase); 64 Assert.Contains("WORLD".Spanify(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase); 223 var ex = Record.Exception(() => Assert.DoesNotContain("WORLD".AsSpan(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase)); 238 var ex = Record.Exception(() => Assert.DoesNotContain("WORLD".Spanify(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase)); 477 Assert.EndsWith("WORLD!".AsSpan(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase); 478 Assert.EndsWith("WORLD!".AsSpan(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase); 479 Assert.EndsWith("WORLD!".Spanify(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase); 480 Assert.EndsWith("WORLD!".Spanify(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase); 894 Assert.StartsWith("HELLO".AsSpan(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase); 895 Assert.StartsWith("HELLO".AsSpan(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase); 896 Assert.StartsWith("HELLO".Spanify(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase); 897 Assert.StartsWith("HELLO".Spanify(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase);
StringAssertsTests.cs (36)
133 Assert.Contains("WORLD", "Hello, world!", StringComparison.OrdinalIgnoreCase); 135 Assert.Contains("WORLD".Memoryify(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase); 136 Assert.Contains("WORLD".AsMemory(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase); 137 Assert.Contains("WORLD".Memoryify(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 138 Assert.Contains("WORLD".AsMemory(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 139 Assert.Contains("WORLD".Spanify(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase); 140 Assert.Contains("WORLD".AsSpan(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase); 141 Assert.Contains("WORLD".Spanify(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase); 142 Assert.Contains("WORLD".AsSpan(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase); 324 verify(() => Assert.DoesNotContain("WORLD", "Hello, world!", StringComparison.OrdinalIgnoreCase)); 326 verify(() => Assert.DoesNotContain("WORLD".Memoryify(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase)); 327 verify(() => Assert.DoesNotContain("WORLD".AsMemory(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase)); 328 verify(() => Assert.DoesNotContain("WORLD".Memoryify(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase)); 329 verify(() => Assert.DoesNotContain("WORLD".AsMemory(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase)); 330 verify(() => Assert.DoesNotContain("WORLD".Spanify(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase)); 331 verify(() => Assert.DoesNotContain("WORLD".AsSpan(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase)); 332 verify(() => Assert.DoesNotContain("WORLD".Spanify(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase)); 333 verify(() => Assert.DoesNotContain("WORLD".AsSpan(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase)); 505 Assert.EndsWith("WORLD!", "Hello, world!", StringComparison.OrdinalIgnoreCase); 507 Assert.EndsWith("WORLD!".Memoryify(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase); 508 Assert.EndsWith("WORLD!".AsMemory(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase); 509 Assert.EndsWith("WORLD!".Memoryify(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 510 Assert.EndsWith("WORLD!".AsMemory(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 511 Assert.EndsWith("WORLD!".Spanify(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase); 512 Assert.EndsWith("WORLD!".AsSpan(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase); 513 Assert.EndsWith("WORLD!".Spanify(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase); 514 Assert.EndsWith("WORLD!".AsSpan(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase); 907 Assert.StartsWith("HELLO", "Hello, world!", StringComparison.OrdinalIgnoreCase); 909 Assert.StartsWith("HELLO".Memoryify(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase); 910 Assert.StartsWith("HELLO".AsMemory(), "Hello, world!".Memoryify(), StringComparison.OrdinalIgnoreCase); 911 Assert.StartsWith("HELLO".Memoryify(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 912 Assert.StartsWith("HELLO".AsMemory(), "Hello, world!".AsMemory(), StringComparison.OrdinalIgnoreCase); 913 Assert.StartsWith("HELLO".Spanify(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase); 914 Assert.StartsWith("HELLO".AsSpan(), "Hello, world!".Spanify(), StringComparison.OrdinalIgnoreCase); 915 Assert.StartsWith("HELLO".Spanify(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase); 916 Assert.StartsWith("HELLO".AsSpan(), "Hello, world!".AsSpan(), StringComparison.OrdinalIgnoreCase);
Microsoft.DotNet.XUnitExtensions (2)
src\Microsoft.DotNet.XUnitExtensions.Shared\DiscovererHelpers.cs (2)
17public static bool IsRunningOnNetCoreApp { get; } = (Environment.Version.Major >= 5 || !RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase)); 18public static bool IsRunningOnNetFramework { get; } = RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase);
Microsoft.DotNet.XUnitV3Extensions (2)
src\Microsoft.DotNet.XUnitExtensions.Shared\DiscovererHelpers.cs (2)
17public static bool IsRunningOnNetCoreApp { get; } = (Environment.Version.Major >= 5 || !RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase)); 18public static bool IsRunningOnNetFramework { get; } = RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.AI.Abstractions (7)
ChatCompletion\ChatRole.cs (1)
81=> string.Equals(Value, other.Value, StringComparison.OrdinalIgnoreCase);
Contents\DataContent.cs (1)
84if (!uri.StartsWith(DataUriParser.Scheme, StringComparison.OrdinalIgnoreCase))
Contents\DataUriParser.cs (3)
29if (!dataUri.Span.StartsWith(Scheme.AsSpan(), StringComparison.OrdinalIgnoreCase)) 51if (metadata.Span.EndsWith(";base64".AsSpan(), StringComparison.OrdinalIgnoreCase)) 137return span.Equals(topLevelMediaType.AsSpan(), StringComparison.OrdinalIgnoreCase);
SpeechToText\SpeechToTextResponseUpdateKind.cs (1)
83=> string.Equals(Value, other.Value, StringComparison.OrdinalIgnoreCase);
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
412public bool Equals(ParameterLookupKey other) => Type == other.Type && string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.AI.AzureAIInference (3)
AzureAIInferenceChatClient.cs (2)
537if (dataContent.MediaType.Equals("audio/mpeg", StringComparison.OrdinalIgnoreCase)) 541else if (dataContent.MediaType.Equals("audio/wav", StringComparison.OrdinalIgnoreCase))
src\LegacySupport\StringHash\StringHash.cs (1)
24StringComparison.OrdinalIgnoreCase => StringComparer.OrdinalIgnoreCase,
Microsoft.Extensions.AI.Evaluation (2)
Utilities\ModelInfo.cs (2)
97if (string.Equals(host, LocalMachineHost, StringComparison.OrdinalIgnoreCase)) 105if (host.Contains(hostPattern, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.AI.Evaluation.Console (2)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\ModelInfo.cs (2)
97if (string.Equals(host, LocalMachineHost, StringComparison.OrdinalIgnoreCase)) 105if (host.Contains(hostPattern, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.AI.Evaluation.Reporting (2)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\ModelInfo.cs (2)
97if (string.Equals(host, LocalMachineHost, StringComparison.OrdinalIgnoreCase)) 105if (host.Contains(hostPattern, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.AI.Evaluation.Safety (6)
AIContentExtensions.cs (4)
22mediaType.Equals("image/jpeg", StringComparison.OrdinalIgnoreCase) || 23mediaType.Equals("image/jpg", StringComparison.OrdinalIgnoreCase) || 24mediaType.Equals("image/png", StringComparison.OrdinalIgnoreCase) || 25mediaType.Equals("image/gif", StringComparison.OrdinalIgnoreCase);
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\ModelInfo.cs (2)
97if (string.Equals(host, LocalMachineHost, StringComparison.OrdinalIgnoreCase)) 105if (host.Contains(hostPattern, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.AI.Integration.Tests (20)
ChatClientIntegrationTests.cs (17)
59Assert.Contains("whale", response.Text, StringComparison.OrdinalIgnoreCase); 113Assert.Contains("one small step", responseText, StringComparison.OrdinalIgnoreCase); 114Assert.Contains("one giant leap", responseText, StringComparison.OrdinalIgnoreCase); 192Assert.True(response.Text.IndexOf("net", StringComparison.OrdinalIgnoreCase) >= 0, response.Text); 210Assert.True(response.Text.IndexOf("hello", StringComparison.OrdinalIgnoreCase) >= 0, response.Text); 1164response.Text.IndexOf("hiking", StringComparison.OrdinalIgnoreCase) >= 0 || 1165response.Text.IndexOf("hike", StringComparison.OrdinalIgnoreCase) >= 0, 1206response.Text.IndexOf("arr", StringComparison.OrdinalIgnoreCase) >= 0 || 1207response.Text.IndexOf("aye", StringComparison.OrdinalIgnoreCase) >= 0 || 1208response.Text.IndexOf("matey", StringComparison.OrdinalIgnoreCase) >= 0 || 1209response.Text.IndexOf("ye", StringComparison.OrdinalIgnoreCase) >= 0, 1256Assert.True(response.Text.IndexOf("Miami", StringComparison.OrdinalIgnoreCase) >= 0, $"Expected 'Miami' in response: {response.Text}"); 1258response.Text.IndexOf("sunny", StringComparison.OrdinalIgnoreCase) >= 0 || 1259response.Text.IndexOf("better", StringComparison.OrdinalIgnoreCase) >= 0 || 1260response.Text.IndexOf("warm", StringComparison.OrdinalIgnoreCase) >= 0, 1304responseText.IndexOf("software", StringComparison.OrdinalIgnoreCase) >= 0 || 1305responseText.IndexOf("engineer", StringComparison.OrdinalIgnoreCase) >= 0,
SpeechToTextClientIntegrationTests.cs (3)
41Assert.Contains("gym", response.Text, StringComparison.OrdinalIgnoreCase); 58Assert.Contains("finally", responseText, StringComparison.OrdinalIgnoreCase); 59Assert.Contains("gym", responseText, StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.AI.OpenAI (7)
OpenAIChatClient.cs (3)
271if (dataContent.MediaType.Equals("audio/mpeg", StringComparison.OrdinalIgnoreCase)) 275else if (dataContent.MediaType.Equals("audio/wav", StringComparison.OrdinalIgnoreCase)) 282case DataContent dataContent when dataContent.MediaType.StartsWith("application/pdf", StringComparison.OrdinalIgnoreCase):
OpenAIImageGenerator.cs (3)
188if (options?.MediaType?.Equals("image/png", StringComparison.OrdinalIgnoreCase) == true) 192else if (options?.MediaType?.Equals("image/jpeg", StringComparison.OrdinalIgnoreCase) == true) 196else if (options?.MediaType?.Equals("image/webp", StringComparison.OrdinalIgnoreCase) == true)
OpenAIResponsesChatClient.cs (1)
714case DataContent dataContent when dataContent.MediaType.StartsWith("application/pdf", StringComparison.OrdinalIgnoreCase):
Microsoft.Extensions.AI.OpenAI.Tests (1)
IntegrationTestHelpers.cs (1)
24if (string.Equals(mode, "AzureOpenAI", StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.AI.Tests (1)
Functions\AIFunctionFactoryTest.cs (1)
158Assert.DoesNotContain("cancellationToken", func.JsonSchema.ToString(), StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.ApiDescription.Client (1)
GetOpenApiReferenceMetadata.cs (1)
89StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.ApiDescription.Client.Tests (4)
GetOpenApiReferenceMetadataTest.cs (3)
296Assert.Contains(error1, buildEngine.Log, StringComparison.OrdinalIgnoreCase); 297Assert.Contains(error2, buildEngine.Log, StringComparison.OrdinalIgnoreCase); 342Assert.Contains(error, buildEngine.Log, StringComparison.OrdinalIgnoreCase);
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Configuration (2)
ConfigurationKeyComparer.cs (1)
84result = a.CompareTo(b, StringComparison.OrdinalIgnoreCase);
ConfigurationProvider.cs (1)
81kv.Key.StartsWith(parentPath, StringComparison.OrdinalIgnoreCase) &&
Microsoft.Extensions.Configuration.EnvironmentVariables (12)
EnvironmentVariablesConfigurationProvider.cs (12)
84if (key.StartsWith(MySqlServerPrefix, StringComparison.OrdinalIgnoreCase)) 88else if (key.StartsWith(SqlAzureServerPrefix, StringComparison.OrdinalIgnoreCase)) 92else if (key.StartsWith(SqlServerPrefix, StringComparison.OrdinalIgnoreCase)) 96else if (key.StartsWith(PostgreSqlServerPrefix, StringComparison.OrdinalIgnoreCase)) 100else if (key.StartsWith(ApiHubPrefix, StringComparison.OrdinalIgnoreCase)) 104else if (key.StartsWith(DocDbPrefix, StringComparison.OrdinalIgnoreCase)) 108else if (key.StartsWith(EventHubPrefix, StringComparison.OrdinalIgnoreCase)) 112else if (key.StartsWith(NotificationHubPrefix, StringComparison.OrdinalIgnoreCase)) 116else if (key.StartsWith(RedisCachePrefix, StringComparison.OrdinalIgnoreCase)) 120else if (key.StartsWith(ServiceBusPrefix, StringComparison.OrdinalIgnoreCase)) 124else if (key.StartsWith(CustomConnectionStringPrefix, StringComparison.OrdinalIgnoreCase)) 156if (normalizedKey.StartsWith(_normalizedPrefix, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Configuration.Xml (2)
XmlStreamConfigurationProvider.cs (2)
97if (string.Equals(parent.SingleChild.SiblingName, element.SiblingName, StringComparison.OrdinalIgnoreCase)) 237if (string.Equals(reader.LocalName, Consts.NameAttributeKey, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.DependencyModel (7)
Resolution\AppBaseCompilationAssemblyResolver.cs (5)
48bool isProject = string.Equals(library.Type, "project", StringComparison.OrdinalIgnoreCase) || 49string.Equals(library.Type, "msbuildproject", StringComparison.OrdinalIgnoreCase); 51bool isPackage = string.Equals(library.Type, "package", StringComparison.OrdinalIgnoreCase); 52bool isReferenceAssembly = string.Equals(library.Type, "referenceassembly", StringComparison.OrdinalIgnoreCase); 56!string.Equals(library.Type, "reference", StringComparison.OrdinalIgnoreCase))
Resolution\PackageCompilationAssemblyResolver.cs (1)
74!string.Equals(library.Type, "package", StringComparison.OrdinalIgnoreCase))
Resolution\ReferenceAssemblyPathResolver.cs (1)
48if (!string.Equals(library.Type, "referenceassembly", StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Diagnostics (9)
Metrics\Configuration\MetricsConfigureOptions.cs (5)
30if (configurationSection.Key.Equals(EnabledMetricsKey, StringComparison.OrdinalIgnoreCase)) 35else if (configurationSection.Key.Equals(EnabledGlobalMetricsKey, StringComparison.OrdinalIgnoreCase)) 40else if (configurationSection.Key.Equals(EnabledLocalMetricsKey, StringComparison.OrdinalIgnoreCase)) 83if (string.Equals(DefaultKey, meterName, StringComparison.OrdinalIgnoreCase)) 102if (string.Equals(DefaultKey, instrumentName, StringComparison.OrdinalIgnoreCase))
Metrics\ListenerSubscription.cs (4)
149&& !string.Equals(rule.ListenerName, listenerName, StringComparison.OrdinalIgnoreCase)) 156&& !string.Equals(rule.InstrumentName, instrument.Name, StringComparison.OrdinalIgnoreCase)) 194if (!instrument.Meter.Name.AsSpan().StartsWith(prefix, StringComparison.OrdinalIgnoreCase) || 195!instrument.Meter.Name.AsSpan().EndsWith(suffix, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
src\LegacySupport\StringHash\StringHash.cs (1)
24StringComparison.OrdinalIgnoreCase => StringComparer.OrdinalIgnoreCase,
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Disk\WindowsDiskMetrics.cs (1)
81.Where(instanceName => !instanceName.Equals("_Total", StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Linux\Resources\HardcodedValueFileSystem.cs (1)
39.Where(x => x.StartsWith(directory, StringComparison.OrdinalIgnoreCase))
ResourceMonitoringServiceTests.cs (2)
263Assert.Contains(ProviderUnableToGatherData, logger.Collector.LatestRecord.Message, StringComparison.OrdinalIgnoreCase); 291Assert.Contains(_publisherUnableToPublishErrorMessage, logger.Collector.LatestRecord.Message, StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.FileProviders.Embedded (2)
Manifest\ManifestDirectory.cs (1)
37if (segment.Equals(child.Name, StringComparison.OrdinalIgnoreCase))
Manifest\ManifestParser.cs (1)
70if (string.Equals(entriesList[i].Name, entriesList[j].Name, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.FileProviders.Physical (4)
PhysicalFileProvider.cs (2)
192string.Equals(environmentValue, "true", StringComparison.OrdinalIgnoreCase); 255return fullPath.StartsWith(Root, StringComparison.OrdinalIgnoreCase);
PhysicalFilesWatcher.cs (1)
215var matcher = new Matcher(StringComparison.OrdinalIgnoreCase);
PollingWildCardChangeToken.cs (1)
60_matcher = new Matcher(StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.FileSystemGlobbing (8)
FilePatternMatch.cs (2)
54return string.Equals(other.Path, Path, StringComparison.OrdinalIgnoreCase) && 55string.Equals(other.Stem, Stem, StringComparison.OrdinalIgnoreCase);
Internal\PathSegments\WildcardPathSegment.cs (2)
14string.Empty, new List<string>(), string.Empty, StringComparison.OrdinalIgnoreCase); 26StringComparison.OrdinalIgnoreCase or StringComparison.Ordinal => comparisonType,
Internal\Patterns\PatternBuilder.cs (1)
18ComparisonType = StringComparison.OrdinalIgnoreCase;
Matcher.cs (2)
110: this(StringComparison.OrdinalIgnoreCase, false) 131public Matcher(StringComparison comparisonType = StringComparison.OrdinalIgnoreCase, bool preserveFilterOrder = false)
Util\StringComparisonHelper.cs (1)
15StringComparison.OrdinalIgnoreCase => StringComparer.OrdinalIgnoreCase,
Microsoft.Extensions.Hosting (5)
HostApplicationBuilder.cs (4)
290if (!string.Equals(previousApplicationName, config[HostDefaults.ApplicationKey], StringComparison.OrdinalIgnoreCase)) 294if (!string.Equals(previousEnvironment, config[HostDefaults.EnvironmentKey], StringComparison.OrdinalIgnoreCase)) 301if (!string.Equals(previousContentRootConfig, currentContentRootConfig, StringComparison.OrdinalIgnoreCase) && 302!string.Equals(previousContentRootPath, HostBuilder.ResolveContentRootPath(currentContentRootConfig, AppContext.BaseDirectory), StringComparison.OrdinalIgnoreCase))
HostingHostBuilderExtensions.cs (1)
228!string.Equals(cwd, Environment.SystemDirectory, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Hosting.Abstractions (2)
HostEnvironmentEnvExtensions.cs (1)
64StringComparison.OrdinalIgnoreCase);
HostingEnvironmentExtensions.cs (1)
65StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceHelpers.cs (1)
46return string.Equals("services", parent.ProcessName, StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.Http.Diagnostics (5)
Http\DownstreamDependencyMetadataManager.cs (1)
373if (requestRouteAsSpan.StartsWith("//".AsSpan(), StringComparison.OrdinalIgnoreCase))
Logging\Internal\MediaTypeCollectionExtensions.cs (4)
29if (sample!.StartsWith(Text, StringComparison.OrdinalIgnoreCase)) 34if (sample.StartsWith(Application, StringComparison.OrdinalIgnoreCase) 35&& (sample.EndsWith(Json, StringComparison.OrdinalIgnoreCase) 36|| sample.EndsWith(Xml, StringComparison.OrdinalIgnoreCase)))
Microsoft.Extensions.Logging (2)
LoggerRuleSelector.cs (2)
73if (!category.AsSpan().StartsWith(prefix, StringComparison.OrdinalIgnoreCase) || 74!category.AsSpan().EndsWith(suffix, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Logging.Configuration (2)
LoggerFilterConfigureOptions.cs (2)
37if (configurationSection.Key.Equals(LogLevelKey, StringComparison.OrdinalIgnoreCase)) 62if (category.Equals(DefaultCategory, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Logging.Console (2)
ConsoleLoggerProvider.cs (1)
72if (envVar is not null && (envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase)))
src\libraries\Common\src\System\Console\ConsoleUtils.cs (1)
42enabled = envVar is not null && (envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase));
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
427if (ruleStrings.Length > 0 && ruleStrings[0].Equals(UseAppFilters, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Logging.Generators (13)
LoggerMessageGenerator.Emitter.cs (2)
75if (!template.Equals(parameter, StringComparison.OrdinalIgnoreCase)) 241if (template.Equals(parameter, StringComparison.OrdinalIgnoreCase))
LoggerMessageGenerator.Parser.cs (9)
323if (msg.StartsWith("INFORMATION:", StringComparison.OrdinalIgnoreCase) 324|| msg.StartsWith("INFO:", StringComparison.OrdinalIgnoreCase) 325|| msg.StartsWith("WARNING:", StringComparison.OrdinalIgnoreCase) 326|| msg.StartsWith("WARN:", StringComparison.OrdinalIgnoreCase) 327|| msg.StartsWith("ERROR:", StringComparison.OrdinalIgnoreCase) 328|| msg.StartsWith("ERR:", StringComparison.OrdinalIgnoreCase)) 483if (t.Key.Equals(p.Name, StringComparison.OrdinalIgnoreCase) || 484t.Key.Equals(p.CodeName, StringComparison.OrdinalIgnoreCase) || 485t.Key[0] == '@' && t.Key.Substring(1).Equals(p.CodeName, StringComparison.OrdinalIgnoreCase))
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
156var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
201var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Microsoft.Extensions.Options.ConfigurationExtensions (1)
OptionsBuilderConfigurationExtensions.cs (1)
75IConfiguration section = string.Equals("", configSectionPath, StringComparison.OrdinalIgnoreCase)
Microsoft.Extensions.Options.SourceGeneration (3)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
156var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
SymbolLoader.cs (2)
53if (!containingAssemblyName.Equals("System.Private.CoreLib", System.StringComparison.OrdinalIgnoreCase) && 54!containingAssemblyName.Equals("System.Runtime", System.StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Primitives (2)
StringSegment.cs (1)
668if ((uint)comparisonType > (uint)StringComparison.OrdinalIgnoreCase)
StringSegmentComparer.cs (1)
24= new StringSegmentComparer(StringComparison.OrdinalIgnoreCase, StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.ServiceDiscovery (1)
ServiceDiscoveryOptions.cs (1)
52if (string.Equals(s, allowed, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.ServiceDiscovery.Dns (3)
Resolver\DnsResolver.cs (2)
114if (string.Equals(name, "localhost", StringComparison.OrdinalIgnoreCase)) 156if (string.Equals(name, "localhost", StringComparison.OrdinalIgnoreCase))
ServiceDiscoveryDnsServiceCollectionExtensions.cs (1)
73if (envVar is not null && (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1")))
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (2)
Fuzzers\WriteDomainNameRoundTripFuzzer.cs (1)
38if (!string.Equals(s_idnMapping.GetAscii(domainName).TrimEnd('.'), readName, StringComparison.OrdinalIgnoreCase))
Program.cs (1)
39IFuzzer? fuzzer = fuzzers.FirstOrDefault(f => string.Equals(f.Name, arg, StringComparison.OrdinalIgnoreCase));
Microsoft.Extensions.Telemetry (6)
Http\Segment.cs (2)
77parameter.Equals(ControllerParameter, StringComparison.OrdinalIgnoreCase) || 78parameter.Equals(ActionParameter, StringComparison.OrdinalIgnoreCase);
Logging\Import\LoggerRuleSelector.cs (2)
78if (!category.AsSpan().StartsWith(prefix, StringComparison.OrdinalIgnoreCase) || 79!category.AsSpan().EndsWith(suffix, StringComparison.OrdinalIgnoreCase))
Sampling\LogSamplingRuleSelector.cs (2)
59if (!category.AsSpan().StartsWith(prefix, StringComparison.OrdinalIgnoreCase) || 60!category.AsSpan().EndsWith(suffix, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Validation.GeneratorTests (2)
ValidationsGeneratorTestBase.cs (2)
353=> arg.Equals("--applicationName", StringComparison.OrdinalIgnoreCase) || 354arg.Equals("/applicationName", StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.Validation.ValidationsGenerator (2)
Extensions\ITypeSymbolExtensions.cs (1)
113.FirstOrDefault(p => string.Equals(p.Name, propertyName, System.StringComparison.OrdinalIgnoreCase));
Parsers\ValidationsGenerator.TypesParser.cs (1)
160.FirstOrDefault(p => string.Equals(p.Name, parameter.Name, System.StringComparison.OrdinalIgnoreCase));
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
29Assert.EndsWith("/" + descriptor.Id, descriptor.HelpLinkUri, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.Logging (13)
Model\LoggingMethod.cs (2)
36if (templateName.Equals(p.TagName, StringComparison.OrdinalIgnoreCase)) 50if (lp.TagName.Equals(t, StringComparison.OrdinalIgnoreCase))
Parsing\Parser.cs (9)
267if (t.Equals(p.TagName, StringComparison.OrdinalIgnoreCase) || 268t.Equals(p.ParameterNameWithAtIfNeeded, StringComparison.OrdinalIgnoreCase) || 269(t[0] == '@' && t.Substring(1).Equals(p.ParameterNameWithAtIfNeeded, StringComparison.OrdinalIgnoreCase))) 440if (msg.StartsWith("INFORMATION:", StringComparison.OrdinalIgnoreCase) 441|| msg.StartsWith("INFO:", StringComparison.OrdinalIgnoreCase) 442|| msg.StartsWith("WARNING:", StringComparison.OrdinalIgnoreCase) 443|| msg.StartsWith("WARN:", StringComparison.OrdinalIgnoreCase) 444|| msg.StartsWith("ERROR:", StringComparison.OrdinalIgnoreCase) 445|| msg.StartsWith("ERR:", StringComparison.OrdinalIgnoreCase))
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
src\Generators\Shared\RoslynExtensions.cs (1)
205var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Microsoft.Gen.Logging.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
30Assert.EndsWith("/" + descriptor.Id, descriptor.HelpLinkUri, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.Metrics (2)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
src\Generators\Shared\RoslynExtensions.cs (1)
205var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Microsoft.Gen.Metrics.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
29Assert.EndsWith("/" + descriptor.Id, descriptor.HelpLinkUri, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
Microsoft.Interop.ComInterfaceGenerator (5)
ComInterfaceGenerator.cs (2)
258return typeName.Equals("hr", StringComparison.OrdinalIgnoreCase) 259|| typeName.Equals("hresult", StringComparison.OrdinalIgnoreCase);
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
156var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
287return typeName.Equals("hr", StringComparison.OrdinalIgnoreCase) 288|| typeName.Equals("hresult", StringComparison.OrdinalIgnoreCase);
Microsoft.Interop.LibraryImportGenerator (3)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
156var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
287return typeName.Equals("hr", StringComparison.OrdinalIgnoreCase) 288|| typeName.Equals("hresult", StringComparison.OrdinalIgnoreCase);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
156var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
156var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Microsoft.Maui (19)
Converters\EasingTypeConverter.cs (1)
50 left.Equals(right, StringComparison.OrdinalIgnoreCase);
Converters\FlexEnumsConverters.cs (17)
26 if (strValue.Equals("flex-start", StringComparison.OrdinalIgnoreCase)) 28 if (strValue.Equals("flex-end", StringComparison.OrdinalIgnoreCase)) 30 if (strValue.Equals("space-between", StringComparison.OrdinalIgnoreCase)) 32 if (strValue.Equals("space-around", StringComparison.OrdinalIgnoreCase)) 65 if (strValue.Equals("row-reverse", StringComparison.OrdinalIgnoreCase)) 67 if (strValue.Equals("column-reverse", StringComparison.OrdinalIgnoreCase)) 100 if (strValue.Equals("flex-start", StringComparison.OrdinalIgnoreCase)) 102 if (strValue.Equals("flex-end", StringComparison.OrdinalIgnoreCase)) 104 if (strValue.Equals("space-between", StringComparison.OrdinalIgnoreCase)) 106 if (strValue.Equals("space-around", StringComparison.OrdinalIgnoreCase)) 139 if (strValue.Equals("flex-start", StringComparison.OrdinalIgnoreCase)) 141 if (strValue.Equals("flex-end", StringComparison.OrdinalIgnoreCase)) 174 if (strValue.Equals("flex-start", StringComparison.OrdinalIgnoreCase)) 176 if (strValue.Equals("flex-end", StringComparison.OrdinalIgnoreCase)) 209 if (strValue.Equals("wrap-reverse", StringComparison.OrdinalIgnoreCase)) 247 if (strValue.Equals("auto", StringComparison.OrdinalIgnoreCase)) 273 if (!strValue.EndsWith("%", StringComparison.OrdinalIgnoreCase))
Fonts\FontFile.cs (1)
81 if (fontFamilyName.EndsWith(extension, StringComparison.OrdinalIgnoreCase))
Microsoft.Maui.Controls (47)
Brush\BrushTypeConverter.cs (5)
150 if (part.Equals(Rgb, StringComparison.OrdinalIgnoreCase) 151 || part.Equals(Rgba, StringComparison.OrdinalIgnoreCase) 152 || part.Equals(Hsl, StringComparison.OrdinalIgnoreCase) 153 || part.Equals(Hsla, StringComparison.OrdinalIgnoreCase)) 377 var index = part.LastIndexOf(unit, StringComparison.OrdinalIgnoreCase);
DecorableTextElement.cs (1)
40 else if (item.Equals("line-through", StringComparison.OrdinalIgnoreCase))
FlowDirectionConverter.cs (3)
25 if (strValue.Equals("ltr", StringComparison.OrdinalIgnoreCase)) 27 if (strValue.Equals("rtl", StringComparison.OrdinalIgnoreCase)) 29 if (strValue.Equals("inherit", StringComparison.OrdinalIgnoreCase))
FontAttributes.cs (2)
58 if (part.Equals("normal", StringComparison.OrdinalIgnoreCase)) 60 if (part.Equals("oblique", StringComparison.OrdinalIgnoreCase))
FontSizeConverter.cs (1)
29 var sc = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
GridLengthTypeConverter.cs (2)
26 if (string.Compare(strValue, "auto", StringComparison.OrdinalIgnoreCase) == 0) 28 if (string.Compare(strValue, "*", StringComparison.OrdinalIgnoreCase) == 0)
Internals\ImageParser.cs (2)
265 return !string.IsNullOrEmpty(TypeIdentifier) && TypeIdentifier.StartsWith("GIF", StringComparison.OrdinalIgnoreCase); 477 if (identifier.Equals(NetscapeApplicationExtensionID, StringComparison.OrdinalIgnoreCase))
Layout\BoundsTypeConverter.cs (2)
35 if (!hasW && xywh.Length == 4 && string.Compare("AutoSize", xywh[2].Trim(), StringComparison.OrdinalIgnoreCase) == 0) 41 if (!hasH && xywh.Length == 4 && string.Compare("AutoSize", xywh[3].Trim(), StringComparison.OrdinalIgnoreCase) == 0)
StyleSheets\Selector.cs (2)
201 string.Equals(styleable.NameAndBases[0], ElementName, StringComparison.OrdinalIgnoreCase); 215 if (string.Equals(styleable.NameAndBases[i], ElementName, StringComparison.OrdinalIgnoreCase))
StyleSheets\Style.cs (1)
73 if (string.Equals(decl.Value, "initial", StringComparison.OrdinalIgnoreCase))
TextAlignment.cs (11)
21 if (strValue.Equals("Start", StringComparison.OrdinalIgnoreCase) || strValue.Equals("left", StringComparison.OrdinalIgnoreCase)) 23 if (strValue.Equals("top", StringComparison.OrdinalIgnoreCase)) 25 if (strValue.Equals("right", StringComparison.OrdinalIgnoreCase)) 27 if (strValue.Equals("bottom", StringComparison.OrdinalIgnoreCase)) 29 if (strValue.Equals("center", StringComparison.OrdinalIgnoreCase)) 31 if (strValue.Equals("middle", StringComparison.OrdinalIgnoreCase)) 33 if (strValue.Equals("End", StringComparison.OrdinalIgnoreCase) || strValue.Equals("right", StringComparison.OrdinalIgnoreCase)) 35 if (strValue.Equals("Center", StringComparison.OrdinalIgnoreCase) || strValue.Equals("center", StringComparison.OrdinalIgnoreCase))
VisualElement\VisualElement.cs (14)
231 if (transformName.StartsWith("translateX", StringComparison.OrdinalIgnoreCase) && double.TryParse(value, out translationX)) 233 else if (transformName.StartsWith("translateY", StringComparison.OrdinalIgnoreCase) && double.TryParse(value, out translationY)) 235 else if (transformName.StartsWith("translate", StringComparison.OrdinalIgnoreCase)) 244 else if (transformName.StartsWith("scaleX", StringComparison.OrdinalIgnoreCase) && double.TryParse(value, out scaleX)) 246 else if (transformName.StartsWith("scaleY", StringComparison.OrdinalIgnoreCase) && double.TryParse(value, out scaleY)) 248 else if (transformName.StartsWith("scale", StringComparison.OrdinalIgnoreCase)) 257 else if (transformName.StartsWith("rotateX", StringComparison.OrdinalIgnoreCase) && double.TryParse(value, out rotateX)) 259 else if (transformName.StartsWith("rotateY", StringComparison.OrdinalIgnoreCase) && double.TryParse(value, out rotateY)) 261 else if (transformName.StartsWith("rotate", StringComparison.OrdinalIgnoreCase) && double.TryParse(value, out rotate)) 2446 if (strValue.Equals(bool.TrueString, StringComparison.OrdinalIgnoreCase)) 2448 if (strValue.Equals("visible", StringComparison.OrdinalIgnoreCase)) 2450 if (strValue.Equals(bool.FalseString, StringComparison.OrdinalIgnoreCase)) 2452 if (strValue.Equals("hidden", StringComparison.OrdinalIgnoreCase)) 2454 if (strValue.Equals("collapse", StringComparison.OrdinalIgnoreCase))
Visuals\VisualTypeConverter.cs (1)
125 if (name.EndsWith("Visual", StringComparison.OrdinalIgnoreCase))
Microsoft.Maui.Controls.Build.Tasks (6)
CompiledConverters\BoundsTypeConverter.cs (2)
33 if (!hasW && xywh.Length == 4 && string.Compare("AutoSize", xywh[2].Trim(), StringComparison.OrdinalIgnoreCase) == 0) 39 if (!hasH && xywh.Length == 4 && string.Compare("AutoSize", xywh[3].Trim(), StringComparison.OrdinalIgnoreCase) == 0)
CompiledConverters\FlexBasisTypeConverter.cs (1)
27 if (value.EndsWith("%", StringComparison.OrdinalIgnoreCase)
CompiledConverters\GridLengthTypeConverter.cs (3)
22 if (value.Equals("auto", StringComparison.OrdinalIgnoreCase)) 27 if (value.Equals("*", StringComparison.OrdinalIgnoreCase)) 32 if (value.EndsWith("*", StringComparison.OrdinalIgnoreCase) && double.TryParse(value.Substring(0, value.Length - 1), NumberStyles.Number, CultureInfo.InvariantCulture, out var length))
Microsoft.Maui.Controls.DesignTools (5)
BoundsDesignTypeConverter.cs (2)
23 if (!hasW && xywh.Length == 4 && string.Compare("AutoSize", xywh[2].Trim(), StringComparison.OrdinalIgnoreCase) == 0) 28 if (!hasH && xywh.Length == 4 && string.Compare("AutoSize", xywh[3].Trim(), StringComparison.OrdinalIgnoreCase) == 0)
FlexEnumDesignTypeConverters.cs (1)
115 if (strValue.EndsWith("%", StringComparison.OrdinalIgnoreCase) && float.TryParse(strValue.Substring(0, strValue.Length - 1), NumberStyles.Number, CultureInfo.InvariantCulture, out float relflex))
GridLengthDesignTypeConverter.cs (2)
25 if (string.Compare(value, "auto", StringComparison.OrdinalIgnoreCase) == 0) 27 if (string.Compare(value, "*", StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.Maui.Controls.SourceGen (5)
CodeBehindGenerator.cs (5)
454 return !parts[indexOfCompile + 1].Trim('"', '\'').Equals("false", StringComparison.OrdinalIgnoreCase); 658 if (targetFramework.IndexOf("-android", StringComparison.OrdinalIgnoreCase) != -1) 663 if (targetFramework.IndexOf("-ios", StringComparison.OrdinalIgnoreCase) != -1) 668 if (targetFramework.IndexOf("-macos", StringComparison.OrdinalIgnoreCase) != -1) 673 if (targetFramework.IndexOf("-maccatalyst", StringComparison.OrdinalIgnoreCase) != -1)
Microsoft.Maui.Controls.Xaml (9)
SimplifyOnPlatformVisitor.cs (4)
16 if (targetFramework.IndexOf("-android", StringComparison.OrdinalIgnoreCase) != -1) 18 if (targetFramework.IndexOf("-ios", StringComparison.OrdinalIgnoreCase) != -1) 20 if (targetFramework.IndexOf("-macos", StringComparison.OrdinalIgnoreCase) != -1) 22 if (targetFramework.IndexOf("-maccatalyst", StringComparison.OrdinalIgnoreCase) != -1)
XamlLoader.cs (5)
293 if (!resource.EndsWith(".xaml", StringComparison.OrdinalIgnoreCase)) 304 if (resource.EndsWith(".xaml", StringComparison.OrdinalIgnoreCase)) 324 string.Compare(info.FileName, filename, StringComparison.OrdinalIgnoreCase) == 0) 332 if (resource.EndsWith("." + filename, StringComparison.OrdinalIgnoreCase) || 333 string.Compare(resource, filename, StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.Maui.Essentials (2)
Types\Shared\WebUtils.shared.cs (2)
92 if (!callbackUrl.Scheme.Equals(expectedUrl.Scheme, StringComparison.OrdinalIgnoreCase)) 97 if (!callbackUrl.Host.Equals(expectedUrl.Host, StringComparison.OrdinalIgnoreCase))
Microsoft.Maui.Graphics (8)
Color.cs (6)
610 if (value.StartsWith("rgba".AsSpan(), StringComparison.OrdinalIgnoreCase)) 633 if (value.StartsWith("rgb".AsSpan(), StringComparison.OrdinalIgnoreCase)) 654 if (value.StartsWith("hsla".AsSpan(), StringComparison.OrdinalIgnoreCase)) 677 if (value.StartsWith("hsl".AsSpan(), StringComparison.OrdinalIgnoreCase)) 698 if (value.StartsWith("hsva".AsSpan(), StringComparison.OrdinalIgnoreCase)) 721 if (value.StartsWith("hsv".AsSpan(), StringComparison.OrdinalIgnoreCase))
Font.cs (1)
51 ((Name is null && other.Name is null) || Name.Equals(other.Name, StringComparison.OrdinalIgnoreCase));
InvariantExtensions.cs (1)
20 return target.Equals(value, StringComparison.OrdinalIgnoreCase);
Microsoft.Maui.Resizetizer (2)
GetMauiAssetPath.cs (1)
86 if (path.StartsWith(projectDirectory, StringComparison.OrdinalIgnoreCase))
ResizeImageInfo.cs (1)
57 => extension?.Equals(".svg", StringComparison.OrdinalIgnoreCase) ?? false;
Microsoft.ML.AutoML (1)
ColumnInference\PurposeInference.cs (1)
138if (spanStr.EndsWith(ext, StringComparison.OrdinalIgnoreCase))
Microsoft.ML.Core (2)
ComponentModel\AssemblyLoadingUtils.cs (1)
181if (name.StartsWith(s, StringComparison.OrdinalIgnoreCase))
ComponentModel\ComponentCatalog.cs (1)
900return aliases.Any(a => string.Equals(name, a, StringComparison.OrdinalIgnoreCase));
Microsoft.ML.CpuMath.PerformanceTests (1)
PerformanceTests.cs (1)
57if (string.Equals(cpumathSeed, "random", StringComparison.OrdinalIgnoreCase))
Microsoft.ML.CpuMath.UnitTests (1)
UnitTests.cs (1)
36public static bool IsNetCore => Environment.Version.Major >= 5 || RuntimeInformation.FrameworkDescription.StartsWith(".NET Core", StringComparison.OrdinalIgnoreCase);
Microsoft.ML.Data (11)
Commands\DataCommand.cs (4)
356string.Equals(ext, ".txt", StringComparison.OrdinalIgnoreCase) || 357string.Equals(ext, ".tlc", StringComparison.OrdinalIgnoreCase); 358var isBinary = string.Equals(ext, ".idv", StringComparison.OrdinalIgnoreCase); 359var isTranspose = string.Equals(ext, ".tdv", StringComparison.OrdinalIgnoreCase);
Commands\EvaluateCommand.cs (1)
74if (input.Equals(LoadName, StringComparison.OrdinalIgnoreCase) || (CanBeWeighted && input == "Weighted" + LoadName))
Commands\SaveDataCommand.cs (2)
65var isBinary = string.Equals(ext, ".idv", StringComparison.OrdinalIgnoreCase); 66var isTranspose = string.Equals(ext, ".tdv", StringComparison.OrdinalIgnoreCase);
EntryPoints\InputBuilder.cs (1)
96return aliases.Any(a => string.Equals(name, a, StringComparison.OrdinalIgnoreCase));
Transforms\ValueMapping.cs (1)
622if (extension.Equals(".idv", StringComparison.OrdinalIgnoreCase))
Transforms\ValueToKeyMappingTransformer.cs (2)
413bool isBinary = string.Equals(ext, ".idv", StringComparison.OrdinalIgnoreCase); 414bool isTranspose = string.Equals(ext, ".tdv", StringComparison.OrdinalIgnoreCase);
Microsoft.ML.InternalCodeAnalyzer (3)
NameAnalyzer.cs (1)
141=> !string.IsNullOrEmpty(name) && name.StartsWith("_", StringComparison.OrdinalIgnoreCase) && Utils.NameIsGood(name, 1, false);
NameFixProvider.cs (2)
65if (docName.Length - 3 == originalName.Length && docName.EndsWith(".cs", StringComparison.OrdinalIgnoreCase) 66&& context.Document.Name.StartsWith(originalName, StringComparison.OrdinalIgnoreCase))
Microsoft.ML.Parquet (1)
PartitionedPathUtils.cs (1)
53if (uri.Scheme.Equals("file", StringComparison.OrdinalIgnoreCase))
Microsoft.ML.ResultProcessor (3)
ResultProcessor.cs (3)
438string.Equals(x.Name, "CV", StringComparison.OrdinalIgnoreCase) || 439string.Equals(x.Name, "TrainTest", StringComparison.OrdinalIgnoreCase) || 440string.Equals(x.Name, "Test", StringComparison.OrdinalIgnoreCase));
Microsoft.ML.Samples (2)
Dynamic\DataOperations\FilterRowsByCustomPredicate.cs (1)
49data, input => input.Name.StartsWith("r", StringComparison.OrdinalIgnoreCase));
Dynamic\DataOperations\FilterRowsByStatefulCustomPredicate.cs (1)
53return (filter && input.Name.StartsWith("r", StringComparison.OrdinalIgnoreCase));
Microsoft.ML.Sweeper (2)
ConfigRunner.cs (2)
104if (Exe == null || Exe.EndsWith("maml", StringComparison.OrdinalIgnoreCase) || 105Exe.EndsWith("maml.exe", StringComparison.OrdinalIgnoreCase))
Microsoft.ML.Tests (4)
ImagesTests.cs (4)
1284if (extension.Equals(".jpeg", StringComparison.OrdinalIgnoreCase) || 1285extension.Equals(".jpg", StringComparison.OrdinalIgnoreCase) || 1286extension.Equals(".png", StringComparison.OrdinalIgnoreCase) || 1287extension.Equals(".webp", StringComparison.OrdinalIgnoreCase))
Microsoft.ML.Tokenizers (8)
Model\TiktokenTokenizer.cs (8)
1147if (modelName.StartsWith(Prefix, StringComparison.OrdinalIgnoreCase)) 1197Phi4ModelName.Equals(modelName, StringComparison.OrdinalIgnoreCase) ? 1533if (encodingName.Equals(Cl100kBaseEncodingName, StringComparison.OrdinalIgnoreCase)) 1537else if (encodingName.Equals(O200kBaseEncodingName, StringComparison.OrdinalIgnoreCase)) 1541else if (encodingName.Equals(O200kHarmonyEncodingName, StringComparison.OrdinalIgnoreCase)) 1545else if (encodingName.Equals(P50kBaseEncodingName, StringComparison.OrdinalIgnoreCase)) 1549else if (encodingName.Equals(P50kEditEncodingName, StringComparison.OrdinalIgnoreCase)) 1553else if (encodingName.Equals(R50kBaseEncodingName, StringComparison.OrdinalIgnoreCase))
Microsoft.ML.Tokenizers.Tests (5)
BpeTests.cs (5)
887!"BPE".Equals(typeElement.GetString(), StringComparison.OrdinalIgnoreCase) || 964"Sequence".Equals(typeElement.GetString(), StringComparison.OrdinalIgnoreCase) && 975if ("Split".Equals(preTokenizerType, StringComparison.OrdinalIgnoreCase)) 987else if ("ByteLevel".Equals(preTokenizerType, StringComparison.OrdinalIgnoreCase)) 1012if (content is not null && !content.StartsWith("<|place▁holder", StringComparison.OrdinalIgnoreCase))
Microsoft.ML.Transforms (2)
Text\StopWordsRemovingTransformer.cs (2)
791bool isBinary = string.Equals(ext, ".idv", StringComparison.OrdinalIgnoreCase); 792bool isTranspose = string.Equals(ext, ".tdv", StringComparison.OrdinalIgnoreCase);
Microsoft.Net.Http.Headers (58)
CacheControlHeaderValue.cs (12)
577if (StringSegment.Equals(PublicString, name, StringComparison.OrdinalIgnoreCase)) 588if (StringSegment.Equals(MaxAgeString, name, StringComparison.OrdinalIgnoreCase)) 592else if (StringSegment.Equals(PrivateString, name, StringComparison.OrdinalIgnoreCase)) 603if (StringSegment.Equals(NoCacheString, name, StringComparison.OrdinalIgnoreCase)) 607else if (StringSegment.Equals(NoStoreString, name, StringComparison.OrdinalIgnoreCase)) 611else if (StringSegment.Equals(SharedMaxAgeString, name, StringComparison.OrdinalIgnoreCase)) 622if (StringSegment.Equals(MaxStaleString, name, StringComparison.OrdinalIgnoreCase)) 630else if (StringSegment.Equals(MinFreshString, name, StringComparison.OrdinalIgnoreCase)) 641if (StringSegment.Equals(NoTransformString, name, StringComparison.OrdinalIgnoreCase)) 652if (StringSegment.Equals(OnlyIfCachedString, name, StringComparison.OrdinalIgnoreCase)) 663if (StringSegment.Equals(MustRevalidateString, name, StringComparison.OrdinalIgnoreCase)) 674if (StringSegment.Equals(ProxyRevalidateString, name, StringComparison.OrdinalIgnoreCase))
ContentDispositionHeaderValue.cs (2)
240return _dispositionType.Equals(other._dispositionType, StringComparison.OrdinalIgnoreCase) && 589|| !parts[2].Equals("b", StringComparison.OrdinalIgnoreCase))
ContentRangeHeaderValue.cs (1)
152StringSegment.Equals(Unit, other.Unit, StringComparison.OrdinalIgnoreCase));
CookieHeaderValue.cs (2)
203return StringSegment.Equals(_name, other._name, StringComparison.OrdinalIgnoreCase) 204&& StringSegment.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase);
HeaderUtilities.cs (2)
253&& string.Compare(headerValues[i], current, targetValue, 0, tokenLength, StringComparison.OrdinalIgnoreCase) == 0 309&& string.Compare(segment, current, targetDirectives, 0, tokenLength, StringComparison.OrdinalIgnoreCase) == 0)
MediaTypeHeaderValue.cs (16)
360SubTypeWithoutSuffix.Equals(WildcardString, StringComparison.OrdinalIgnoreCase); 483return _mediaType.Equals(other._mediaType, StringComparison.OrdinalIgnoreCase) && 672set.Type.Equals(Type, StringComparison.OrdinalIgnoreCase); 680Type.Equals(type, StringComparison.OrdinalIgnoreCase); 753set.SubTypeWithoutSuffix.Equals(SubTypeWithoutSuffix, StringComparison.OrdinalIgnoreCase); 767return SubTypeWithoutSuffix.Equals(WildcardString, StringComparison.OrdinalIgnoreCase) || 768SubTypeWithoutSuffix.Equals(subTypeWithoutSuffix, StringComparison.OrdinalIgnoreCase); 773return set.SubType.Equals(SubType, StringComparison.OrdinalIgnoreCase) || 774set.SubType.Equals(Suffix, StringComparison.OrdinalIgnoreCase); 779return subType.Equals(SubType, StringComparison.OrdinalIgnoreCase) || 780SubType.Equals(suffix, StringComparison.OrdinalIgnoreCase); 791if (parameter.Name.Equals(WildcardString, StringComparison.OrdinalIgnoreCase)) 798if (parameter.Name.Equals(QualityString, StringComparison.OrdinalIgnoreCase)) 812if (!StringSegment.Equals(parameter.Value, localParameter.Value, StringComparison.OrdinalIgnoreCase)) 825return set.Suffix.Equals(Suffix, StringComparison.OrdinalIgnoreCase); 832return Suffix.Equals(suffix, StringComparison.OrdinalIgnoreCase);
MediaTypeHeaderValueComparer.cs (3)
55if (!mediaType1.Type.Equals(mediaType2.Type, StringComparison.OrdinalIgnoreCase)) 82else if (!mediaType1.SubType.Equals(mediaType2.SubType, StringComparison.OrdinalIgnoreCase)) 101else if (!mediaType1.Suffix.Equals(mediaType2.Suffix, StringComparison.OrdinalIgnoreCase))
NameValueHeaderValue.cs (3)
147if (!_name.Equals(other._name, StringComparison.OrdinalIgnoreCase)) 168return (_value.Equals(other._value, StringComparison.OrdinalIgnoreCase)); 446if (value.Name.Equals(name, StringComparison.OrdinalIgnoreCase))
RangeHeaderValue.cs (1)
112return StringSegment.Equals(_unit, other._unit, StringComparison.OrdinalIgnoreCase) &&
SetCookieHeaderValue.cs (14)
538if (StringSegment.Equals(token, ExpiresToken, StringComparison.OrdinalIgnoreCase)) 556else if (StringSegment.Equals(token, MaxAgeToken, StringComparison.OrdinalIgnoreCase)) 605else if (StringSegment.Equals(token, DomainToken, StringComparison.OrdinalIgnoreCase)) 617else if (StringSegment.Equals(token, PathToken, StringComparison.OrdinalIgnoreCase)) 628else if (StringSegment.Equals(token, SecureToken, StringComparison.OrdinalIgnoreCase)) 634else if (StringSegment.Equals(token, SameSiteToken, StringComparison.OrdinalIgnoreCase)) 644if (StringSegment.Equals(enforcementMode, SameSiteStrictToken, StringComparison.OrdinalIgnoreCase)) 648else if (StringSegment.Equals(enforcementMode, SameSiteLaxToken, StringComparison.OrdinalIgnoreCase)) 652else if (StringSegment.Equals(enforcementMode, SameSiteNoneToken, StringComparison.OrdinalIgnoreCase)) 663else if (StringSegment.Equals(token, HttpOnlyToken, StringComparison.OrdinalIgnoreCase)) 733return StringSegment.Equals(_name, other._name, StringComparison.OrdinalIgnoreCase) 734&& StringSegment.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase) 737&& StringSegment.Equals(Domain, other.Domain, StringComparison.OrdinalIgnoreCase) 738&& StringSegment.Equals(Path, other.Path, StringComparison.OrdinalIgnoreCase)
StringWithQualityHeaderValue.cs (1)
89if (!StringSegment.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase))
StringWithQualityHeaderValueComparer.cs (1)
58if (!StringSegment.Equals(stringWithQuality1.Value, stringWithQuality2.Value, StringComparison.OrdinalIgnoreCase))
Microsoft.VisualBasic.Core (33)
Microsoft\VisualBasic\DateAndTime.vb (3)
83Return String.Equals(langName, "zh", StringComparison.OrdinalIgnoreCase) OrElse _ 84String.Equals(langName, "ko", StringComparison.OrdinalIgnoreCase) OrElse _ 85String.Equals(langName, "ja", StringComparison.OrdinalIgnoreCase)
Microsoft\VisualBasic\FileIO\FileSystem.vb (12)
92(file.EndsWith(IO.Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase) Or 93file.EndsWith(IO.Path.AltDirectorySeparatorChar, StringComparison.OrdinalIgnoreCase)) Then 686StringComparison.OrdinalIgnoreCase), "Invalid FullNewPath") 723StringComparison.OrdinalIgnoreCase), "Invalid FullNewPath") 925If TargetDirectoryFullPath.Equals(SourceDirectoryFullPath, StringComparison.OrdinalIgnoreCase) Then 935SourceDirectoryFullPath, StringComparison.OrdinalIgnoreCase) Then 1130sourceFileFullPath.Equals(destinationFileFullPath, StringComparison.OrdinalIgnoreCase) Then 1468If Not GetParentPath(FullPath).Equals(Path, StringComparison.OrdinalIgnoreCase) Then 1540Return String.Equals(IO.Path.GetPathRoot(Path1), IO.Path.GetPathRoot(Path2), StringComparison.OrdinalIgnoreCase) 1561Return String.Equals(Path, IO.Path.GetPathRoot(Path), StringComparison.OrdinalIgnoreCase) 1576If Path.Equals(IO.Path.GetPathRoot(Path), StringComparison.OrdinalIgnoreCase) Then 2226Return New String(CharBuffer).Contains(m_SearchText, StringComparison.OrdinalIgnoreCase)
Microsoft\VisualBasic\FileSystem.vb (1)
1351If System.String.Equals(sPath, oFile.GetAbsolutePath(), StringComparison.OrdinalIgnoreCase) Then
Microsoft\VisualBasic\Interaction.vb (1)
516If String.Equals(Environment.MachineName, ServerName, StringComparison.OrdinalIgnoreCase) Then
Microsoft\VisualBasic\Strings.vb (16)
1078If String.Equals(Style, NAMEDFORMAT_FIXED, StringComparison.OrdinalIgnoreCase) Then 1090If String.Equals(Style, NAMEDFORMAT_YES_NO, StringComparison.OrdinalIgnoreCase) Then 1096If String.Equals(Style, NAMEDFORMAT_ON_OFF, StringComparison.OrdinalIgnoreCase) Then 1107If String.Equals(Style, NAMEDFORMAT_PERCENT, StringComparison.OrdinalIgnoreCase) Then 1120If String.Equals(Style, NAMEDFORMAT_STANDARD, StringComparison.OrdinalIgnoreCase) Then 1125If String.Equals(Style, NAMEDFORMAT_CURRENCY, StringComparison.OrdinalIgnoreCase) Then 1138If String.Equals(Style, NAMEDFORMAT_LONG_TIME, StringComparison.OrdinalIgnoreCase) Then 1144If String.Equals(Style, NAMEDFORMAT_LONG_DATE, StringComparison.OrdinalIgnoreCase) Then 1159If String.Equals(Style, NAMEDFORMAT_TRUE_FALSE, StringComparison.OrdinalIgnoreCase) Then 1165If String.Equals(Style, NAMEDFORMAT_SHORT_TIME, StringComparison.OrdinalIgnoreCase) Then 1171If String.Equals(Style, NAMEDFORMAT_SHORT_DATE, StringComparison.OrdinalIgnoreCase) Then 1177If String.Equals(Style, NAMEDFORMAT_SCIENTIFIC, StringComparison.OrdinalIgnoreCase) Then 1197If String.Equals(Style, NAMEDFORMAT_MEDIUM_TIME, StringComparison.OrdinalIgnoreCase) Then 1203If String.Equals(Style, NAMEDFORMAT_MEDIUM_DATE, StringComparison.OrdinalIgnoreCase) Then 1212If String.Equals(Style, NAMEDFORMAT_GENERAL_DATE, StringComparison.OrdinalIgnoreCase) Then 1221If String.Equals(Style, NAMEDFORMAT_GENERAL_NUMBER, StringComparison.OrdinalIgnoreCase) Then
Microsoft.VisualStudio.LanguageServices (32)
CommonControls\NewTypeDestinationSelectionViewModel.cs (1)
132if (!Path.GetExtension(trimmedFileName).Equals(_fileExtension, StringComparison.OrdinalIgnoreCase))
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
221if (string.Equals(currentStringValue, data.Category, StringComparison.OrdinalIgnoreCase))
DocumentationComments\VisualStudioDocumentationProvider.cs (1)
64string.Equals(_filePath, other._filePath, StringComparison.OrdinalIgnoreCase);
EditorConfigSettings\SettingsEditorPane.SearchFilter.cs (1)
131=> (columnValue is not null) && (columnValue.IndexOf(searchToken.ParsedTokenText, StringComparison.OrdinalIgnoreCase) >= 0);
GenerateType\GenerateTypeDialogViewModel.cs (2)
654if (currentFileName.EndsWith(desiredFileExtension, StringComparison.OrdinalIgnoreCase)) 661if (currentFileName.EndsWith(undesiredFileExtension, StringComparison.OrdinalIgnoreCase))
Implementation\AbstractEditorFactory.cs (1)
193return "Form".Equals(pszPhysicalView, StringComparison.OrdinalIgnoreCase);
Interactive\VsResetInteractive.cs (2)
168if (targetFrameworkMoniker.StartsWith(".NETCoreApp", StringComparison.OrdinalIgnoreCase) || 169targetFrameworkMoniker.StartsWith(".NETStandard", StringComparison.OrdinalIgnoreCase))
Library\ObjectBrowser\AbstractListItemFactory.cs (4)
424else if (namespaceListItem.SearchText.IndexOf(searchString, StringComparison.OrdinalIgnoreCase) >= 0) 709if (listItem.DisplayText.IndexOf(searchString, StringComparison.OrdinalIgnoreCase) >= 0) 761else if (typeListItem.SearchText.IndexOf(searchString, StringComparison.OrdinalIgnoreCase) >= 0) 796else if (memberListItem.SearchText.IndexOf(searchString, StringComparison.OrdinalIgnoreCase) >= 0)
Library\ObjectBrowser\ObjectList.cs (2)
637if (matchName.IndexOf(name, StringComparison.OrdinalIgnoreCase) >= 0) 850if (string.Equals(data.bstrFile, metadataReference.FilePath, StringComparison.OrdinalIgnoreCase))
PickMembers\PickMembersDialogViewModel.cs (1)
55: [.. _allMembers.Where(m => m.SymbolAutomationText.IndexOf(searchText, StringComparison.OrdinalIgnoreCase) >= 0)];
ProjectSystem\FileChangeWatcher.cs (1)
396if (WatchedDirectory.FilePathCoveredByWatchedDirectories(_watchedDirectories, filePath, StringComparison.OrdinalIgnoreCase))
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
387if (!name.StartsWith("<", StringComparison.OrdinalIgnoreCase))
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
133=> _runtimeDirectories.Any(static (d, fullPath) => fullPath.StartsWith(d, StringComparison.OrdinalIgnoreCase), fullPath);
ProjectSystem\RuleSets\RuleSetEventHandler.cs (4)
92if (Path.GetExtension(oldFileFullPath).Equals(".ruleset", StringComparison.OrdinalIgnoreCase)) 171Path.GetExtension(fileFullPath).Equals(".ruleset", StringComparison.OrdinalIgnoreCase)) 191Path.GetExtension(fileFullPath).Equals(".ruleset", StringComparison.OrdinalIgnoreCase)) 251if (codeAnalysisRuleSetFullPath.Equals(oldRuleSetFilePath, StringComparison.OrdinalIgnoreCase))
Snippets\SnippetExpansionClient.cs (1)
316if (codeNode.Value.IndexOf(string.Format("{0}end{0}", delimiter), StringComparison.OrdinalIgnoreCase) != -1)
src\Compilers\Core\Portable\FileKey.cs (1)
64string.Equals(this.FullPath, other.FullPath, StringComparison.OrdinalIgnoreCase);
SyncNamespaces\SyncNamespacesCommandHandler.cs (3)
78.Any(project => project.Language.Equals(LanguageNames.CSharp, StringComparison.OrdinalIgnoreCase)); 107.WhereAsArray(project => project.Language.Equals(LanguageNames.CSharp, StringComparison.OrdinalIgnoreCase)); 119.Where(project => project.FilePath?.Equals(projectFilePath, StringComparison.OrdinalIgnoreCase) == true)
TaskList\ProjectExternalErrorReporter.cs (2)
300if (prefix.Equals("CS", StringComparison.OrdinalIgnoreCase) || prefix.Equals("BC", StringComparison.OrdinalIgnoreCase))
UnusedReferences\Dialog\UnusedReferencesTableProvider.DataSource.cs (1)
36var project = solution.Projects.First(project => projectFilePath.Equals(project.FilePath, StringComparison.OrdinalIgnoreCase));
Venus\ContainedDocument.cs (1)
1080return string.Equals(razorTag, tag, StringComparison.OrdinalIgnoreCase) && (!checkAt || snapshot[start - 1] == RazorExplicit);
Microsoft.VisualStudio.LanguageServices.Implementation (5)
CodeModel\RootCodeModel.cs (1)
65if (document.FilePath != null && string.Equals(absoluteFilePath, document.FilePath, StringComparison.OrdinalIgnoreCase))
SolutionExplorer\AnalyzersCommandHandler.cs (1)
240Path.GetExtension(itemName).Equals(".ruleset", StringComparison.OrdinalIgnoreCase);
SolutionExplorer\DiagnosticItem\CpsDiagnosticItemSource.cs (1)
127return project.AnalyzerReferences.FirstOrDefault(r => string.Equals(r.FullPath, _analyzerFilePath, StringComparison.OrdinalIgnoreCase));
SolutionExplorer\DiagnosticItem\CpsUtilities.cs (2)
42if (analyzerNodeCanonicalName.StartsWith(projectDirectoryPath, StringComparison.OrdinalIgnoreCase)) 62if (analyzerNodeCanonicalName.IndexOf(@"analyzerdependency\", backslashIndex + 1, @"analyzerdependency\".Length, StringComparison.OrdinalIgnoreCase) != backslashIndex + 1)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\XamlProjectService.cs (1)
230if (oldMoniker.Equals(newMoniker, StringComparison.OrdinalIgnoreCase))
Microsoft.Web.Xdt.Extensions (3)
InsertOrAppendAttribute.cs (3)
58if (trimmedArg.StartsWith(name, StringComparison.OrdinalIgnoreCase)) 94if (string.Equals(att.Name, AttributeName, StringComparison.OrdinalIgnoreCase)) 111if (string.Equals(att.Name, AttributeName, StringComparison.OrdinalIgnoreCase))
Mvc.Api.Analyzers.Test (1)
Infrastructure\MvcDiagnosticAnalyzerRunner.cs (1)
37if (!project.MetadataReferences.Any(c => string.Equals(Path.GetFileNameWithoutExtension(c.Display), Path.GetFileNameWithoutExtension(assembly), StringComparison.OrdinalIgnoreCase)))
Mvc.RoutingWebSite (3)
StartupForDynamic.cs (1)
58var split = kvp.Replace("%2F", "/", StringComparison.OrdinalIgnoreCase).Split("=");
StartupForDynamicAndRazorPages.cs (1)
47var split = kvp.Replace("%2F", "/", StringComparison.OrdinalIgnoreCase).Split("=");
StartupForDynamicOrder.cs (1)
111var split = kvp.Replace("%2F", "/", StringComparison.OrdinalIgnoreCase).Split("=");
NegotiateAuthSample (1)
Program.cs (1)
19if (string.Equals("HttpSys", webBuilder.GetSetting("server"), StringComparison.OrdinalIgnoreCase))
PresentationBuildTasks (170)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (1)
329if (!string.Equals(localizableString, "false", StringComparison.OrdinalIgnoreCase))
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (4)
84if (!string.Equals(IncludePackageReferencesDuringMarkupCompilation, "false", StringComparison.OrdinalIgnoreCase)) 629if (root.ChildNodes[i] is XmlElement nodeGroup && string.Equals(nodeGroup.Name, groupName, StringComparison.OrdinalIgnoreCase)) 640if (nodeGroup.ChildNodes[j] is XmlElement nodeItem && string.Equals(nodeItem.Name, sItemName, StringComparison.OrdinalIgnoreCase)) 799if (xmlAttribute.Name.Equals("Sdk", StringComparison.OrdinalIgnoreCase))
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (2)
1534if (string.Equals(localTypeXamlFile, xamlInputFullPath, StringComparison.OrdinalIgnoreCase)) 1711if (!string.Equals(strLocalizable, "false", StringComparison.OrdinalIgnoreCase))
MS\Internal\MarkupCompiler\MarkupCompiler.cs (6)
613Guid hashGuid = !string.IsNullOrEmpty(ChecksumAlgorithm) && ChecksumAlgorithm.Equals("SHA256", StringComparison.OrdinalIgnoreCase) 1353return IsLanguageCSharp || (CompilerInfo != null && string.Equals(CompilerInfo.GetLanguages()[0], JSCRIPT, StringComparison.OrdinalIgnoreCase)); 1360return CompilerInfo == null || !string.Equals(CompilerInfo.GetLanguages()[0], JSHARP, StringComparison.OrdinalIgnoreCase); 1601if (TargetPath.StartsWith(SourceFileInfo.SourcePath, StringComparison.OrdinalIgnoreCase)) 2098_isLangCSharp = string.Equals(language, CSHARP, StringComparison.OrdinalIgnoreCase); 2107_isLangVB = string.Equals(language, VB, StringComparison.OrdinalIgnoreCase);
MS\Internal\MarkupCompiler\ParserExtension.cs (1)
497_isInternalRoot = !string.Equals("public", xmlReader.Value.Trim(), StringComparison.OrdinalIgnoreCase);
MS\Internal\MarkupCompiler\PathInternal.cs (2)
40Debug.Assert(comparisonType == StringComparison.Ordinal || comparisonType == StringComparison.OrdinalIgnoreCase); 49int commonLength = PathInternal.GetCommonPathLength(relativeTo, path, ignoreCase: comparisonType == StringComparison.OrdinalIgnoreCase);
MS\Internal\Tasks\CompilerWrapper.cs (2)
259if (string.Equals(asmReference.AssemblyName, assemblyName, StringComparison.OrdinalIgnoreCase)) 402if (fullFilePath.StartsWith(_sourceDir,StringComparison.OrdinalIgnoreCase))
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (2)
348IsSettingModified = !string.Equals(textSource, textTarget, StringComparison.OrdinalIgnoreCase); 424if (string.Equals(xamlfile.Path, CompilerLocalReference.LocalMarkupPages[j].FilePath, StringComparison.OrdinalIgnoreCase))
MS\Internal\Tasks\TaskHelper.cs (1)
102if (fullpath2.StartsWith(fullpath1, StringComparison.OrdinalIgnoreCase))
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\Knowncolors.cs (141)
286if (colorString.Equals("Red", StringComparison.OrdinalIgnoreCase)) 288if (colorString.Equals("Tan", StringComparison.OrdinalIgnoreCase)) 295if (colorString.Equals("Aqua", StringComparison.OrdinalIgnoreCase)) 299if (colorString.Equals("Blue", StringComparison.OrdinalIgnoreCase)) 303if (colorString.Equals("Cyan", StringComparison.OrdinalIgnoreCase)) 307if (colorString.Equals("Gold", StringComparison.OrdinalIgnoreCase)) 309if (colorString.Equals("Gray", StringComparison.OrdinalIgnoreCase)) 313if (colorString.Equals("Lime", StringComparison.OrdinalIgnoreCase)) 317if (colorString.Equals("Navy", StringComparison.OrdinalIgnoreCase)) 321if (colorString.Equals("Peru", StringComparison.OrdinalIgnoreCase)) 323if (colorString.Equals("Pink", StringComparison.OrdinalIgnoreCase)) 325if (colorString.Equals("Plum", StringComparison.OrdinalIgnoreCase)) 329if (colorString.Equals("Snow", StringComparison.OrdinalIgnoreCase)) 333if (colorString.Equals("Teal", StringComparison.OrdinalIgnoreCase)) 342if (colorString.Equals("Azure", StringComparison.OrdinalIgnoreCase)) 346if (colorString.Equals("Beige", StringComparison.OrdinalIgnoreCase)) 348if (colorString.Equals("Black", StringComparison.OrdinalIgnoreCase)) 350if (colorString.Equals("Brown", StringComparison.OrdinalIgnoreCase)) 354if (colorString.Equals("Coral", StringComparison.OrdinalIgnoreCase)) 358if (colorString.Equals("Green", StringComparison.OrdinalIgnoreCase)) 362if (colorString.Equals("Ivory", StringComparison.OrdinalIgnoreCase)) 366if (colorString.Equals("Khaki", StringComparison.OrdinalIgnoreCase)) 370if (colorString.Equals("Linen", StringComparison.OrdinalIgnoreCase)) 374if (colorString.Equals("Olive", StringComparison.OrdinalIgnoreCase)) 378if (colorString.Equals("Wheat", StringComparison.OrdinalIgnoreCase)) 380if (colorString.Equals("White", StringComparison.OrdinalIgnoreCase)) 389if (colorString.Equals("Bisque", StringComparison.OrdinalIgnoreCase)) 393if (colorString.Equals("Indigo", StringComparison.OrdinalIgnoreCase)) 397if (colorString.Equals("Maroon", StringComparison.OrdinalIgnoreCase)) 401if (colorString.Equals("Orange", StringComparison.OrdinalIgnoreCase)) 403if (colorString.Equals("Orchid", StringComparison.OrdinalIgnoreCase)) 407if (colorString.Equals("Purple", StringComparison.OrdinalIgnoreCase)) 411if (colorString.Equals("Salmon", StringComparison.OrdinalIgnoreCase)) 413if (colorString.Equals("Sienna", StringComparison.OrdinalIgnoreCase)) 415if (colorString.Equals("Silver", StringComparison.OrdinalIgnoreCase)) 419if (colorString.Equals("Tomato", StringComparison.OrdinalIgnoreCase)) 423if (colorString.Equals("Violet", StringComparison.OrdinalIgnoreCase)) 427if (colorString.Equals("Yellow", StringComparison.OrdinalIgnoreCase)) 436if (colorString.Equals("Crimson", StringComparison.OrdinalIgnoreCase)) 440if (colorString.Equals("DarkRed", StringComparison.OrdinalIgnoreCase)) 442if (colorString.Equals("DimGray", StringComparison.OrdinalIgnoreCase)) 446if (colorString.Equals("Fuchsia", StringComparison.OrdinalIgnoreCase)) 450if (colorString.Equals("HotPink", StringComparison.OrdinalIgnoreCase)) 454if (colorString.Equals("Magenta", StringComparison.OrdinalIgnoreCase)) 458if (colorString.Equals("OldLace", StringComparison.OrdinalIgnoreCase)) 462if (colorString.Equals("SkyBlue", StringComparison.OrdinalIgnoreCase)) 466if (colorString.Equals("Thistle", StringComparison.OrdinalIgnoreCase)) 475if (colorString.Equals("Cornsilk", StringComparison.OrdinalIgnoreCase)) 479if (colorString.Equals("DarkBlue", StringComparison.OrdinalIgnoreCase)) 481if (colorString.Equals("DarkCyan", StringComparison.OrdinalIgnoreCase)) 483if (colorString.Equals("DarkGray", StringComparison.OrdinalIgnoreCase)) 485if (colorString.Equals("DeepPink", StringComparison.OrdinalIgnoreCase)) 489if (colorString.Equals("Honeydew", StringComparison.OrdinalIgnoreCase)) 493if (colorString.Equals("Lavender", StringComparison.OrdinalIgnoreCase)) 497if (colorString.Equals("Moccasin", StringComparison.OrdinalIgnoreCase)) 501if (colorString.Equals("SeaGreen", StringComparison.OrdinalIgnoreCase)) 503if (colorString.Equals("SeaShell", StringComparison.OrdinalIgnoreCase)) 512if (colorString.Equals("AliceBlue", StringComparison.OrdinalIgnoreCase)) 516if (colorString.Equals("BurlyWood", StringComparison.OrdinalIgnoreCase)) 520if (colorString.Equals("CadetBlue", StringComparison.OrdinalIgnoreCase)) 522if (colorString.Equals("Chocolate", StringComparison.OrdinalIgnoreCase)) 526if (colorString.Equals("DarkGreen", StringComparison.OrdinalIgnoreCase)) 528if (colorString.Equals("DarkKhaki", StringComparison.OrdinalIgnoreCase)) 532if (colorString.Equals("Firebrick", StringComparison.OrdinalIgnoreCase)) 536if (colorString.Equals("Gainsboro", StringComparison.OrdinalIgnoreCase)) 538if (colorString.Equals("Goldenrod", StringComparison.OrdinalIgnoreCase)) 542if (colorString.Equals("IndianRed", StringComparison.OrdinalIgnoreCase)) 546if (colorString.Equals("LawnGreen", StringComparison.OrdinalIgnoreCase)) 548if (colorString.Equals("LightBlue", StringComparison.OrdinalIgnoreCase)) 550if (colorString.Equals("LightCyan", StringComparison.OrdinalIgnoreCase)) 552if (colorString.Equals("LightGray", StringComparison.OrdinalIgnoreCase)) 554if (colorString.Equals("LightPink", StringComparison.OrdinalIgnoreCase)) 556if (colorString.Equals("LimeGreen", StringComparison.OrdinalIgnoreCase)) 560if (colorString.Equals("MintCream", StringComparison.OrdinalIgnoreCase)) 562if (colorString.Equals("MistyRose", StringComparison.OrdinalIgnoreCase)) 566if (colorString.Equals("OliveDrab", StringComparison.OrdinalIgnoreCase)) 568if (colorString.Equals("OrangeRed", StringComparison.OrdinalIgnoreCase)) 572if (colorString.Equals("PaleGreen", StringComparison.OrdinalIgnoreCase)) 574if (colorString.Equals("PeachPuff", StringComparison.OrdinalIgnoreCase)) 578if (colorString.Equals("RosyBrown", StringComparison.OrdinalIgnoreCase)) 580if (colorString.Equals("RoyalBlue", StringComparison.OrdinalIgnoreCase)) 584if (colorString.Equals("SlateBlue", StringComparison.OrdinalIgnoreCase)) 586if (colorString.Equals("SlateGray", StringComparison.OrdinalIgnoreCase)) 588if (colorString.Equals("SteelBlue", StringComparison.OrdinalIgnoreCase)) 592if (colorString.Equals("Turquoise", StringComparison.OrdinalIgnoreCase)) 601if (colorString.Equals("Aquamarine", StringComparison.OrdinalIgnoreCase)) 605if (colorString.Equals("BlueViolet", StringComparison.OrdinalIgnoreCase)) 609if (colorString.Equals("Chartreuse", StringComparison.OrdinalIgnoreCase)) 613if (colorString.Equals("DarkOrange", StringComparison.OrdinalIgnoreCase)) 615if (colorString.Equals("DarkOrchid", StringComparison.OrdinalIgnoreCase)) 617if (colorString.Equals("DarkSalmon", StringComparison.OrdinalIgnoreCase)) 619if (colorString.Equals("DarkViolet", StringComparison.OrdinalIgnoreCase)) 621if (colorString.Equals("DodgerBlue", StringComparison.OrdinalIgnoreCase)) 625if (colorString.Equals("GhostWhite", StringComparison.OrdinalIgnoreCase)) 629if (colorString.Equals("LightCoral", StringComparison.OrdinalIgnoreCase)) 631if (colorString.Equals("LightGreen", StringComparison.OrdinalIgnoreCase)) 635if (colorString.Equals("MediumBlue", StringComparison.OrdinalIgnoreCase)) 639if (colorString.Equals("PapayaWhip", StringComparison.OrdinalIgnoreCase)) 641if (colorString.Equals("PowderBlue", StringComparison.OrdinalIgnoreCase)) 645if (colorString.Equals("SandyBrown", StringComparison.OrdinalIgnoreCase)) 649if (colorString.Equals("WhiteSmoke", StringComparison.OrdinalIgnoreCase)) 658if (colorString.Equals("DarkMagenta", StringComparison.OrdinalIgnoreCase)) 660if (colorString.Equals("DeepSkyBlue", StringComparison.OrdinalIgnoreCase)) 664if (colorString.Equals("FloralWhite", StringComparison.OrdinalIgnoreCase)) 666if (colorString.Equals("ForestGreen", StringComparison.OrdinalIgnoreCase)) 670if (colorString.Equals("GreenYellow", StringComparison.OrdinalIgnoreCase)) 674if (colorString.Equals("LightSalmon", StringComparison.OrdinalIgnoreCase)) 676if (colorString.Equals("LightYellow", StringComparison.OrdinalIgnoreCase)) 680if (colorString.Equals("NavajoWhite", StringComparison.OrdinalIgnoreCase)) 684if (colorString.Equals("SaddleBrown", StringComparison.OrdinalIgnoreCase)) 686if (colorString.Equals("SpringGreen", StringComparison.OrdinalIgnoreCase)) 690if (colorString.Equals("Transparent", StringComparison.OrdinalIgnoreCase)) 694if (colorString.Equals("YellowGreen", StringComparison.OrdinalIgnoreCase)) 703if (colorString.Equals("AntiqueWhite", StringComparison.OrdinalIgnoreCase)) 707if (colorString.Equals("DarkSeaGreen", StringComparison.OrdinalIgnoreCase)) 711if (colorString.Equals("LightSkyBlue", StringComparison.OrdinalIgnoreCase)) 713if (colorString.Equals("LemonChiffon", StringComparison.OrdinalIgnoreCase)) 717if (colorString.Equals("MediumOrchid", StringComparison.OrdinalIgnoreCase)) 719if (colorString.Equals("MediumPurple", StringComparison.OrdinalIgnoreCase)) 721if (colorString.Equals("MidnightBlue", StringComparison.OrdinalIgnoreCase)) 730if (colorString.Equals("DarkSlateBlue", StringComparison.OrdinalIgnoreCase)) 732if (colorString.Equals("DarkSlateGray", StringComparison.OrdinalIgnoreCase)) 734if (colorString.Equals("DarkGoldenrod", StringComparison.OrdinalIgnoreCase)) 736if (colorString.Equals("DarkTurquoise", StringComparison.OrdinalIgnoreCase)) 740if (colorString.Equals("LightSeaGreen", StringComparison.OrdinalIgnoreCase)) 742if (colorString.Equals("LavenderBlush", StringComparison.OrdinalIgnoreCase)) 746if (colorString.Equals("PaleGoldenrod", StringComparison.OrdinalIgnoreCase)) 748if (colorString.Equals("PaleTurquoise", StringComparison.OrdinalIgnoreCase)) 750if (colorString.Equals("PaleVioletRed", StringComparison.OrdinalIgnoreCase)) 759if (colorString.Equals("BlanchedAlmond", StringComparison.OrdinalIgnoreCase)) 763if (colorString.Equals("CornflowerBlue", StringComparison.OrdinalIgnoreCase)) 767if (colorString.Equals("DarkOliveGreen", StringComparison.OrdinalIgnoreCase)) 771if (colorString.Equals("LightSlateGray", StringComparison.OrdinalIgnoreCase)) 773if (colorString.Equals("LightSteelBlue", StringComparison.OrdinalIgnoreCase)) 777if (colorString.Equals("MediumSeaGreen", StringComparison.OrdinalIgnoreCase)) 783if (colorString.Equals("MediumSlateBlue", StringComparison.OrdinalIgnoreCase)) 785if (colorString.Equals("MediumTurquoise", StringComparison.OrdinalIgnoreCase)) 787if (colorString.Equals("MediumVioletRed", StringComparison.OrdinalIgnoreCase)) 791if (colorString.Equals("MediumAquamarine", StringComparison.OrdinalIgnoreCase)) 795if (colorString.Equals("MediumSpringGreen", StringComparison.OrdinalIgnoreCase)) 799if (colorString.Equals("LightGoldenrodYellow", StringComparison.OrdinalIgnoreCase))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (2)
3341isDefaultAsm = objectType.Assembly.FullName.StartsWith("PresentationFramework", StringComparison.OrdinalIgnoreCase); 3370isDefaultAsm = objectType.Assembly.FullName.StartsWith("PresentationCore", StringComparison.OrdinalIgnoreCase);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (5)
390if (AssemblyWB == null && string.Equals(asmName, _assemblyNames[0], StringComparison.OrdinalIgnoreCase)) 394else if (AssemblyPC == null && string.Equals(asmName, _assemblyNames[1], StringComparison.OrdinalIgnoreCase)) 398else if (AssemblyPF == null && string.Equals(asmName, _assemblyNames[2], StringComparison.OrdinalIgnoreCase)) 402else if (string.Equals(asmName, "SYSTEM.XML", StringComparison.OrdinalIgnoreCase)) 407else if (string.Equals(asmName, "SYSTEM", StringComparison.OrdinalIgnoreCase))
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ResourceIDHelper.cs (1)
70if (sourcePath.StartsWith(basePath, StringComparison.OrdinalIgnoreCase))
PresentationCore (248)
MS\Internal\AppModel\CookieHandler.cs (1)
78if (string.Equals(headers.Keys[i], "Set-Cookie", StringComparison.OrdinalIgnoreCase))
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
141if (string.Equals(_absoluteLocation.Scheme, Uri.UriSchemeFile, StringComparison.OrdinalIgnoreCase))
MS\Internal\FontCache\DWriteFactory.cs (1)
71if (string.Equals((localPath.Length > 0 && localPath[localPath.Length - 1] != Path.DirectorySeparatorChar) ? localPath + Path.DirectorySeparatorChar : localPath, Util.WindowsFontsUriObject.LocalPath, StringComparison.OrdinalIgnoreCase))
MS\Internal\FontCache\FamilyCollection.cs (4)
128if (string.Equals(familyName, _legacyArabicFonts[i], StringComparison.OrdinalIgnoreCase)) 257if (string.Equals(_systemCompositeFontsNames[i], familyName, StringComparison.OrdinalIgnoreCase)) 435if (string.Equals(localizedFamilyName.Value, familyName, StringComparison.OrdinalIgnoreCase)) 461if (faceName.Equals(name.Value, StringComparison.OrdinalIgnoreCase))
MS\Internal\FontCache\FontCacheUtil.cs (3)
526if (string.Equals(extension, supportedExtension, StringComparison.OrdinalIgnoreCase)) 538return (string.Equals(extension, CompositeFontExtension, StringComparison.OrdinalIgnoreCase)); 941return string.Compare(x._language.IetfLanguageTag, y._language.IetfLanguageTag, StringComparison.OrdinalIgnoreCase);
MS\Internal\FontCache\FontResourceCache.cs (1)
72Debug.Assert(escapedPath.EndsWith(FakeFileName, StringComparison.OrdinalIgnoreCase));
MS\Internal\FontFace\CompositeFontParser.cs (1)
192catch (Exception x) when(string.Equals(x.GetType().FullName, "System.Security.XmlSyntaxException", StringComparison.OrdinalIgnoreCase))
MS\Internal\WpfWebRequestHelper.cs (2)
258if (string.Equals(extension, MimeTypeMapper.XamlExtension, StringComparison.OrdinalIgnoreCase) || 259string.Equals(extension, MimeTypeMapper.XbapExtension, StringComparison.OrdinalIgnoreCase))
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
81return string.Equals(first.Scheme, second.Scheme, StringComparison.OrdinalIgnoreCase) && string.Equals(first.Host, second.Host);
System\Windows\FontStretches.cs (10)
73if (s.Equals("Normal", StringComparison.OrdinalIgnoreCase)) 78if (s.Equals("Medium", StringComparison.OrdinalIgnoreCase)) 86if (s.Equals("Expanded", StringComparison.OrdinalIgnoreCase)) 94if (s.Equals("Condensed", StringComparison.OrdinalIgnoreCase)) 102if (s.Equals("SemiExpanded", StringComparison.OrdinalIgnoreCase)) 110if (s.Equals("SemiCondensed", StringComparison.OrdinalIgnoreCase)) 115if (s.Equals("ExtraExpanded", StringComparison.OrdinalIgnoreCase)) 120if (s.Equals("UltraExpanded", StringComparison.OrdinalIgnoreCase)) 128if (s.Equals("UltraCondensed", StringComparison.OrdinalIgnoreCase)) 133if (s.Equals("ExtraCondensed", StringComparison.OrdinalIgnoreCase))
System\Windows\FontStyles.cs (3)
33if (s.Equals("Normal", StringComparison.OrdinalIgnoreCase)) 38if (s.Equals("Italic", StringComparison.OrdinalIgnoreCase)) 43if (s.Equals("Oblique", StringComparison.OrdinalIgnoreCase))
System\Windows\FontWeights.cs (16)
102if (s.Equals("Bold", StringComparison.OrdinalIgnoreCase)) 107if (s.Equals("Thin", StringComparison.OrdinalIgnoreCase)) 115if (s.Equals("Black", StringComparison.OrdinalIgnoreCase)) 120if (s.Equals("Light", StringComparison.OrdinalIgnoreCase)) 125if (s.Equals("Heavy", StringComparison.OrdinalIgnoreCase)) 133if (s.Equals("Normal", StringComparison.OrdinalIgnoreCase)) 138if (s.Equals("Medium", StringComparison.OrdinalIgnoreCase)) 146if (s.Equals("Regular", StringComparison.OrdinalIgnoreCase)) 154if (s.Equals("SemiBold", StringComparison.OrdinalIgnoreCase)) 159if (s.Equals("DemiBold", StringComparison.OrdinalIgnoreCase)) 167if (s.Equals("ExtraBold", StringComparison.OrdinalIgnoreCase)) 172if (s.Equals("UltraBold", StringComparison.OrdinalIgnoreCase)) 180if (s.Equals("ExtraLight", StringComparison.OrdinalIgnoreCase)) 185if (s.Equals("UltraLight", StringComparison.OrdinalIgnoreCase)) 190if (s.Equals("ExtraBlack", StringComparison.OrdinalIgnoreCase)) 195if (s.Equals("UltraBlack", StringComparison.OrdinalIgnoreCase))
System\Windows\Input\Command\MouseActionConverter.cs (8)
62_ when mouseActionToken.Equals("None", StringComparison.OrdinalIgnoreCase) => MouseAction.None, 63_ when mouseActionToken.Equals("LeftClick", StringComparison.OrdinalIgnoreCase) => MouseAction.LeftClick, 64_ when mouseActionToken.Equals("RightClick", StringComparison.OrdinalIgnoreCase) => MouseAction.RightClick, 65_ when mouseActionToken.Equals("MiddleClick", StringComparison.OrdinalIgnoreCase) => MouseAction.MiddleClick, 66_ when mouseActionToken.Equals("WheelClick", StringComparison.OrdinalIgnoreCase) => MouseAction.WheelClick, 67_ when mouseActionToken.Equals("LeftDoubleClick", StringComparison.OrdinalIgnoreCase) => MouseAction.LeftDoubleClick, 68_ when mouseActionToken.Equals("RightDoubleClick", StringComparison.OrdinalIgnoreCase) => MouseAction.RightDoubleClick, 69_ when mouseActionToken.Equals("MiddleDoubleClick", StringComparison.OrdinalIgnoreCase) => MouseAction.MiddleDoubleClick,
System\Windows\Input\Cursor.cs (2)
55(cursorFile.EndsWith(".cur", StringComparison.OrdinalIgnoreCase) || 56cursorFile.EndsWith(".ani", StringComparison.OrdinalIgnoreCase)))
System\Windows\Input\CursorConverter.cs (2)
170if (text.EndsWith(".cur", StringComparison.OrdinalIgnoreCase) || text.EndsWith(".ani", StringComparison.OrdinalIgnoreCase))
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (1)
109if (sValDefault != null && sValDefault.LastIndexOf(valueToSearchFor, StringComparison.OrdinalIgnoreCase) != -1)
System\Windows\Markup\XmlLanguage.cs (1)
624if(!longTag.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
System\Windows\Media\FontEmbeddingManager.cs (1)
102return String.Equals(x.ToString(), y.ToString(), StringComparison.OrdinalIgnoreCase);
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1019if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase))
System\Windows\Media\Knowncolors.cs (142)
252if ((trimmedString.StartsWith(Parsers.s_ContextColor, StringComparison.OrdinalIgnoreCase))) 286if (colorString.Equals("Red", StringComparison.OrdinalIgnoreCase)) 288if (colorString.Equals("Tan", StringComparison.OrdinalIgnoreCase)) 295if (colorString.Equals("Aqua", StringComparison.OrdinalIgnoreCase)) 299if (colorString.Equals("Blue", StringComparison.OrdinalIgnoreCase)) 303if (colorString.Equals("Cyan", StringComparison.OrdinalIgnoreCase)) 307if (colorString.Equals("Gold", StringComparison.OrdinalIgnoreCase)) 309if (colorString.Equals("Gray", StringComparison.OrdinalIgnoreCase)) 313if (colorString.Equals("Lime", StringComparison.OrdinalIgnoreCase)) 317if (colorString.Equals("Navy", StringComparison.OrdinalIgnoreCase)) 321if (colorString.Equals("Peru", StringComparison.OrdinalIgnoreCase)) 323if (colorString.Equals("Pink", StringComparison.OrdinalIgnoreCase)) 325if (colorString.Equals("Plum", StringComparison.OrdinalIgnoreCase)) 329if (colorString.Equals("Snow", StringComparison.OrdinalIgnoreCase)) 333if (colorString.Equals("Teal", StringComparison.OrdinalIgnoreCase)) 342if (colorString.Equals("Azure", StringComparison.OrdinalIgnoreCase)) 346if (colorString.Equals("Beige", StringComparison.OrdinalIgnoreCase)) 348if (colorString.Equals("Black", StringComparison.OrdinalIgnoreCase)) 350if (colorString.Equals("Brown", StringComparison.OrdinalIgnoreCase)) 354if (colorString.Equals("Coral", StringComparison.OrdinalIgnoreCase)) 358if (colorString.Equals("Green", StringComparison.OrdinalIgnoreCase)) 362if (colorString.Equals("Ivory", StringComparison.OrdinalIgnoreCase)) 366if (colorString.Equals("Khaki", StringComparison.OrdinalIgnoreCase)) 370if (colorString.Equals("Linen", StringComparison.OrdinalIgnoreCase)) 374if (colorString.Equals("Olive", StringComparison.OrdinalIgnoreCase)) 378if (colorString.Equals("Wheat", StringComparison.OrdinalIgnoreCase)) 380if (colorString.Equals("White", StringComparison.OrdinalIgnoreCase)) 389if (colorString.Equals("Bisque", StringComparison.OrdinalIgnoreCase)) 393if (colorString.Equals("Indigo", StringComparison.OrdinalIgnoreCase)) 397if (colorString.Equals("Maroon", StringComparison.OrdinalIgnoreCase)) 401if (colorString.Equals("Orange", StringComparison.OrdinalIgnoreCase)) 403if (colorString.Equals("Orchid", StringComparison.OrdinalIgnoreCase)) 407if (colorString.Equals("Purple", StringComparison.OrdinalIgnoreCase)) 411if (colorString.Equals("Salmon", StringComparison.OrdinalIgnoreCase)) 413if (colorString.Equals("Sienna", StringComparison.OrdinalIgnoreCase)) 415if (colorString.Equals("Silver", StringComparison.OrdinalIgnoreCase)) 419if (colorString.Equals("Tomato", StringComparison.OrdinalIgnoreCase)) 423if (colorString.Equals("Violet", StringComparison.OrdinalIgnoreCase)) 427if (colorString.Equals("Yellow", StringComparison.OrdinalIgnoreCase)) 436if (colorString.Equals("Crimson", StringComparison.OrdinalIgnoreCase)) 440if (colorString.Equals("DarkRed", StringComparison.OrdinalIgnoreCase)) 442if (colorString.Equals("DimGray", StringComparison.OrdinalIgnoreCase)) 446if (colorString.Equals("Fuchsia", StringComparison.OrdinalIgnoreCase)) 450if (colorString.Equals("HotPink", StringComparison.OrdinalIgnoreCase)) 454if (colorString.Equals("Magenta", StringComparison.OrdinalIgnoreCase)) 458if (colorString.Equals("OldLace", StringComparison.OrdinalIgnoreCase)) 462if (colorString.Equals("SkyBlue", StringComparison.OrdinalIgnoreCase)) 466if (colorString.Equals("Thistle", StringComparison.OrdinalIgnoreCase)) 475if (colorString.Equals("Cornsilk", StringComparison.OrdinalIgnoreCase)) 479if (colorString.Equals("DarkBlue", StringComparison.OrdinalIgnoreCase)) 481if (colorString.Equals("DarkCyan", StringComparison.OrdinalIgnoreCase)) 483if (colorString.Equals("DarkGray", StringComparison.OrdinalIgnoreCase)) 485if (colorString.Equals("DeepPink", StringComparison.OrdinalIgnoreCase)) 489if (colorString.Equals("Honeydew", StringComparison.OrdinalIgnoreCase)) 493if (colorString.Equals("Lavender", StringComparison.OrdinalIgnoreCase)) 497if (colorString.Equals("Moccasin", StringComparison.OrdinalIgnoreCase)) 501if (colorString.Equals("SeaGreen", StringComparison.OrdinalIgnoreCase)) 503if (colorString.Equals("SeaShell", StringComparison.OrdinalIgnoreCase)) 512if (colorString.Equals("AliceBlue", StringComparison.OrdinalIgnoreCase)) 516if (colorString.Equals("BurlyWood", StringComparison.OrdinalIgnoreCase)) 520if (colorString.Equals("CadetBlue", StringComparison.OrdinalIgnoreCase)) 522if (colorString.Equals("Chocolate", StringComparison.OrdinalIgnoreCase)) 526if (colorString.Equals("DarkGreen", StringComparison.OrdinalIgnoreCase)) 528if (colorString.Equals("DarkKhaki", StringComparison.OrdinalIgnoreCase)) 532if (colorString.Equals("Firebrick", StringComparison.OrdinalIgnoreCase)) 536if (colorString.Equals("Gainsboro", StringComparison.OrdinalIgnoreCase)) 538if (colorString.Equals("Goldenrod", StringComparison.OrdinalIgnoreCase)) 542if (colorString.Equals("IndianRed", StringComparison.OrdinalIgnoreCase)) 546if (colorString.Equals("LawnGreen", StringComparison.OrdinalIgnoreCase)) 548if (colorString.Equals("LightBlue", StringComparison.OrdinalIgnoreCase)) 550if (colorString.Equals("LightCyan", StringComparison.OrdinalIgnoreCase)) 552if (colorString.Equals("LightGray", StringComparison.OrdinalIgnoreCase)) 554if (colorString.Equals("LightPink", StringComparison.OrdinalIgnoreCase)) 556if (colorString.Equals("LimeGreen", StringComparison.OrdinalIgnoreCase)) 560if (colorString.Equals("MintCream", StringComparison.OrdinalIgnoreCase)) 562if (colorString.Equals("MistyRose", StringComparison.OrdinalIgnoreCase)) 566if (colorString.Equals("OliveDrab", StringComparison.OrdinalIgnoreCase)) 568if (colorString.Equals("OrangeRed", StringComparison.OrdinalIgnoreCase)) 572if (colorString.Equals("PaleGreen", StringComparison.OrdinalIgnoreCase)) 574if (colorString.Equals("PeachPuff", StringComparison.OrdinalIgnoreCase)) 578if (colorString.Equals("RosyBrown", StringComparison.OrdinalIgnoreCase)) 580if (colorString.Equals("RoyalBlue", StringComparison.OrdinalIgnoreCase)) 584if (colorString.Equals("SlateBlue", StringComparison.OrdinalIgnoreCase)) 586if (colorString.Equals("SlateGray", StringComparison.OrdinalIgnoreCase)) 588if (colorString.Equals("SteelBlue", StringComparison.OrdinalIgnoreCase)) 592if (colorString.Equals("Turquoise", StringComparison.OrdinalIgnoreCase)) 601if (colorString.Equals("Aquamarine", StringComparison.OrdinalIgnoreCase)) 605if (colorString.Equals("BlueViolet", StringComparison.OrdinalIgnoreCase)) 609if (colorString.Equals("Chartreuse", StringComparison.OrdinalIgnoreCase)) 613if (colorString.Equals("DarkOrange", StringComparison.OrdinalIgnoreCase)) 615if (colorString.Equals("DarkOrchid", StringComparison.OrdinalIgnoreCase)) 617if (colorString.Equals("DarkSalmon", StringComparison.OrdinalIgnoreCase)) 619if (colorString.Equals("DarkViolet", StringComparison.OrdinalIgnoreCase)) 621if (colorString.Equals("DodgerBlue", StringComparison.OrdinalIgnoreCase)) 625if (colorString.Equals("GhostWhite", StringComparison.OrdinalIgnoreCase)) 629if (colorString.Equals("LightCoral", StringComparison.OrdinalIgnoreCase)) 631if (colorString.Equals("LightGreen", StringComparison.OrdinalIgnoreCase)) 635if (colorString.Equals("MediumBlue", StringComparison.OrdinalIgnoreCase)) 639if (colorString.Equals("PapayaWhip", StringComparison.OrdinalIgnoreCase)) 641if (colorString.Equals("PowderBlue", StringComparison.OrdinalIgnoreCase)) 645if (colorString.Equals("SandyBrown", StringComparison.OrdinalIgnoreCase)) 649if (colorString.Equals("WhiteSmoke", StringComparison.OrdinalIgnoreCase)) 658if (colorString.Equals("DarkMagenta", StringComparison.OrdinalIgnoreCase)) 660if (colorString.Equals("DeepSkyBlue", StringComparison.OrdinalIgnoreCase)) 664if (colorString.Equals("FloralWhite", StringComparison.OrdinalIgnoreCase)) 666if (colorString.Equals("ForestGreen", StringComparison.OrdinalIgnoreCase)) 670if (colorString.Equals("GreenYellow", StringComparison.OrdinalIgnoreCase)) 674if (colorString.Equals("LightSalmon", StringComparison.OrdinalIgnoreCase)) 676if (colorString.Equals("LightYellow", StringComparison.OrdinalIgnoreCase)) 680if (colorString.Equals("NavajoWhite", StringComparison.OrdinalIgnoreCase)) 684if (colorString.Equals("SaddleBrown", StringComparison.OrdinalIgnoreCase)) 686if (colorString.Equals("SpringGreen", StringComparison.OrdinalIgnoreCase)) 690if (colorString.Equals("Transparent", StringComparison.OrdinalIgnoreCase)) 694if (colorString.Equals("YellowGreen", StringComparison.OrdinalIgnoreCase)) 703if (colorString.Equals("AntiqueWhite", StringComparison.OrdinalIgnoreCase)) 707if (colorString.Equals("DarkSeaGreen", StringComparison.OrdinalIgnoreCase)) 711if (colorString.Equals("LightSkyBlue", StringComparison.OrdinalIgnoreCase)) 713if (colorString.Equals("LemonChiffon", StringComparison.OrdinalIgnoreCase)) 717if (colorString.Equals("MediumOrchid", StringComparison.OrdinalIgnoreCase)) 719if (colorString.Equals("MediumPurple", StringComparison.OrdinalIgnoreCase)) 721if (colorString.Equals("MidnightBlue", StringComparison.OrdinalIgnoreCase)) 730if (colorString.Equals("DarkSlateBlue", StringComparison.OrdinalIgnoreCase)) 732if (colorString.Equals("DarkSlateGray", StringComparison.OrdinalIgnoreCase)) 734if (colorString.Equals("DarkGoldenrod", StringComparison.OrdinalIgnoreCase)) 736if (colorString.Equals("DarkTurquoise", StringComparison.OrdinalIgnoreCase)) 740if (colorString.Equals("LightSeaGreen", StringComparison.OrdinalIgnoreCase)) 742if (colorString.Equals("LavenderBlush", StringComparison.OrdinalIgnoreCase)) 746if (colorString.Equals("PaleGoldenrod", StringComparison.OrdinalIgnoreCase)) 748if (colorString.Equals("PaleTurquoise", StringComparison.OrdinalIgnoreCase)) 750if (colorString.Equals("PaleVioletRed", StringComparison.OrdinalIgnoreCase)) 759if (colorString.Equals("BlanchedAlmond", StringComparison.OrdinalIgnoreCase)) 763if (colorString.Equals("CornflowerBlue", StringComparison.OrdinalIgnoreCase)) 767if (colorString.Equals("DarkOliveGreen", StringComparison.OrdinalIgnoreCase)) 771if (colorString.Equals("LightSlateGray", StringComparison.OrdinalIgnoreCase)) 773if (colorString.Equals("LightSteelBlue", StringComparison.OrdinalIgnoreCase)) 777if (colorString.Equals("MediumSeaGreen", StringComparison.OrdinalIgnoreCase)) 783if (colorString.Equals("MediumSlateBlue", StringComparison.OrdinalIgnoreCase)) 785if (colorString.Equals("MediumTurquoise", StringComparison.OrdinalIgnoreCase)) 787if (colorString.Equals("MediumVioletRed", StringComparison.OrdinalIgnoreCase)) 791if (colorString.Equals("MediumAquamarine", StringComparison.OrdinalIgnoreCase)) 795if (colorString.Equals("MediumSpringGreen", StringComparison.OrdinalIgnoreCase)) 799if (colorString.Equals("LightGoldenrodYellow", StringComparison.OrdinalIgnoreCase))
System\Windows\Media\Parsers.cs (1)
85if (!trimmedColor.StartsWith(s_ContextColor, StringComparison.OrdinalIgnoreCase))
System\Windows\Media\PixelFormat.cs (27)
196_ when pixelFormatString.Equals("Default", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Default, 197_ when pixelFormatString.Equals("Extended", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Extended, 198_ when pixelFormatString.Equals("Indexed1", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Indexed1, 199_ when pixelFormatString.Equals("Indexed2", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Indexed2, 200_ when pixelFormatString.Equals("Indexed4", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Indexed4, 201_ when pixelFormatString.Equals("Indexed8", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Indexed8, 202_ when pixelFormatString.Equals("BlackWhite", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.BlackWhite, 203_ when pixelFormatString.Equals("Gray2", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Gray2, 204_ when pixelFormatString.Equals("Gray4", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Gray4, 205_ when pixelFormatString.Equals("Gray8", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Gray8, 206_ when pixelFormatString.Equals("Bgr555", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Bgr555, 207_ when pixelFormatString.Equals("Bgr565", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Bgr565, 208_ when pixelFormatString.Equals("Bgr24", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Bgr24, 209_ when pixelFormatString.Equals("Rgb24", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Rgb24, 210_ when pixelFormatString.Equals("Bgr101010", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Bgr101010, 211_ when pixelFormatString.Equals("Bgr32", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Bgr32, 212_ when pixelFormatString.Equals("Bgra32", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Bgra32, 213_ when pixelFormatString.Equals("Pbgra32", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Pbgra32, 214_ when pixelFormatString.Equals("Rgb48", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Rgb48, 215_ when pixelFormatString.Equals("Rgba64", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Rgba64, 216_ when pixelFormatString.Equals("Prgba64", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Prgba64, 217_ when pixelFormatString.Equals("Gray16", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Gray16, 218_ when pixelFormatString.Equals("Gray32Float", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Gray32Float, 219_ when pixelFormatString.Equals("Rgb128Float", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Rgb128Float, 220_ when pixelFormatString.Equals("Rgba128Float", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Rgba128Float, 221_ when pixelFormatString.Equals("Prgba128Float", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Prgba128Float, 222_ when pixelFormatString.Equals("Cmyk32", StringComparison.OrdinalIgnoreCase) => PixelFormatEnum.Cmyk32,
System\Windows\Navigation\BaseUriHelper.cs (13)
140string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase) && 145StringComparison.OrdinalIgnoreCase); 162Debug.Assert(uri is not null && uri.IsAbsoluteUri && string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase) && IsPackApplicationUri(uri)); 179Debug.Assert(string.Equals(partName, uri.GetComponents(UriComponents.Path, UriFormat.UriEscaped), StringComparison.OrdinalIgnoreCase)); 259if (firstSegment.EndsWith(COMPONENT, StringComparison.OrdinalIgnoreCase)) 287if (assemblyInfo[i].StartsWith(VERSION, StringComparison.OrdinalIgnoreCase)) 316if (component.EndsWith(COMPONENT, StringComparison.OrdinalIgnoreCase)) 329return ReflectionUtils.GetAssemblyPartialName(assembly).Equals(assemblyName, StringComparison.OrdinalIgnoreCase); 347if (Uri.Compare(sUri, SiteOfOriginBaseUri, UriComponents.Scheme, UriFormat.UriEscaped, StringComparison.OrdinalIgnoreCase) == 0) 350if (string.Equals(packageUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), _packageSiteOfOriginBaseUriEscaped, StringComparison.OrdinalIgnoreCase)) 361Invariant.Assert(packUri.IsAbsoluteUri && string.Equals(packUri.Scheme, PackAppBaseUri.Scheme, StringComparison.OrdinalIgnoreCase)); 382string.Equals(uri.Scheme, Uri.UriSchemeFile, StringComparison.OrdinalIgnoreCase) && 383string.Compare(uri.OriginalString, 0, Uri.UriSchemeFile, 0, Uri.UriSchemeFile.Length, StringComparison.OrdinalIgnoreCase) != 0)
System\Windows\TextDecorationCollectionConverter.cs (5)
87if (decorationsSpan.IsEmpty || decorationsSpan.Equals("None", StringComparison.OrdinalIgnoreCase)) 96if (decoration.Equals("Overline", StringComparison.OrdinalIgnoreCase) && !matchedDecorations.HasFlag(Decorations.OverlineMatch)) 101else if (decoration.Equals("Baseline", StringComparison.OrdinalIgnoreCase) && !matchedDecorations.HasFlag(Decorations.BaselineMatch)) 106else if (decoration.Equals("Underline", StringComparison.OrdinalIgnoreCase) && !matchedDecorations.HasFlag(Decorations.UnderlineMatch)) 111else if (decoration.Equals("Strikethrough", StringComparison.OrdinalIgnoreCase) && !matchedDecorations.HasFlag(Decorations.StrikethroughMatch))
PresentationFramework (89)
MS\Internal\AppModel\AppModelKnownContentFactory.cs (2)
78if (string.Equals(baseUri.Scheme, BaseUriHelper.PackAppBaseUri.Scheme, StringComparison.OrdinalIgnoreCase)) 146if (string.Equals(baseUri.Scheme, BaseUriHelper.PackAppBaseUri.Scheme, StringComparison.OrdinalIgnoreCase))
MS\Internal\AppModel\AppSecurityManager.cs (1)
76bool fIsMailTo = string.Equals(destinationUri.Scheme, Uri.UriSchemeMailto, StringComparison.OrdinalIgnoreCase);
MS\Internal\AppModel\ResourcePart.cs (2)
116if (string.Equals(Path.GetExtension(_name), ResourceContainer.BamlExt, StringComparison.OrdinalIgnoreCase)) 121if (string.Equals(Path.GetExtension(_name), ResourceContainer.XamlExt, StringComparison.OrdinalIgnoreCase))
MS\Internal\Controls\WebBrowserEvent.cs (5)
75if ((_parent.NavigatingToAboutBlank) && !string.Equals(urlString, WebBrowser.AboutBlankUriString, StringComparison.OrdinalIgnoreCase)) 166Invariant.Assert(_parent.NavigatingToAboutBlank && string.Equals((string)url, WebBrowser.AboutBlankUriString, StringComparison.OrdinalIgnoreCase)); 194Invariant.Assert(string.Equals(urlString, WebBrowser.AboutBlankUriString, StringComparison.OrdinalIgnoreCase)); 222Invariant.Assert(string.Equals(urlString, WebBrowser.AboutBlankUriString, StringComparison.OrdinalIgnoreCase)); 239return _parent.NavigatingToAboutBlank && !string.Equals(urlString, WebBrowser.AboutBlankUriString, StringComparison.OrdinalIgnoreCase);
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
663if (pgd.StringComparison == StringComparison.OrdinalIgnoreCase ||
MS\Internal\Data\PropertyPathWorker.cs (1)
442String.Equals(SVI[k].propertyName, propertyName, StringComparison.OrdinalIgnoreCase)))
MS\Internal\Interop\InternalDispatchObject.cs (1)
116if (name.StartsWith("[DISPID=", StringComparison.OrdinalIgnoreCase))
MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
330if (printerName.Equals(queue.FullName, StringComparison.OrdinalIgnoreCase))
MS\Win32\UxThemeWrapper.cs (1)
265if(string.Equals(themeName, "aero", StringComparison.OrdinalIgnoreCase) && Utilities.IsOSWindows8OrNewer)
src\Microsoft.DotNet.Wpf\src\Common\src\MS\Internal\PixelUnit.cs (4)
19if (value.EndsWith("px", StringComparison.OrdinalIgnoreCase)) 33if (value.EndsWith("in", StringComparison.OrdinalIgnoreCase)) 47if (value.EndsWith("cm", StringComparison.OrdinalIgnoreCase)) 61if (value.EndsWith("pt", StringComparison.OrdinalIgnoreCase))
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
81return string.Equals(first.Scheme, second.Scheme, StringComparison.OrdinalIgnoreCase) && string.Equals(first.Host, second.Host);
System\Windows\Application.cs (2)
2351if (string.Equals(fileInBamlConvert, fileCurrent, StringComparison.OrdinalIgnoreCase)) 2378if (string.Equals(bamlConvertUriSegments[l - 1], curUriSegments[m - 1], StringComparison.OrdinalIgnoreCase))
System\Windows\Controls\DataGridClipboardHelper.cs (4)
16bool csv = string.Equals(format, DataFormats.CommaSeparatedValue, StringComparison.OrdinalIgnoreCase); 17if (csv || string.Equals(format, DataFormats.Text, StringComparison.OrdinalIgnoreCase) 18|| string.Equals(format, DataFormats.UnicodeText, StringComparison.OrdinalIgnoreCase)) 42else if (string.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase))
System\Windows\Controls\DataGridLengthConverter.cs (2)
201if (valueSpan.Equals(unitString, StringComparison.OrdinalIgnoreCase)) 220if (valueSpan.EndsWith(unitString, StringComparison.OrdinalIgnoreCase))
System\Windows\Controls\ItemContainerGenerator.cs (2)
1122if (token.Equals(MS.Internal.PresentationFramework.BuildInfo.WCP_PUBLIC_KEY_TOKEN, StringComparison.OrdinalIgnoreCase) || 1123token.Equals(MS.Internal.PresentationFramework.BuildInfo.DEVDIV_PUBLIC_KEY_TOKEN, StringComparison.OrdinalIgnoreCase))
System\Windows\Controls\Primitives\Popup.cs (1)
3209if (string.Equals(sb.ToString(), WebOCWindowClassName, StringComparison.OrdinalIgnoreCase))
System\Windows\Documents\FixedDocument.cs (2)
868if (baseUri.Scheme.Equals(PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase)) 896if (baseUri.Scheme.Equals(PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase))
System\Windows\Documents\FixedFindEngine.cs (1)
396bool isSideways = string.Equals(sidewaysString, "True", StringComparison.OrdinalIgnoreCase);
System\Windows\Documents\FixedSchema.cs (2)
42if (!encoding.Equals(Encoding.Unicode.WebName, StringComparison.OrdinalIgnoreCase) && 43!encoding.Equals(Encoding.UTF8.WebName, StringComparison.OrdinalIgnoreCase))
System\Windows\Documents\RtfToXamlReader.cs (3)
3742if (string.Equals(lhs_tag, rhs_tag, StringComparison.OrdinalIgnoreCase)) 3754if (s.Equals(rhs_name, StringComparison.OrdinalIgnoreCase)) 8329int uriIndex = instructionName.IndexOf("http:", StringComparison.OrdinalIgnoreCase);
System\windows\Documents\TextEditor.cs (1)
467if (!String.Equals(inputCultureInfo.IetfLanguageTag, language.IetfLanguageTag, StringComparison.OrdinalIgnoreCase))
System\Windows\Documents\TextRangeSerialization.cs (1)
1936if (propertyType == typeof(double) && string.Equals(stringValue, "NaN", StringComparison.OrdinalIgnoreCase))
System\Windows\Documents\WpfPayload.cs (6)
535if (imageUriString.EndsWith(ImageBmpFileExtension, StringComparison.OrdinalIgnoreCase)) 539else if (imageUriString.EndsWith(ImageGifFileExtension, StringComparison.OrdinalIgnoreCase)) 543else if (imageUriString.EndsWith(ImageJpegFileExtension, StringComparison.OrdinalIgnoreCase) || imageUriString.EndsWith(ImageJpgFileExtension, StringComparison.OrdinalIgnoreCase)) 547else if (imageUriString.EndsWith(ImageTiffFileExtension, StringComparison.OrdinalIgnoreCase)) 700Invariant.Assert(imageSourceString.StartsWith("./", StringComparison.OrdinalIgnoreCase));
System\Windows\Documents\XamlToRtfParser.cs (1)
525if (string.Compare(xamlTag, xamlTag.Length, top, top.Length, top.Length, StringComparison.OrdinalIgnoreCase) == 0)
System\Windows\Documents\XamlToRtfWriter.cs (25)
2238if (string.Equals(".png", imageFormatName, StringComparison.OrdinalIgnoreCase)) 2242if (string.Equals(".jpeg", imageFormatName, StringComparison.OrdinalIgnoreCase) || 2243string.Equals(".jpg", imageFormatName, StringComparison.OrdinalIgnoreCase)) 2247if (string.Equals(".gif", imageFormatName, StringComparison.OrdinalIgnoreCase)) 2251if (string.Equals(".tif", imageFormatName, StringComparison.OrdinalIgnoreCase) || 2252string.Equals(".tiff", imageFormatName, StringComparison.OrdinalIgnoreCase)) 2256if (string.Equals(".bmp", imageFormatName, StringComparison.OrdinalIgnoreCase)) 2260if (string.Equals(".dib", imageFormatName, StringComparison.OrdinalIgnoreCase)) 2272if (string.Equals("Fill", imageStretch, StringComparison.OrdinalIgnoreCase)) 2276else if (string.Equals("UniformToFill", imageStretch, StringComparison.OrdinalIgnoreCase)) 2289if (string.Equals("UpOnly", imageStretchDirection, StringComparison.OrdinalIgnoreCase)) 2293else if (string.Equals("DownOnly", imageStretchDirection, StringComparison.OrdinalIgnoreCase)) 2721if (string.Equals(name, "&gt;", StringComparison.OrdinalIgnoreCase)) 2725else if (string.Equals(name, "&lt;", StringComparison.OrdinalIgnoreCase)) 2729else if (string.Equals(name, "&amp;", StringComparison.OrdinalIgnoreCase)) 2733else if (name.StartsWith("&#x", StringComparison.OrdinalIgnoreCase)) 2747else if (name.StartsWith("&#", StringComparison.OrdinalIgnoreCase)) 2876if (string.Equals(valueString, "Normal", StringComparison.OrdinalIgnoreCase)) 2880else if (string.Equals(valueString, "Bold", StringComparison.OrdinalIgnoreCase)) 2896if (string.Equals(valueString, "Italic", StringComparison.OrdinalIgnoreCase)) 3467if (string.Equals(entries[i].Name, name, StringComparison.OrdinalIgnoreCase)) 3673if (decoration.Contains("Underline", StringComparison.OrdinalIgnoreCase)) 3677if (decoration.Contains("Strikethrough", StringComparison.OrdinalIgnoreCase)) 3690if (string.Equals("RightToLeft", dirName, StringComparison.OrdinalIgnoreCase)) 3695else if (string.Equals("LeftToRight", dirName, StringComparison.OrdinalIgnoreCase))
System\Windows\LengthConverter.cs (1)
195if (valueSpan.Equals("auto", StringComparison.OrdinalIgnoreCase))
System\Windows\Markup\BamlMapTable.cs (3)
1569if (!ownerAsm.FullName.StartsWith("PresentationFramework", StringComparison.OrdinalIgnoreCase) && 1570!ownerAsm.FullName.StartsWith("PresentationCore", StringComparison.OrdinalIgnoreCase) && 1571!ownerAsm.FullName.StartsWith("WindowsBase", StringComparison.OrdinalIgnoreCase))
System\Windows\Markup\XamlFigureLengthSerializer.cs (2)
192if (valueSpan.Equals(UnitStrings[i].Name, StringComparison.OrdinalIgnoreCase)) 203if (valueSpan.EndsWith(UnitStrings[i].Name, StringComparison.OrdinalIgnoreCase))
System\Windows\Markup\XamlGridLengthSerializer.cs (2)
192if (valueSpan.Equals(UnitStrings[i], StringComparison.OrdinalIgnoreCase)) 203if (valueSpan.EndsWith(UnitStrings[i], StringComparison.OrdinalIgnoreCase))
System\Windows\Navigation\JournalEntry.cs (1)
325if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase))
System\Windows\Navigation\NavigationService.cs (2)
215isSame = isSame && string.Equals(aResolved.Fragment, bResolved.Fragment, StringComparison.OrdinalIgnoreCase); 672if (string.Equals(name, fe.Name, StringComparison.OrdinalIgnoreCase))
System\Windows\ThemeDictionaryExtension.cs (1)
105if (assemblyName.Equals(SystemResources.PresentationFrameworkName, StringComparison.OrdinalIgnoreCase))
System\Windows\ThemeManager.cs (4)
376if (sourceString.EndsWith(FluentLightDictionary, StringComparison.OrdinalIgnoreCase)) 380else if (sourceString.EndsWith(FluentDarkDictionary, StringComparison.OrdinalIgnoreCase)) 424StringComparison.OrdinalIgnoreCase)) 444StringComparison.OrdinalIgnoreCase))
PresentationUI (12)
MS\Internal\Documents\Application\AddressUtility.cs (1)
30return mailtoUri is not null && string.Equals(mailtoUri.Scheme, Uri.UriSchemeMailto, StringComparison.OrdinalIgnoreCase);
MS\Internal\Documents\Application\CriticalFileToken.cs (1)
69StringComparison.OrdinalIgnoreCase);
MS\Internal\Documents\Application\DocumentStream.cs (1)
956XpsFileExtension, StringComparison.OrdinalIgnoreCase))
MS\Internal\Documents\Application\FilePresentation.cs (1)
87StringComparison.OrdinalIgnoreCase))
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (6)
117StringComparison.OrdinalIgnoreCase)) || 121StringComparison.OrdinalIgnoreCase)) || 125StringComparison.OrdinalIgnoreCase)) || 129StringComparison.OrdinalIgnoreCase)) || 133StringComparison.OrdinalIgnoreCase)) || 137StringComparison.OrdinalIgnoreCase))
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
57return userName.Equals(SR.RMPublishingAnyoneUserDisplay, StringComparison.OrdinalIgnoreCase); 292if (GetUsernameFromRow(row).Equals(name, StringComparison.OrdinalIgnoreCase))
RazorPagesWebSite (2)
Pages\ShortCircuitPageAtAuthFilter.cshtml.cs (1)
22&& string.Equals(expectedTargetName, currentTargetName, StringComparison.OrdinalIgnoreCase);
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (1)
22&& string.Equals(expectedTargetName, currentTargetName, StringComparison.OrdinalIgnoreCase);
ReachFramework (11)
Packaging\XpsFixedPageReaderWriter.cs (5)
1854if (extension.Equals(XpsS0Markup.JpgExtension, StringComparison.OrdinalIgnoreCase)) 1858else if (extension.Equals(XpsS0Markup.PngExtension, StringComparison.OrdinalIgnoreCase)) 1862else if (extension.Equals(XpsS0Markup.TifExtension, StringComparison.OrdinalIgnoreCase)) 1866else if (extension.Equals(XpsS0Markup.WdpExtension, StringComparison.OrdinalIgnoreCase)) 1901if (string.Equals(extension, XpsS0Markup.ObfuscatedFontExt, StringComparison.OrdinalIgnoreCase))
Packaging\XpsManager.cs (6)
1113else if (contentKey.Equals("Dictionary", StringComparison.OrdinalIgnoreCase)) 1119else if (contentKey.Equals("Font", StringComparison.OrdinalIgnoreCase)) 1125else if (contentKey.Equals("ColorContext", StringComparison.OrdinalIgnoreCase)) 1131else if (contentKey.Equals("ResourceDictionary", StringComparison.OrdinalIgnoreCase)) 1137else if (contentKey.Equals("Image", StringComparison.OrdinalIgnoreCase)) 1219if (string.Equals(contentType.TypeComponent, "Image", StringComparison.OrdinalIgnoreCase))
Replay (1)
Replay.cs (1)
222var comparison = StringComparison.OrdinalIgnoreCase;
Roslyn.Diagnostics.Analyzers (20)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
140var index = symbolName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Roslyn.Diagnostics.CSharp.Analyzers (6)
NumberCommentsRefactoring.cs (2)
69""", StringComparison.OrdinalIgnoreCase)) 78""", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
240if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
397comparisonResult = string.Compare(x.ValueText, y.ValueText, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (2)
143if (numericText.StartsWith("0x", StringComparison.OrdinalIgnoreCase)) 149else if (numericText.StartsWith("0b", StringComparison.OrdinalIgnoreCase))
Roslyn.VisualStudio.DiagnosticsWindow (1)
OptionPages\InternalOptionsControl.cs (1)
54if (title.IndexOf(searchBox.Text, StringComparison.OrdinalIgnoreCase) < 0)
Roslyn.VisualStudio.Next.UnitTests (8)
Options\VisualStudioOptionStorageTests.cs (2)
135Assert.False(configName.StartsWith(OptionDefinition.CSharpConfigNamePrefix, StringComparison.OrdinalIgnoreCase)); 136Assert.False(configName.StartsWith(OptionDefinition.VisualBasicConfigNamePrefix, StringComparison.OrdinalIgnoreCase));
Services\PerformanceTrackerServiceTests.cs (2)
139Assert.True(analyzerInfo.PIISafeAnalyzerId.IndexOf(analyzerName, StringComparison.OrdinalIgnoreCase) >= 0); 260return assembly.GetManifestResourceNames().Where(n => n.EndsWith(convert, StringComparison.OrdinalIgnoreCase)).First();
Services\ServiceHubServicesTests.cs (4)
1993var project = solution.Projects.First(p => string.Equals(p.Name, projectName, StringComparison.OrdinalIgnoreCase)); 1994var document = project.Documents.First(d => string.Equals(d.Name, documentName, StringComparison.OrdinalIgnoreCase)); 2001var project = solution.Projects.First(p => string.Equals(p.Name, projectName, StringComparison.OrdinalIgnoreCase)); 2003documentName => project.Documents.First(d => string.Equals(d.Name, documentName, StringComparison.OrdinalIgnoreCase)));
RoutingWebSite (1)
EndsWithStringRouteConstraint.cs (1)
26var endsWith = valueString.EndsWith(_endsWith, StringComparison.OrdinalIgnoreCase);
RulesetToEditorconfigConverter.UnitTests (1)
RulesetToEditorconfigConverterTests.cs (1)
27Assert.Contains("<Include ", rulesetText, StringComparison.OrdinalIgnoreCase);
ScenarioTests.Common.Tests (1)
ScenarioTestHelpers.cs (1)
42return String.Equals("localhost", serviceUri, StringComparison.OrdinalIgnoreCase);
Security.TransportSecurity.IntegrationTests (3)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (3)
35bool shouldCallSucceed = string.Compare(localhostEndpointUri.Host, "localhost", StringComparison.OrdinalIgnoreCase) == 0; 112bool shouldCallSucceed = domainNameEndpointUri.Host.IndexOf('.') == -1 && string.Compare(domainNameEndpointUri.Host, "localhost", StringComparison.OrdinalIgnoreCase) != 0; 193if (string.Compare(domainNameHost, fqdnEndpointUri.Host, StringComparison.OrdinalIgnoreCase) != 0)
ServerComparison.TestSites (2)
Program.cs (2)
37if (string.Equals(configuration["server"], "Microsoft.AspNetCore.Server.HttpSys", StringComparison.OrdinalIgnoreCase)) 43"NtlmAuthentication", StringComparison.OrdinalIgnoreCase))
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
81if (token.StartsWith("Bearer ", StringComparison.OrdinalIgnoreCase))
SocialWeather (1)
PersistentConnectionLifeTimeManager.cs (1)
25if (string.Equals(format, "protobuf", StringComparison.OrdinalIgnoreCase))
StaticFilesAuth (4)
Startup.cs (4)
52return string.Equals(directory.FullName, basePath, StringComparison.OrdinalIgnoreCase) 53|| string.Equals(directory.FullName, usersPath, StringComparison.OrdinalIgnoreCase) 54|| string.Equals(directory.FullName, userPath, StringComparison.OrdinalIgnoreCase) 55|| directory.FullName.StartsWith(userPath + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase);
Swaggatherer (6)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
SwaggathererApplication.cs (2)
196StringComparison.OrdinalIgnoreCase)) 203!string.Equals(entry.Method, other.Method, StringComparison.OrdinalIgnoreCase))
System.CodeDom (10)
Microsoft\CSharp\CSharpCodeGenerator.cs (2)
1466if (e.Parameters.Count > 0 && string.Equals(e.Name, "Item", StringComparison.OrdinalIgnoreCase)) 2582if (current.Name.Equals("system.paramarrayattribute", StringComparison.OrdinalIgnoreCase))
Microsoft\VisualBasic\VBCodeGenerator.cs (6)
1561&& meth.Name.Equals(e.Name, StringComparison.OrdinalIgnoreCase) 1612if (e.ReturnType.BaseType.Length == 0 || string.Equals(e.ReturnType.BaseType, typeof(void).FullName, StringComparison.OrdinalIgnoreCase)) 1721&& prop.Name.Equals(e.Name, StringComparison.OrdinalIgnoreCase) 1765if (e.Parameters.Count > 0 && string.Equals(e.Name, "Item", StringComparison.OrdinalIgnoreCase)) 1957if (del.ReturnType.BaseType.Length > 0 && !string.Equals(del.ReturnType.BaseType, "System.Void", StringComparison.OrdinalIgnoreCase)) 1965if (del.ReturnType.BaseType.Length > 0 && !string.Equals(del.ReturnType.BaseType, "System.Void", StringComparison.OrdinalIgnoreCase))
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (1)
27if (names[i].Equals(name, StringComparison.OrdinalIgnoreCase))
System\CodeDom\Compiler\CodeValidator.cs (1)
287if (e.Parameters.Count > 0 && string.Equals(e.Name, "Item", StringComparison.OrdinalIgnoreCase))
System.Collections.Immutable (10)
System\Collections\Frozen\String\Hashing.cs (1)
145return string.GetHashCode(s, StringComparison.OrdinalIgnoreCase);
System\Collections\Frozen\String\KeyAnalyzer.cs (2)
318public override bool Equals(string? x, string? y) => x.AsSpan(IsLeft ? Index : (x!.Length + Index), Count).Equals(y.AsSpan(IsLeft ? Index : (y!.Length + Index), Count), StringComparison.OrdinalIgnoreCase); 324public override bool Equals(string? x, string? y) => x.AsSpan(IsLeft ? Index : (x!.Length + Index), Count).Equals(y.AsSpan(IsLeft ? Index : (y!.Length + Index), Count), StringComparison.OrdinalIgnoreCase);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_FullCaseInsensitive.cs (1)
28private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_FullCaseInsensitiveAscii.cs (1)
28private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedCaseInsensitiveAsciiSubstring.cs (1)
26private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedCaseInsensitiveSubstring.cs (1)
26private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedCaseInsensitiveAsciiSubstring.cs (1)
26private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedCaseInsensitiveSubstring.cs (1)
26private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase);
System\Collections\Frozen\String\OrdinalStringFrozenSet.cs (1)
109(!x.IsEmpty || y is not null) && x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase);
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\PhoneAttribute.cs (3)
69.LastIndexOf(ExtensionAbbreviationExtDot, StringComparison.OrdinalIgnoreCase); 81.LastIndexOf(ExtensionAbbreviationExt, StringComparison.OrdinalIgnoreCase); 93.LastIndexOf(ExtensionAbbreviationX, StringComparison.OrdinalIgnoreCase);
System\ComponentModel\DataAnnotations\UrlAttribute.cs (3)
30return valueAsString.StartsWith("http://", StringComparison.OrdinalIgnoreCase) 31|| valueAsString.StartsWith("https://", StringComparison.OrdinalIgnoreCase) 32|| valueAsString.StartsWith("ftp://", StringComparison.OrdinalIgnoreCase);
System.ComponentModel.Primitives (1)
System\ComponentModel\ComponentCollection.cs (1)
25if (comp != null && comp.Site != null && comp.Site.Name != null && string.Equals(comp.Site.Name, name, StringComparison.OrdinalIgnoreCase))
System.ComponentModel.TypeConverter (8)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
99else if (text.StartsWith("0x", StringComparison.OrdinalIgnoreCase) || text.StartsWith("&h", StringComparison.OrdinalIgnoreCase))
System\ComponentModel\BaseNumberConverter.cs (2)
65else if (AllowHex && (text.StartsWith("0x", StringComparison.OrdinalIgnoreCase) 66|| text.StartsWith("&h", StringComparison.OrdinalIgnoreCase)))
System\ComponentModel\ComponentResourceManager.cs (1)
146if (string.Compare(key, 0, objectName, 0, objectName.Length, StringComparison.OrdinalIgnoreCase) != 0)
System\ComponentModel\Container.cs (1)
232if (s?.Name != null && string.Equals(s.Name, name, StringComparison.OrdinalIgnoreCase) && s.Component != component)
System\ComponentModel\EventDescriptorCollection.cs (1)
177if (string.Equals(_events[i]!.Name, name, StringComparison.OrdinalIgnoreCase))
System\ComponentModel\PropertyDescriptorCollection.cs (1)
210if (string.Equals(_properties[i].Name, name, StringComparison.OrdinalIgnoreCase))
System.Configuration.ConfigurationManager (10)
System\Configuration\ClientSettingsStore.cs (6)
274string.Equals(filename, ConfigurationManagerInternalFactory.Instance.MachineConfigPath, StringComparison.OrdinalIgnoreCase) || 275string.Equals(filename, ConfigurationManagerInternalFactory.Instance.ApplicationConfigUri, StringComparison.OrdinalIgnoreCase) || 276string.Equals(filename, ConfigurationManagerInternalFactory.Instance.ExeLocalConfigPath, StringComparison.OrdinalIgnoreCase) || 277string.Equals(filename, ConfigurationManagerInternalFactory.Instance.ExeRoamingConfigPath, StringComparison.OrdinalIgnoreCase); 314if (string.Equals(streamName, ConfigurationManagerInternalFactory.Instance.ExeLocalConfigPath, StringComparison.OrdinalIgnoreCase) || 315string.Equals(streamName, ConfigurationManagerInternalFactory.Instance.ExeRoamingConfigPath, StringComparison.OrdinalIgnoreCase))
System\Configuration\StringUtil.cs (2)
15return string.Equals(s1, s2, StringComparison.OrdinalIgnoreCase); 27return 0 == string.Compare(s1, 0, s2, 0, s2.Length, StringComparison.OrdinalIgnoreCase);
System\Configuration\UrlPath.cs (2)
39if (string.Compare(dir, 0, subdir, 0, lDir, StringComparison.OrdinalIgnoreCase) != 0) 87if (string.Compare(path, 0, subpath, 0, lPath, StringComparison.OrdinalIgnoreCase) != 0)
System.Console (2)
src\libraries\Common\src\System\Console\ConsoleUtils.cs (1)
42enabled = envVar is not null && (envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase));
System\TerminalFormatStrings.cs (1)
88IsRxvtTerm = !string.IsNullOrEmpty(db.Term) && db.Term.Contains("rxvt", StringComparison.OrdinalIgnoreCase);
System.Data.Common (19)
System\Data\Common\DBCommandBuilder.cs (2)
70if (columnName.StartsWith(_originalPrefix, StringComparison.OrdinalIgnoreCase)) 77if (columnName.StartsWith(_isNullPrefix, StringComparison.OrdinalIgnoreCase))
System\Data\Common\DbConnectionOptions.cs (1)
91(('{' == keyValue[0]) || (0 <= keyValue.IndexOf(';')) || string.Equals(DbConnectionStringKeywords.Driver, keyName, StringComparison.OrdinalIgnoreCase)) &&
System\Data\DataSet.cs (2)
207if (string.Equals(attribValue, Keywords.MSD_EXCLUDESCHEMA, StringComparison.OrdinalIgnoreCase)) 211else if (string.Equals(attribValue, Keywords.MSD_INCLUDESCHEMA, StringComparison.OrdinalIgnoreCase))
System\Data\DataTable.cs (2)
3720if (length >= 5 && string.Compare(current, length - 4, " ASC", 0, 4, StringComparison.OrdinalIgnoreCase) == 0) 3724else if (length >= 6 && string.Compare(current, length - 5, " DESC", 0, 5, StringComparison.OrdinalIgnoreCase) == 0)
System\Data\DataView.cs (3)
1755/// <see cref="RowFilter"/> and <see cref="Sort"/> may differ by <see cref="StringComparison.OrdinalIgnoreCase"/>. 1762!string.Equals(RowFilter, view.RowFilter, StringComparison.OrdinalIgnoreCase) || // case insensitive 1763!string.Equals(Sort, view.Sort, StringComparison.OrdinalIgnoreCase) || // case insensitive
System\Data\DefaultValueTypeConverter.cs (2)
46if (string.Equals(strValue, NullString, StringComparison.OrdinalIgnoreCase)) 50else if (string.Equals(strValue, DbNullString, StringComparison.OrdinalIgnoreCase))
System\Data\Filter\FunctionNode.cs (1)
54if (string.Equals(s_funcs[i]._name, name, StringComparison.OrdinalIgnoreCase))
System\Data\SimpleType.cs (1)
347return string.Equals(rootType.BaseType, "string", StringComparison.OrdinalIgnoreCase);
System\Data\XmlToDatasetMap.cs (5)
33(string.Equals(LocalName, id.LocalName, StringComparison.OrdinalIgnoreCase)) && 34(string.Equals(NamespaceURI, id.NamespaceURI, StringComparison.OrdinalIgnoreCase)) 219if (col.ColumnName.StartsWith("xml", StringComparison.OrdinalIgnoreCase)) 253if (col.ColumnName.StartsWith("xml", StringComparison.OrdinalIgnoreCase)) 506Debug.Assert(col.ColumnName.StartsWith("xml", StringComparison.OrdinalIgnoreCase), "column name should start with xml");
System.Data.Odbc (6)
Common\System\Data\Common\DbConnectionOptions.cs (2)
152(('{' == keyValue[0]) || (0 <= keyValue.IndexOf(';')) || (string.Equals(DbConnectionStringKeywords.Driver, keyName, StringComparison.OrdinalIgnoreCase))) && 266if ((null != value) && value.StartsWith(DataDirectory, StringComparison.OrdinalIgnoreCase))
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (2)
519if (0 > string.Compare(_normalizedServerVersion, (string)version, StringComparison.OrdinalIgnoreCase)) 538if (0 < string.Compare(_normalizedServerVersion, (string)version, StringComparison.OrdinalIgnoreCase))
System\Data\Odbc\OdbcUtils.cs (2)
522if (string.Equals(tokenString, nextToken, StringComparison.OrdinalIgnoreCase)) 543if (0 == string.Compare(_sqlstatement, tempidx, tokenString, 0, tokenString.Length, StringComparison.OrdinalIgnoreCase))
System.Diagnostics.DiagnosticSource (18)
System\Diagnostics\DsesActivitySourceListener.cs (2)
236=> string.Equals(x.activitySourceName, y.activitySourceName, StringComparison.OrdinalIgnoreCase) 237&& string.Equals(x.activityName, y.activityName, StringComparison.OrdinalIgnoreCase);
System\Diagnostics\DsesFilterAndTransform.cs (6)
241if (suffixPart.Equals("Propagate".AsSpan(), StringComparison.OrdinalIgnoreCase)) 245else if (suffixPart.Equals("Record".AsSpan(), StringComparison.OrdinalIgnoreCase)) 249else if (suffixPart.StartsWith(c_ParentRatioSamplerPrefix.AsSpan(), StringComparison.OrdinalIgnoreCase)) 266else if (suffixPart.StartsWith(c_ParentRateLimitingSamplerPrefix.AsSpan(), StringComparison.OrdinalIgnoreCase)) 305if (eventName.Equals("Start".AsSpan(), StringComparison.OrdinalIgnoreCase)) 309else if (eventName.Equals("Stop".AsSpan(), StringComparison.OrdinalIgnoreCase))
System\Diagnostics\LocalAppContextSwitches.cs (1)
21defaultActivityIdFormatIsHierarchial = switchValue.Equals("true", StringComparison.OrdinalIgnoreCase) || switchValue.Equals("1");
System\Diagnostics\Metrics\AggregationManager.cs (4)
97Include(i => i.Meter.Name.Equals(meterName, StringComparison.OrdinalIgnoreCase)); 107Include(i => i.Meter.Name.StartsWith(meterNamePrefix, StringComparison.OrdinalIgnoreCase)); 112Include(i => i.Meter.Name.Equals(meterName, StringComparison.OrdinalIgnoreCase) 113&& i.Name.Equals(instrumentName, StringComparison.OrdinalIgnoreCase));
System\Diagnostics\Metrics\MetricsEventSource.cs (5)
778if (spec.Equals("scale", StringComparison.OrdinalIgnoreCase)) 794else if (spec.Equals("maxBuckets", StringComparison.OrdinalIgnoreCase)) 810else if (spec.Equals("reportDeltas", StringComparison.OrdinalIgnoreCase)) 812if (value.Equals("true", StringComparison.OrdinalIgnoreCase)) 816else if (value.Equals("false", StringComparison.OrdinalIgnoreCase))
System.Diagnostics.FileVersionInfo (2)
System\Diagnostics\FileVersionInfo.Unix.cs (2)
84if (!assemblyName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) && 85!assemblyName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
System.Diagnostics.Process (3)
System\Diagnostics\Process.Linux.cs (2)
38if ((processName == "" || string.Equals(processName, actualProcessName, StringComparison.OrdinalIgnoreCase)) && 351if (argString.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))
System\Diagnostics\Process.Unix.cs (1)
412!string.Equals(verb, "open", StringComparison.OrdinalIgnoreCase))
System.Drawing.Common (14)
System\Drawing\FontConverter.cs (1)
374if (name.Equals(font.Name, StringComparison.OrdinalIgnoreCase))
System\Drawing\ImageFormatConverter.cs (12)
47if (strFormat.Equals("Bmp", StringComparison.OrdinalIgnoreCase)) 49else if (strFormat.Equals("Emf", StringComparison.OrdinalIgnoreCase)) 51else if (strFormat.Equals("Exif", StringComparison.OrdinalIgnoreCase)) 53else if (strFormat.Equals("Gif", StringComparison.OrdinalIgnoreCase)) 55else if (strFormat.Equals("Icon", StringComparison.OrdinalIgnoreCase)) 57else if (strFormat.Equals("Jpeg", StringComparison.OrdinalIgnoreCase)) 59else if (strFormat.Equals("MemoryBmp", StringComparison.OrdinalIgnoreCase)) 61else if (strFormat.Equals("Png", StringComparison.OrdinalIgnoreCase)) 63else if (strFormat.Equals("Tiff", StringComparison.OrdinalIgnoreCase)) 65else if (strFormat.Equals("Wmf", StringComparison.OrdinalIgnoreCase)) 67else if (strFormat.Equals("Heif", StringComparison.OrdinalIgnoreCase)) 69else if (strFormat.Equals("Webp", StringComparison.OrdinalIgnoreCase))
System\Drawing\ToolboxBitmapAttribute.cs (1)
154if (ext is not null && string.Equals(ext, ".ico", StringComparison.OrdinalIgnoreCase))
System.Drawing.Common.Tests (1)
System\Drawing\FontTests.cs (1)
885if (font1.Name.Equals(font2.Name, StringComparison.OrdinalIgnoreCase))
System.Drawing.Primitives (3)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
99else if (text.StartsWith("0x", StringComparison.OrdinalIgnoreCase) || text.StartsWith("&h", StringComparison.OrdinalIgnoreCase))
System\Drawing\ColorTranslator.cs (1)
253if (c.IsEmpty && string.Equals(htmlColor, "LightGrey", StringComparison.OrdinalIgnoreCase))
System.Formats.Tar (1)
src\libraries\Common\src\System\IO\PathInternal.CaseSensitivity.cs (1)
18StringComparison.OrdinalIgnoreCase;
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\System\IO\PathInternal.CaseSensitivity.cs (1)
18StringComparison.OrdinalIgnoreCase;
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\System\IO\PathInternal.CaseSensitivity.cs (1)
18StringComparison.OrdinalIgnoreCase;
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\System\IO\PathInternal.CaseSensitivity.cs (1)
18StringComparison.OrdinalIgnoreCase;
System.IO.Packaging (12)
System\IO\Packaging\ContentType.cs (2)
202result = (string.Equals(_type, contentType.TypeComponent, StringComparison.OrdinalIgnoreCase) && 203string.Equals(_subType, contentType.SubTypeComponent, StringComparison.OrdinalIgnoreCase));
System\IO\Packaging\PackagingUtilities.cs (2)
45if (string.Equals(encoding, WebNameUTF8, StringComparison.OrdinalIgnoreCase) || 46string.Equals(encoding, WebNameUnicode, StringComparison.OrdinalIgnoreCase))
System\IO\Packaging\PackUriHelper.cs (2)
419if (!string.Equals(partUri.OriginalString, wellFormedPartName, StringComparison.OrdinalIgnoreCase)) 861StringComparison.OrdinalIgnoreCase
System\IO\Packaging\ZipPackage.cs (3)
508if (zipItemName.StartsWith(ContentTypeHelper.ContentTypeFileName, StringComparison.OrdinalIgnoreCase)) 742return extensionA.Equals(extensionB, StringComparison.OrdinalIgnoreCase); 1052if (zipFileInfo.FullName.StartsWith(ContentTypesFileUpperInvariant, StringComparison.OrdinalIgnoreCase))
System\IO\Packaging\ZipPackagePartPiece.cs (3)
57int resultPosition = path.LastIndexOf(".piece", StringComparison.OrdinalIgnoreCase); 81else if (path.Substring(0, searchPosition).EndsWith(PartPieceLastExtension, StringComparison.OrdinalIgnoreCase)) 196int result = string.Compare(PrefixName, other.PrefixName, StringComparison.OrdinalIgnoreCase);
System.IO.Pipes (1)
System\IO\Pipes\PipeStream.Unix.cs (1)
193if (string.Equals(pipeName, AnonymousPipeName, StringComparison.OrdinalIgnoreCase))
System.Linq.Expressions (4)
System\Dynamic\ExpandoClass.cs (1)
158StringComparison.OrdinalIgnoreCase))
System\Linq\Expressions\ElementInit.cs (1)
110if (!addMethod.Name.Equals("Add", StringComparison.OrdinalIgnoreCase))
System\Linq\Expressions\IndexExpression.cs (1)
280if (pi.Name.Equals(propertyName, StringComparison.OrdinalIgnoreCase) && IsCompatible(pi, arguments))
System\Linq\Expressions\MethodCallExpression.cs (1)
1309if (mi.Name.Equals(methodName, StringComparison.OrdinalIgnoreCase))
System.Net.Http (71)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (3)
36if (!string.Equals(authenticationType, AuthenticationType, StringComparison.OrdinalIgnoreCase)) 73return string.Compare(uri.AbsolutePath, 0, uriPrefix.AbsolutePath, 0, UriPrefixLength, StringComparison.OrdinalIgnoreCase) == 0; 88string.Equals(AuthenticationType, other.AuthenticationType, StringComparison.OrdinalIgnoreCase) &&
src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (2)
30if (value.Equals(Gzip.AsSpan(), StringComparison.OrdinalIgnoreCase)) 35if (value.Equals(Deflate.AsSpan(), StringComparison.OrdinalIgnoreCase))
System\Net\Http\Headers\AuthenticationHeaderValue.cs (2)
74return (string.Equals(_scheme, other._scheme, StringComparison.OrdinalIgnoreCase)); 79return string.Equals(_scheme, other._scheme, StringComparison.OrdinalIgnoreCase) &&
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (2)
168return string.Equals(_dispositionType, other._dispositionType, StringComparison.OrdinalIgnoreCase) && 463!processedInputSpan[parts[2]].Equals("b", StringComparison.OrdinalIgnoreCase))
System\Net\Http\Headers\ContentRangeHeaderValue.cs (1)
99string.Equals(_unit, other._unit, StringComparison.OrdinalIgnoreCase);
System\Net\Http\Headers\HeaderDescriptor.cs (1)
48return string.Equals(headerName, other._descriptor as string, StringComparison.OrdinalIgnoreCase);
System\Net\Http\Headers\HttpGeneralHeaders.cs (1)
87if (value is string stringValue && stringValue.Equals("chunked", StringComparison.OrdinalIgnoreCase))
System\Net\Http\Headers\MediaTypeHeaderValue.cs (1)
132string.Equals(_mediaType, other._mediaType, StringComparison.OrdinalIgnoreCase) &&
System\Net\Http\Headers\NameValueHeaderValue.cs (3)
90if (!string.Equals(_name, other._name, StringComparison.OrdinalIgnoreCase)) 111return string.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase); 315if (string.Equals(value.Name, name, StringComparison.OrdinalIgnoreCase))
System\Net\Http\Headers\ProductHeaderValue.cs (2)
69return string.Equals(_name, other._name, StringComparison.OrdinalIgnoreCase) && 70string.Equals(_version, other._version, StringComparison.OrdinalIgnoreCase);
System\Net\Http\Headers\RangeHeaderValue.cs (1)
93return string.Equals(_unit, other._unit, StringComparison.OrdinalIgnoreCase) &&
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (1)
55string.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase) &&
System\Net\Http\Headers\TransferCodingHeaderValue.cs (1)
129return string.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase) &&
System\Net\Http\Headers\ViaHeaderValue.cs (3)
106string.Equals(_protocolVersion, other._protocolVersion, StringComparison.OrdinalIgnoreCase) && 107string.Equals(_receivedBy, other._receivedBy, StringComparison.OrdinalIgnoreCase) && 108string.Equals(_protocolName, other._protocolName, StringComparison.OrdinalIgnoreCase) &&
System\Net\Http\Headers\WarningHeaderValue.cs (1)
103string.Equals(_agent, other._agent, StringComparison.OrdinalIgnoreCase) &&
System\Net\Http\HttpClient.cs (1)
575!string.Equals(request.Method.Method, "HEAD", StringComparison.OrdinalIgnoreCase);
System\Net\Http\HttpMethod.cs (2)
57string.Equals(_method, other._method, StringComparison.OrdinalIgnoreCase); 119method.Equals(match._method, StringComparison.OrdinalIgnoreCase))
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (13)
49if (!algorithm!.Equals(Sha256, StringComparison.OrdinalIgnoreCase) && 50!algorithm.Equals(Md5, StringComparison.OrdinalIgnoreCase) && 51!algorithm.Equals(Sha256Sess, StringComparison.OrdinalIgnoreCase) && 52!algorithm.Equals(MD5Sess, StringComparison.OrdinalIgnoreCase)) 142if (algorithm.EndsWith("sess", StringComparison.OrdinalIgnoreCase)) 219if (algorithm.StartsWith(Sha256, StringComparison.OrdinalIgnoreCase)) 255return key.Equals(Realm, StringComparison.OrdinalIgnoreCase) || key.Equals(Nonce, StringComparison.OrdinalIgnoreCase) || 256key.Equals(Opaque, StringComparison.OrdinalIgnoreCase) || key.Equals(Qop, StringComparison.OrdinalIgnoreCase); 404!key.Equals(Opaque, StringComparison.OrdinalIgnoreCase) && 405!key.Equals(Domain, StringComparison.OrdinalIgnoreCase) && 406!key.Equals(Realm, StringComparison.OrdinalIgnoreCase))
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (2)
44(envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase)) ? 1 : 0; 67if (v.Equals("Session-Based-Authentication", StringComparison.OrdinalIgnoreCase))
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (4)
43if (string.Equals(existingEncoding.Value, encoding, StringComparison.OrdinalIgnoreCase)) 81if (GZipEnabled && string.Equals(last, Gzip, StringComparison.OrdinalIgnoreCase)) 85else if (DeflateEnabled && string.Equals(last, Deflate, StringComparison.OrdinalIgnoreCase)) 89else if (BrotliEnabled && string.Equals(last, Brotli, StringComparison.OrdinalIgnoreCase))
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1461if (string.Equals(value, "trailers", StringComparison.OrdinalIgnoreCase))
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
808if (string.Equals(value, "trailers", StringComparison.OrdinalIgnoreCase))
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
1343if (string.Equals(nameValue.Name, "timeout", StringComparison.OrdinalIgnoreCase)) 1363else if (string.Equals(nameValue.Name, "max", StringComparison.OrdinalIgnoreCase))
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (8)
133if (value.StartsWith("http://", StringComparison.OrdinalIgnoreCase)) 137else if (value.StartsWith("https://", StringComparison.OrdinalIgnoreCase)) 143else if (value.StartsWith("socks4://", StringComparison.OrdinalIgnoreCase)) 148else if (value.StartsWith("socks5://", StringComparison.OrdinalIgnoreCase)) 153else if (value.StartsWith("socks4a://", StringComparison.OrdinalIgnoreCase)) 265string.Compare(s, 1, input.Host, 0, input.Host.Length, StringComparison.OrdinalIgnoreCase) == 0) 269else if (input.Host.EndsWith(s, StringComparison.OrdinalIgnoreCase)) 277if (string.Equals(s, input.Host, StringComparison.OrdinalIgnoreCase))
System\Net\Http\SocketsHttpHandler\HttpUtilities.SocketsHttpHandler.cs (9)
13string.Equals(scheme, "http", StringComparison.OrdinalIgnoreCase) || IsNonSecureWebSocketScheme(scheme); 16string.Equals(scheme, "https", StringComparison.OrdinalIgnoreCase) || IsSecureWebSocketScheme(scheme); 19string.Equals(scheme, "ws", StringComparison.OrdinalIgnoreCase); 22string.Equals(scheme, "wss", StringComparison.OrdinalIgnoreCase); 25string.Equals(scheme, "http", StringComparison.OrdinalIgnoreCase) || string.Equals(scheme, "https", StringComparison.OrdinalIgnoreCase) || IsSocksScheme(scheme); 28string.Equals(scheme, "socks5", StringComparison.OrdinalIgnoreCase) || 29string.Equals(scheme, "socks4a", StringComparison.OrdinalIgnoreCase) || 30string.Equals(scheme, "socks4", StringComparison.OrdinalIgnoreCase);
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (3)
40if (string.Equals(proxyUri.Scheme, "socks5", StringComparison.OrdinalIgnoreCase)) 44else if (string.Equals(proxyUri.Scheme, "socks4a", StringComparison.OrdinalIgnoreCase)) 48else if (string.Equals(proxyUri.Scheme, "socks4", StringComparison.OrdinalIgnoreCase))
System.Net.HttpListener (25)
src\libraries\Common\src\System\Net\CookieComparer.cs (2)
10if (!string.Equals(left.Name, right.Name, StringComparison.OrdinalIgnoreCase)) 26=> StripLeadingDot(left).Equals(StripLeadingDot(right), StringComparison.OrdinalIgnoreCase);
src\libraries\Common\src\System\Net\CookieParser.cs (1)
454return string.Equals(_name, value, StringComparison.OrdinalIgnoreCase);
System\Net\HttpListener.cs (2)
116if (string.Compare(uriPrefix, 0, "http://", 0, 7, StringComparison.OrdinalIgnoreCase) == 0) 120else if (string.Compare(uriPrefix, 0, "https://", 0, 8, StringComparison.OrdinalIgnoreCase) == 0)
System\Net\HttpListenerRequest.cs (4)
130if (string.Equals(connection, HttpKnownHeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 144if (string.Equals(upgrade, HttpWebSocket.WebSocketUpgradeToken, StringComparison.OrdinalIgnoreCase)) 181header.IndexOf("close", StringComparison.OrdinalIgnoreCase) < 0 || 182header.Contains("keep-alive", StringComparison.OrdinalIgnoreCase);
System\Net\HttpListenerRequestUriBuilder.cs (2)
379if (uriString.StartsWith("http://", StringComparison.OrdinalIgnoreCase)) 383else if (uriString.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
System\Net\Managed\HttpListenerContext.Managed.cs (1)
56string.Compare(header, 0, AuthenticationTypes.Basic, 0, 5, StringComparison.OrdinalIgnoreCase) == 0;
System\Net\Managed\HttpListenerRequest.Managed.cs (6)
182_isChunked = (t_encoding != null && string.Equals(t_encoding, "chunked", StringComparison.OrdinalIgnoreCase)); 193if (string.Equals(_method, "POST", StringComparison.OrdinalIgnoreCase) || 194string.Equals(_method, "PUT", StringComparison.OrdinalIgnoreCase)) 201if (string.Equals(Headers[HttpKnownHeaderNames.Expect], "100-continue", StringComparison.OrdinalIgnoreCase)) 220if (name.Equals("content-length", StringComparison.OrdinalIgnoreCase)) 240else if (name.Equals("transfer-encoding", StringComparison.OrdinalIgnoreCase))
System\Net\Managed\HttpListenerResponse.Managed.cs (3)
288!string.Equals(name, HttpKnownHeaderNames.Location, StringComparison.OrdinalIgnoreCase); 310if (key.Equals(HttpKnownHeaderNames.SetCookie, StringComparison.OrdinalIgnoreCase) || 311key.Equals(HttpKnownHeaderNames.SetCookie2, StringComparison.OrdinalIgnoreCase))
System\Net\ServiceNameStore.cs (2)
113if (inputServiceName.Equals(normalizedServiceName, StringComparison.OrdinalIgnoreCase)) 203if (serviceName.Equals(newServiceName, StringComparison.OrdinalIgnoreCase))
System\Net\WebSockets\HttpWebSocket.cs (2)
67if (string.Equals(acceptProtocol, currentRequestProtocol, StringComparison.OrdinalIgnoreCase)) 126if (!string.Equals(secWebSocketVersion, SupportedVersion, StringComparison.OrdinalIgnoreCase))
System.Net.Mail (13)
System\Net\Mail\SmtpConnection.Auth.cs (7)
49SizeOfAuthExtension, StringComparison.OrdinalIgnoreCase) == 0) 56if (string.Equals(authType, AuthLogin, StringComparison.OrdinalIgnoreCase)) 60else if (string.Equals(authType, AuthNtlm, StringComparison.OrdinalIgnoreCase)) 64else if (string.Equals(authType, AuthGssapi, StringComparison.OrdinalIgnoreCase)) 70else if (string.Compare(extension, 0, "dsn ", 0, 3, StringComparison.OrdinalIgnoreCase) == 0) 74else if (string.Compare(extension, 0, "STARTTLS", 0, 8, StringComparison.OrdinalIgnoreCase) == 0) 78else if (string.Compare(extension, 0, "SMTPUTF8", 0, 8, StringComparison.OrdinalIgnoreCase) == 0)
System\Net\Mime\ContentDisposition.cs (1)
248string.Equals(ToString(), rparam.ToString(), StringComparison.OrdinalIgnoreCase);
System\Net\Mime\ContentType.cs (1)
213rparam == null ? false : string.Equals(ToString(), rparam.ToString(), StringComparison.OrdinalIgnoreCase);
System\Net\Mime\MimePart.cs (4)
57if (value.Equals("base64", StringComparison.OrdinalIgnoreCase)) 61else if (value.Equals("quoted-printable", StringComparison.OrdinalIgnoreCase)) 65else if (value.Equals("7bit", StringComparison.OrdinalIgnoreCase)) 69else if (value.Equals("8bit", StringComparison.OrdinalIgnoreCase))
System.Net.NameResolution (1)
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.cs (1)
30return envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase);
System.Net.Ping (1)
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.cs (1)
30return envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase);
System.Net.Primitives (18)
src\libraries\Common\src\System\Net\CookieComparer.cs (2)
10if (!string.Equals(left.Name, right.Name, StringComparison.OrdinalIgnoreCase)) 26=> StripLeadingDot(left).Equals(StripLeadingDot(right), StringComparison.OrdinalIgnoreCase);
src\libraries\Common\src\System\Net\CookieParser.cs (1)
454return string.Equals(_name, value, StringComparison.OrdinalIgnoreCase);
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (3)
36if (!string.Equals(authenticationType, AuthenticationType, StringComparison.OrdinalIgnoreCase)) 73return string.Compare(uri.AbsolutePath, 0, uriPrefix.AbsolutePath, 0, UriPrefixLength, StringComparison.OrdinalIgnoreCase) == 0; 88string.Equals(AuthenticationType, other.AuthenticationType, StringComparison.OrdinalIgnoreCase) &&
System\Net\Cookie.cs (1)
626&& string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase)
System\Net\CookieCollection.cs (1)
52if (string.Equals(c!.Name, name, StringComparison.OrdinalIgnoreCase))
System\Net\CookieContainer.cs (2)
583if ((string.Equals(headerName, s_headerInfo[i].Name, StringComparison.OrdinalIgnoreCase))) 807if (cookie.DomainImplicit && !string.Equals(host, cookie.Domain, StringComparison.OrdinalIgnoreCase))
System\Net\CredentialCache.cs (8)
30&& !((string.Equals(authType, NegotiationInfoClass.NTLM, StringComparison.OrdinalIgnoreCase)) 31|| (string.Equals(authType, NegotiationInfoClass.Kerberos, StringComparison.OrdinalIgnoreCase)) 32|| (string.Equals(authType, NegotiationInfoClass.Negotiate, StringComparison.OrdinalIgnoreCase))) 56&& !((string.Equals(authenticationType, NegotiationInfoClass.NTLM, StringComparison.OrdinalIgnoreCase)) 57|| (string.Equals(authenticationType, NegotiationInfoClass.Kerberos, StringComparison.OrdinalIgnoreCase)) 58|| (string.Equals(authenticationType, NegotiationInfoClass.Negotiate, StringComparison.OrdinalIgnoreCase))) 373string.Equals(AuthenticationType, other.AuthenticationType, StringComparison.OrdinalIgnoreCase) && 374string.Equals(Host, other.Host, StringComparison.OrdinalIgnoreCase) &&
System.Net.Quic (2)
src\libraries\Common\src\System\AppContextSwitchHelper.cs (2)
22if (str == "1" || string.Equals(str, bool.TrueString, StringComparison.OrdinalIgnoreCase)) 26if (str == "0" || string.Equals(str, bool.FalseString, StringComparison.OrdinalIgnoreCase))
System.Net.Requests (13)
System\Net\FileWebRequest.cs (2)
121if (string.Equals(_method, "GET", StringComparison.OrdinalIgnoreCase) || 122string.Equals(_method, "HEAD", StringComparison.OrdinalIgnoreCase))
System\Net\HttpWebRequest.cs (9)
468fChunked = (value.Contains(ChunkedHeader, StringComparison.OrdinalIgnoreCase)); 605fKeepAlive = (value.Contains("keep-alive", StringComparison.OrdinalIgnoreCase)); 606fClose = (value.Contains("close", StringComparison.OrdinalIgnoreCase)); 660fContinue100 = (value.Contains(ContinueHeader, StringComparison.OrdinalIgnoreCase)); 1077if (string.Equals(HttpMethod.Get.Method, _originVerb, StringComparison.OrdinalIgnoreCase) || 1078string.Equals(HttpMethod.Head.Method, _originVerb, StringComparison.OrdinalIgnoreCase) || 1079string.Equals("CONNECT", _originVerb, StringComparison.OrdinalIgnoreCase)) 1569if (!string.Equals(curRange.Substring(0, curRange.IndexOf('=')), rangeSpecifier, StringComparison.OrdinalIgnoreCase)) 1617if (string.Equals(header, contentHeaderName, StringComparison.OrdinalIgnoreCase))
System\Net\WebRequest.cs (2)
120StringComparison.OrdinalIgnoreCase) == 0) 289if (string.Equals(Current.Prefix, prefix, StringComparison.OrdinalIgnoreCase))
System.Net.Security (10)
src\libraries\Common\src\System\AppContextSwitchHelper.cs (2)
22if (str == "1" || string.Equals(str, bool.TrueString, StringComparison.OrdinalIgnoreCase)) 26if (str == "0" || string.Equals(str, bool.FalseString, StringComparison.OrdinalIgnoreCase))
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (1)
325return string.Equals(scheme, "http", StringComparison.OrdinalIgnoreCase);
System\Net\NegotiateAuthenticationPal.Unix.cs (4)
30(OperatingSystem.IsLinux() && RuntimeInformation.RuntimeIdentifier.StartsWith("linux-bionic-", StringComparison.OrdinalIgnoreCase)); 462if (string.Equals(package, NegotiationInfoClass.Negotiate, StringComparison.OrdinalIgnoreCase)) 466else if (string.Equals(package, NegotiationInfoClass.NTLM, StringComparison.OrdinalIgnoreCase)) 470else if (string.Equals(package, NegotiationInfoClass.Kerberos, StringComparison.OrdinalIgnoreCase))
System\Net\Security\SslStream.Protocol.cs (1)
44(envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase)) ? 1 : 0;
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (2)
60if (string.Equals(serviceName, searchName, StringComparison.OrdinalIgnoreCase)) 256if (string.Equals(inputServiceName, normalizedServiceName, StringComparison.OrdinalIgnoreCase))
System.Net.Sockets (1)
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.cs (1)
30return envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase);
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
487else if (contentType.StartsWith("multipart/", StringComparison.OrdinalIgnoreCase)) 595if (contentType != null && !string.Equals(contentType, UploadValuesContentType, StringComparison.OrdinalIgnoreCase))
System.Net.WebHeaderCollection (1)
System\Net\HeaderInfoTable.cs (1)
77return lastElement.Slice(0, equalsPos).Trim().Equals("Expires", StringComparison.OrdinalIgnoreCase);
System.Net.WebProxy (1)
System\Net\WebProxy.NonWasm.cs (1)
44string.Compare(local, 0, hostString, dot, local.Length, StringComparison.OrdinalIgnoreCase) == 0;
System.Net.WebSockets.Client (3)
System\Net\WebSockets\ClientWebSocketOptions.cs (1)
167if (string.Equals(item, subProtocol, StringComparison.OrdinalIgnoreCase))
System\Net\WebSockets\WebSocketHandle.Managed.cs (2)
160if (requestedProtocol.Equals(subprotocolArray[0], StringComparison.OrdinalIgnoreCase)) 519if (string.Equals(value, expectedValue, StringComparison.OrdinalIgnoreCase))
System.Private.CoreLib (98)
src\libraries\Common\src\System\IO\PathInternal.CaseSensitivity.cs (1)
18StringComparison.OrdinalIgnoreCase;
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (12)
200if (attributeValue.Equals("Yes", StringComparison.OrdinalIgnoreCase)) 204else if (attributeValue.Equals("No", StringComparison.OrdinalIgnoreCase)) 220if (attributeValue.Equals("WindowsRuntime", StringComparison.OrdinalIgnoreCase)) 245=> candidate.Equals(attributeKind, StringComparison.OrdinalIgnoreCase); 292if (attributeValue.Equals("Neutral", StringComparison.OrdinalIgnoreCase)) 304if (attributeValue.Equals("null", StringComparison.OrdinalIgnoreCase) || attributeValue == string.Empty) 331_ when attributeValue.Equals("msil", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.MSIL, 332_ when attributeValue.Equals("x86", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.X86, 333_ when attributeValue.Equals("ia64", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.IA64, 334_ when attributeValue.Equals("amd64", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.Amd64, 335_ when attributeValue.Equals("arm", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.Arm, 336_ when attributeValue.Equals("msil", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.MSIL,
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (2)
209return value.Equals(TrueLiteral, StringComparison.OrdinalIgnoreCase); 214return value.Equals(FalseLiteral, StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (1)
115public override bool Equals(string? x, string? y) => string.Equals(x, y, StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (1)
105public override bool Equals(string? x, string? y) => string.Equals(x, y, StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3470string.Equals(args[0].Name, "relatedActivityId", StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (2)
158if (string.IsNullOrEmpty(s_eventSourceNameFilter) || (eventSource.Name.Contains(s_eventSourceNameFilter, StringComparison.OrdinalIgnoreCase))) 176if (string.IsNullOrEmpty(s_eventSourceEventFilter) || (eventData.EventName!.Contains(s_eventSourceEventFilter, StringComparison.OrdinalIgnoreCase)))
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (3)
669if (string.IsNullOrEmpty(cultureName) || cultureName.Equals(UndeterminedCultureName, StringComparison.OrdinalIgnoreCase)) 943Name.Equals("zh-CHT", StringComparison.OrdinalIgnoreCase) ? "zh-Hant" : 944Name.Equals("zh-CHS", StringComparison.OrdinalIgnoreCase) ? "zh-Hans" :
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
44if (name.Length > 1 && (name[0] == '-' || name[0] == '_') && originalName.StartsWith("und", StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (2)
355if (regionName != null && regionName.Equals(context->regionName, StringComparison.OrdinalIgnoreCase)) 530if (string.Equals(context.strings[i], _sRealName, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
3677if (span.StartsWith(match, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (3)
413if (unicode.AsSpan(iAfterLastDot).StartsWith(c_strAcePrefix, StringComparison.OrdinalIgnoreCase)) 552if (!ascii.Equals(GetAscii(strUnicode), StringComparison.OrdinalIgnoreCase)) 622string.Compare(ascii, iAfterLastDot, c_strAcePrefix, 0, c_strAcePrefix.Length, StringComparison.OrdinalIgnoreCase) != 0)
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
529bool isDutchCulture = CultureName.StartsWith("nl-", StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (1)
173return name.EndsWith(expressionEnd, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (1)
431!srcNoDirectorySeparator.Equals(destNoDirectorySeparator, StringComparison.OrdinalIgnoreCase) || // different paths.
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (2)
869Debug.Assert(comparisonType == StringComparison.Ordinal || comparisonType == StringComparison.OrdinalIgnoreCase); 878int commonLength = PathInternal.GetCommonPathLength(relativeTo, path, ignoreCase: comparisonType == StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (6)
64Debug.Assert(comparisonType == StringComparison.OrdinalIgnoreCase); 116Debug.Assert(comparisonType == StringComparison.OrdinalIgnoreCase); 147Debug.Assert(comparisonType == StringComparison.OrdinalIgnoreCase); 182Debug.Assert(comparisonType == StringComparison.OrdinalIgnoreCase); 316Debug.Assert(comparisonType == StringComparison.OrdinalIgnoreCase); 354Debug.Assert(comparisonType == StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.Utf8.cs (1)
58Debug.Assert(comparisonType == StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (2)
986if (SpanStartsWith(valueTrim, positiveSign, StringComparison.OrdinalIgnoreCase)) 1007if (SpanStartsWith(valueTrim, negativeSign, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (1)
127return platform.Equals(OSPlatformName, StringComparison.OrdinalIgnoreCase)
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
294return refName.Equals(defName, StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (1)
172public static readonly TypeFilter FilterTypeNameIgnoreCase = (m, c) => FilterTypeNameImpl(m, c!, StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
579return asmTypeName.AsSpan(firstComma + 1, simpleAsmNameLength).Trim().Equals("mscorlib", StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\OSPlatform.cs (1)
42return string.Equals(Name, other, StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
121!string.Equals(assemblyName.CultureName, NeutralCultureName, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\LibraryNameVariation.Unix.cs (1)
29int indexOfSuffix = libName.IndexOf(LibraryNameSuffix, StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (2)
158if (key.Equals(VersionKey, StringComparison.OrdinalIgnoreCase)) 179else if (key.Equals(ProfileKey, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (4)
231/// <param name="comparisonType">Specifies whether to use <see cref="StringComparison.Ordinal"/> or <see cref="StringComparison.OrdinalIgnoreCase"/> search semantics.</param> 233/// <remarks>Only <see cref="StringComparison.Ordinal"/> or <see cref="StringComparison.OrdinalIgnoreCase"/> may be used.</remarks> 236if (comparisonType is not (StringComparison.Ordinal or StringComparison.OrdinalIgnoreCase)) 241return StringSearchValues.Create(values, ignoreCase: comparisonType == StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\MultiStringIgnoreCaseSearchValuesFallback.cs (1)
32if (remaining.StartsWith(value, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (1)
384: _valueState.Value.Equals(value, IgnoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (1)
383: _valueState.Value.Equals(value, IgnoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
119if (startupHookPart.EndsWith(DisallowedSimpleAssemblyNameSuffix, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (10)
237case StringComparison.OrdinalIgnoreCase: 400Debug.Assert(comparisonType == StringComparison.OrdinalIgnoreCase); // CheckStringComparison validated these earlier 548case StringComparison.OrdinalIgnoreCase: 657case StringComparison.OrdinalIgnoreCase: 715case StringComparison.OrdinalIgnoreCase: 778case StringComparison.OrdinalIgnoreCase: 1125case StringComparison.OrdinalIgnoreCase: 1168if ((uint)comparisonType > (uint)StringComparison.OrdinalIgnoreCase) 1176Debug.Assert((uint)comparisonType <= (uint)StringComparison.OrdinalIgnoreCase); 1196Debug.Assert(comparisonType == StringComparison.Ordinal || comparisonType == StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
1202StringComparison.OrdinalIgnoreCase => ReplaceCore(oldValue, newValue, CompareInfo.Invariant, CompareOptions.OrdinalIgnoreCase),
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (4)
62StringComparison.OrdinalIgnoreCase => IndexOfCharOrdinalIgnoreCase(value), 260StringComparison.Ordinal or StringComparison.OrdinalIgnoreCase => Ordinal.IndexOf(this, value, startIndex, count, comparisonType == StringComparison.OrdinalIgnoreCase), 385StringComparison.Ordinal or StringComparison.OrdinalIgnoreCase => CompareInfo.Invariant.LastIndexOf(this, value, startIndex, count, GetCompareOptionsFromOrdinalStringComparison(comparisonType)),
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (1)
41StringComparison.OrdinalIgnoreCase => OrdinalIgnoreCase,
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (6)
654if (string.Equals(id, UtcId, StringComparison.OrdinalIgnoreCase)) 682if (dateTime.Kind == DateTimeKind.Local && string.Equals(sourceTimeZoneId, Local.Id, StringComparison.OrdinalIgnoreCase)) 692else if (dateTime.Kind == DateTimeKind.Utc && string.Equals(sourceTimeZoneId, Utc.Id, StringComparison.OrdinalIgnoreCase)) 859string.Equals(_id, other._id, StringComparison.OrdinalIgnoreCase) && 1020HasIanaId = hasIanaId || _id.Equals(UtcId, StringComparison.OrdinalIgnoreCase); 2138if (!id.Equals(UtcId, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.cs (1)
52if (windowsId.Equals("utc", StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.Unix.cs (1)
230if (StringArrayContains(timeZoneId, s_ZonesThatUseLocationName, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (8)
39return string.Equals(id, "Etc/UTC", StringComparison.OrdinalIgnoreCase) || 40string.Equals(id, "Etc/UCT", StringComparison.OrdinalIgnoreCase) || 41string.Equals(id, "Etc/Universal", StringComparison.OrdinalIgnoreCase) || 42string.Equals(id, "Etc/Zulu", StringComparison.OrdinalIgnoreCase); 45return string.Equals(id, "UCT", StringComparison.OrdinalIgnoreCase) || 46string.Equals(id, "UTC", StringComparison.OrdinalIgnoreCase) || 47string.Equals(id, "Universal", StringComparison.OrdinalIgnoreCase); 50return string.Equals(id, "Zulu", StringComparison.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
323if (!string.Equals(filePath, localtimeFilePath, StringComparison.OrdinalIgnoreCase) 324&& !string.Equals(filePath, posixrulesFilePath, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
737public static readonly MemberFilter FilterNameIgnoreCase = (m, c) => FilterNameImpl(m, c!, StringComparison.OrdinalIgnoreCase);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
186if (string.Equals(name, strTypeName, StringComparison.OrdinalIgnoreCase))
src\System\RuntimeType.CoreCLR.cs (1)
2108if (!memberInfo.Name.StartsWith(name, StringComparison.OrdinalIgnoreCase))
System.Private.CoreLib.Generators (2)
NativeRuntimeEventSourceGenerator.cs (2)
21IncrementalValuesProvider<AdditionalText> manifestFiles = context.AdditionalTextsProvider.Where(f => f.Path.EndsWith(".man", StringComparison.OrdinalIgnoreCase)); 22IncrementalValuesProvider<AdditionalText> inclusionFiles = context.AdditionalTextsProvider.Where(f => f.Path.EndsWith(".lst", StringComparison.OrdinalIgnoreCase));
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
659if (!name.Equals("xml", StringComparison.OrdinalIgnoreCase))
System.Private.Uri (21)
System\DomainNameHelper.cs (2)
80if (span.Equals(Localhost, StringComparison.OrdinalIgnoreCase) || 81span.Equals(Loopback, StringComparison.OrdinalIgnoreCase))
System\Uri.cs (19)
1797if (string.Equals(_string, other._string, IsUncOrDosPath ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) 1888return string.Equals(selfUrl, otherUrl, IsUncOrDosPath ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); 1965if (uriString.StartsWith("https:", StringComparison.OrdinalIgnoreCase)) 1970else if (uriString.StartsWith("http:", StringComparison.OrdinalIgnoreCase)) 3759if (scheme.Equals("ws", StringComparison.OrdinalIgnoreCase)) return UriParser.WsUri; 3763if (scheme.Equals("wss", StringComparison.OrdinalIgnoreCase)) return UriParser.WssUri; 3764if (scheme.Equals("ftp", StringComparison.OrdinalIgnoreCase)) return UriParser.FtpUri; 3768if (scheme.Equals("http", StringComparison.OrdinalIgnoreCase)) return UriParser.HttpUri; 3769if (scheme.Equals("file", StringComparison.OrdinalIgnoreCase)) return UriParser.FileUri; 3770if (scheme.Equals("uuid", StringComparison.OrdinalIgnoreCase)) return UriParser.UuidUri; 3771if (scheme.Equals("nntp", StringComparison.OrdinalIgnoreCase)) return UriParser.NntpUri; 3772if (scheme.Equals("ldap", StringComparison.OrdinalIgnoreCase)) return UriParser.LdapUri; 3773if (scheme.Equals("news", StringComparison.OrdinalIgnoreCase)) return UriParser.NewsUri; 3777if (scheme.Equals("https", StringComparison.OrdinalIgnoreCase)) return UriParser.HttpsUri; 3781if (scheme.Equals("mailto", StringComparison.OrdinalIgnoreCase)) return UriParser.MailToUri; 3782if (scheme.Equals("gopher", StringComparison.OrdinalIgnoreCase)) return UriParser.GopherUri; 3783if (scheme.Equals("telnet", StringComparison.OrdinalIgnoreCase)) return UriParser.TelnetUri; 3787if (scheme.Equals("net.tcp", StringComparison.OrdinalIgnoreCase)) return UriParser.NetTcpUri; 3791if (scheme.Equals("net.pipe", StringComparison.OrdinalIgnoreCase)) return UriParser.NetPipeUri;
System.Private.Windows.Core (6)
System\Private\Windows\Ole\DataFormatNames.cs (3)
122if (string.Equals(format, Text, StringComparison.OrdinalIgnoreCase)) 127else if (string.Equals(format, UnicodeText, StringComparison.OrdinalIgnoreCase)) 132else if (string.Equals(format, String, StringComparison.OrdinalIgnoreCase))
System\Private\Windows\Ole\DataFormatsCore.cs (2)
30|| TryFindFormat(s_predefinedFormatList, format, StringComparison.OrdinalIgnoreCase, out found) 31|| TryFindFormat(s_formatList, format, StringComparison.OrdinalIgnoreCase, out found))
System\Private\Windows\Ole\DataStore.cs (1)
133if (format.Equals(formats[i], StringComparison.OrdinalIgnoreCase))
System.Private.Xml (32)
System\Xml\Core\XmlAutoDetectWriter.cs (1)
358tagName.Equals("html", StringComparison.OrdinalIgnoreCase);
System\Xml\Core\XmlTextReaderImpl.cs (7)
3229if (string.Equals(newEncodingName, "ucs-2", StringComparison.OrdinalIgnoreCase) || 3230string.Equals(newEncodingName, "utf-16", StringComparison.OrdinalIgnoreCase) || 3231string.Equals(newEncodingName, "iso-10646-ucs-2", StringComparison.OrdinalIgnoreCase) || 3232string.Equals(newEncodingName, "ucs-4", StringComparison.OrdinalIgnoreCase)) 3236!string.Equals(newEncodingName, "ucs-4", StringComparison.OrdinalIgnoreCase)) 3251if (string.Equals(newEncodingName, "utf-8", StringComparison.OrdinalIgnoreCase)) 6210if (string.Equals(target, "xml", StringComparison.OrdinalIgnoreCase))
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
3914if (string.Equals(target, "xml", StringComparison.OrdinalIgnoreCase))
System\Xml\Core\XmlTextWriter.cs (2)
791if (string.Equals(name, "xml", StringComparison.OrdinalIgnoreCase) && _stateTable == s_stateTableDocument) 1774prefix.Equals("xml", StringComparison.OrdinalIgnoreCase) &&
System\Xml\Core\XmlWellFormedWriter.cs (1)
896if (name.Length == 3 && string.Equals(name, "xml", StringComparison.OrdinalIgnoreCase))
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
797if (name.Length == 3 && string.Equals(name, "xml", StringComparison.OrdinalIgnoreCase))
System\Xml\Dom\XmlImplementation.cs (1)
25if (string.Equals("XML", strFeature, StringComparison.OrdinalIgnoreCase))
System\Xml\Dom\XmlNode.cs (1)
816if (string.Equals("XML", feature, StringComparison.OrdinalIgnoreCase))
System\Xml\Schema\Inference\Infer.cs (2)
344if (prefix.Length != 0 && !string.Equals(prefix, "xml", StringComparison.OrdinalIgnoreCase)) 1602if (string.Equals(XmlConvert.ToString(flValue), XmlConvert.ToString(dbValue), StringComparison.OrdinalIgnoreCase))
System\Xml\ValidateNames.cs (1)
414s.StartsWith("xml", StringComparison.OrdinalIgnoreCase);
System\Xml\XPath\Internal\BooleanFunctions.cs (1)
82lang.StartsWith(str, StringComparison.OrdinalIgnoreCase) &&
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (2)
169StringComparison comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; 193StringComparison comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
198if (!lang.StartsWith(value, StringComparison.OrdinalIgnoreCase))
System\Xml\Xsl\XsltOld\ContainerAction.cs (6)
902string.Equals(langName, "jscript", StringComparison.OrdinalIgnoreCase) || 903string.Equals(langName, "javascript", StringComparison.OrdinalIgnoreCase) 909string.Equals(langName, "c#", StringComparison.OrdinalIgnoreCase) || 910string.Equals(langName, "csharp", StringComparison.OrdinalIgnoreCase) 916string.Equals(langName, "vb", StringComparison.OrdinalIgnoreCase) || 917string.Equals(langName, "visualbasic", StringComparison.OrdinalIgnoreCase)
System\Xml\Xsl\XsltOld\ProcessingInstructionAction.cs (1)
152if (nameLength == 3 && name.StartsWith("xml", StringComparison.OrdinalIgnoreCase))
System\Xml\Xsl\XsltOld\SequentialOutput.cs (2)
367if (node.NamespaceURI.Length == 0 && string.Equals("html", node.LocalName, StringComparison.OrdinalIgnoreCase)) 713if (abr && string.Equals(attribute.LocalName, attrValue, StringComparison.OrdinalIgnoreCase))
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
118if (string.Equals(name, methods[i].Name, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal))
System.Private.Xml.Linq (1)
System\Xml\Linq\XProcessingInstruction.cs (1)
162if (string.Equals(name, "xml", StringComparison.OrdinalIgnoreCase)) throw new ArgumentException(SR.Format(SR.Argument_InvalidPIName, name));
System.Reflection.Context (3)
System\Reflection\Context\Custom\CustomType.cs (2)
111StringComparison comparison = getIgnoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; 200StringComparison comparison = getIgnoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
System\Reflection\Context\Projection\ProjectingType.cs (1)
111? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
System.Reflection.Emit (3)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
1220StringComparison casing = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
System\Reflection\Emit\TypeBuilderImpl.cs (2)
853StringComparison compare = (bindingFlags & BindingFlags.IgnoreCase) != 0 ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; 940StringComparison compare = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
System.Reflection.Metadata (17)
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (12)
200if (attributeValue.Equals("Yes", StringComparison.OrdinalIgnoreCase)) 204else if (attributeValue.Equals("No", StringComparison.OrdinalIgnoreCase)) 220if (attributeValue.Equals("WindowsRuntime", StringComparison.OrdinalIgnoreCase)) 245=> candidate.Equals(attributeKind, StringComparison.OrdinalIgnoreCase); 292if (attributeValue.Equals("Neutral", StringComparison.OrdinalIgnoreCase)) 304if (attributeValue.Equals("null", StringComparison.OrdinalIgnoreCase) || attributeValue == string.Empty) 331_ when attributeValue.Equals("msil", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.MSIL, 332_ when attributeValue.Equals("x86", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.X86, 333_ when attributeValue.Equals("ia64", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.IA64, 334_ when attributeValue.Equals("amd64", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.Amd64, 335_ when attributeValue.Equals("arm", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.Arm, 336_ when attributeValue.Equals("msil", StringComparison.OrdinalIgnoreCase) => ProcessorArchitecture.MSIL,
System\Reflection\Internal\Utilities\MemoryBlock.cs (2)
355return decoded.Equals(text, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); 379return decoded.StartsWith(text, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
System\Reflection\Metadata\Internal\BlobHeap.cs (1)
247return GetDocumentName(handle).Equals(other, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
System\Reflection\Metadata\Internal\StringHeap.cs (2)
254return string.Equals(GetString(handle, utf8Decoder), value, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); 273return GetString(handle, utf8Decoder).StartsWith(value, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
System.Reflection.MetadataLoadContext (5)
System\Reflection\PathAssemblyResolver.cs (1)
67if (assemblyName.Name.Equals(assemblyNameFromPath.Name, StringComparison.OrdinalIgnoreCase))
System\Reflection\Runtime\BindingFlagSupport\NameFilter.cs (1)
39public sealed override bool Matches(string name) => name.Equals(ExpectedName, StringComparison.OrdinalIgnoreCase);
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (1)
123if (name.Equals(candidate.Name, StringComparison.OrdinalIgnoreCase))
System\Reflection\TypeLoading\RuntimeTypeInfo.GetMember.cs (1)
35StringComparison comparisonType = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
System\Reflection\TypeLoading\Types\RoType.GetInterface.cs (1)
22? simpleName.Equals(ifcSimpleName, StringComparison.OrdinalIgnoreCase)
System.Resources.Extensions (2)
System\Resources\Extensions\TypeNameComparer.cs (2)
48return assemblyName.Equals("mscorlib".AsSpan(), StringComparison.OrdinalIgnoreCase); 99if (!simpleName1.Equals(simpleName2, StringComparison.OrdinalIgnoreCase))
System.Runtime.Caching (3)
System\Runtime\Caching\FileChangeNotificationSystem.cs (1)
52return 0 == string.Compare(s1, 0, s2, 0, s2.Length, StringComparison.OrdinalIgnoreCase);
System\Runtime\Caching\MemoryCache.cs (2)
330if (string.Equals(name, "default", StringComparison.OrdinalIgnoreCase)) 348if (string.Equals(name, "default", StringComparison.OrdinalIgnoreCase))
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
130if (string.Equals(existingName, assemblyName, StringComparison.OrdinalIgnoreCase)) 726if (string.Equals(typeName, type.Name, StringComparison.OrdinalIgnoreCase)) 751if (string.Equals(typeName, declaration.Name, StringComparison.OrdinalIgnoreCase))
System.Security.Claims (4)
System\Security\Claims\ClaimsIdentity.cs (3)
41private readonly StringComparison _stringComparison = StringComparison.OrdinalIgnoreCase; 282StringComparison stringComparison = StringComparison.OrdinalIgnoreCase) 1041case StringComparison.OrdinalIgnoreCase:
System\Security\Claims\GenericPrincipal.cs (1)
77if (string.Equals(m_roles[i], role, StringComparison.OrdinalIgnoreCase))
System.Security.Cryptography (23)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (1)
325return string.Equals(scheme, "http", StringComparison.OrdinalIgnoreCase);
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
57if (string.Equals(szOid1, szOid2, StringComparison.OrdinalIgnoreCase)) 62if (string.Equals(szOid1, Oids.SigningTime, StringComparison.OrdinalIgnoreCase))
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (2)
238if (str != null && !string.Equals(str, "SHA1", StringComparison.OrdinalIgnoreCase)) 255if (str != null && !string.Equals(str, "SHA1", StringComparison.OrdinalIgnoreCase))
System\Security\Cryptography\HashAlgorithmNames.cs (5)
53if (hashAlgorithmName.Equals(SHA256, StringComparison.OrdinalIgnoreCase)) 58if (hashAlgorithmName.Equals(SHA384, StringComparison.OrdinalIgnoreCase)) 63if (hashAlgorithmName.Equals(SHA512, StringComparison.OrdinalIgnoreCase)) 68if (hashAlgorithmName.Equals(SHA1, StringComparison.OrdinalIgnoreCase)) 73if (hashAlgorithmName.Equals(MD5, StringComparison.OrdinalIgnoreCase))
System\Security\Cryptography\Helpers.cs (1)
218string.Equals(aCurve.Oid.FriendlyName, bCurve.Oid.FriendlyName, StringComparison.OrdinalIgnoreCase);
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (2)
73return formedSubject.Contains(subjectName, StringComparison.OrdinalIgnoreCase); 90return formedIssuer.Contains(issuerName, StringComparison.OrdinalIgnoreCase);
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (1)
51Debug.Assert(!X509Store.DisallowedStoreName.Equals(storeName, StringComparison.OrdinalIgnoreCase));
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (3)
145if (X509Store.DisallowedStoreName.Equals(storeName, StringComparison.OrdinalIgnoreCase)) 166if (X509Store.RootStoreName.Equals(storeName, StringComparison.OrdinalIgnoreCase)) 171if (X509Store.IntermediateCAStoreName.Equals(storeName, StringComparison.OrdinalIgnoreCase))
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (1)
481bool prefixed = str.StartsWith(OidTagPrefix, StringComparison.OrdinalIgnoreCase);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (4)
1714/// The "exact" matches performed by this routine are <see cref="StringComparison.OrdinalIgnoreCase"/>, 1834if (embeddedSpan.Slice(2).Equals(afterFirstDot, StringComparison.OrdinalIgnoreCase)) 1839else if (embeddedSpan.Equals(match, StringComparison.OrdinalIgnoreCase)) 1894return hostname.Equals(cn.GetSingleElementValue(), StringComparison.OrdinalIgnoreCase);
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
57if (string.Equals(extension.Oid!.Value, oidValue, StringComparison.OrdinalIgnoreCase))
System.Security.Cryptography.Pkcs (2)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
57if (string.Equals(szOid1, szOid2, StringComparison.OrdinalIgnoreCase)) 62if (string.Equals(szOid1, Oids.SigningTime, StringComparison.OrdinalIgnoreCase))
System.Security.Cryptography.Xml (5)
System\Security\Cryptography\Xml\SignedXml.cs (4)
334if (string.Equals(extension.Oid!.Value, "2.5.29.15" /* szOID_KEY_USAGE */, StringComparison.OrdinalIgnoreCase)) 671if (string.Equals(safeAlgorithm, SignedInfo!.CanonicalizationMethod, StringComparison.OrdinalIgnoreCase)) 704if (string.Equals(safeAlgorithm, transformAlgorithm, StringComparison.OrdinalIgnoreCase)) 712if (string.Equals(safeAlgorithm, transformAlgorithm, StringComparison.OrdinalIgnoreCase))
System\Security\Cryptography\Xml\Utils.cs (1)
743if (string.Equals(certificate.SubjectName.Name, certificate.IssuerName.Name, StringComparison.OrdinalIgnoreCase))
System.Security.Permissions (2)
System\Security\Permissions\IDRole.cs (1)
22Authenticated = elAuth == null ? false : string.Equals(elAuth, "true", StringComparison.OrdinalIgnoreCase);
System\Security\Permissions\PrincipalPermission.cs (1)
241(idRole.ID == null || string.Equals(principal.Identity.Name, idRole.ID, StringComparison.OrdinalIgnoreCase)))
System.ServiceModel.Http (26)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
131if (!(requested == null ? string.IsNullOrWhiteSpace(obtained) : requested.Equals(obtained, StringComparison.OrdinalIgnoreCase)))
System\ServiceModel\Channels\HttpChannelFactory.cs (17)
482if (string.Compare(via.Scheme, "ws", StringComparison.OrdinalIgnoreCase) != 0) 1179if (string.Compare(name, "accept", StringComparison.OrdinalIgnoreCase) == 0) 1183else if (string.Compare(name, "connection", StringComparison.OrdinalIgnoreCase) == 0) 1185if (value.IndexOf("keep-alive", StringComparison.OrdinalIgnoreCase) != -1) 1194else if (string.Compare(name, "SOAPAction", StringComparison.OrdinalIgnoreCase) == 0) 1209else if (string.Compare(name, "content-length", StringComparison.OrdinalIgnoreCase) == 0) 1213else if (string.Compare(name, "content-type", StringComparison.OrdinalIgnoreCase) == 0) 1217else if (string.Compare(name, "expect", StringComparison.OrdinalIgnoreCase) == 0) 1219if (value.ToUpperInvariant().IndexOf("100-CONTINUE", StringComparison.OrdinalIgnoreCase) != -1) 1228else if (string.Compare(name, "referer", StringComparison.OrdinalIgnoreCase) == 0) 1234else if (string.Compare(name, "transfer-encoding", StringComparison.OrdinalIgnoreCase) == 0) 1236if (value.ToUpperInvariant().IndexOf("CHUNKED", StringComparison.OrdinalIgnoreCase) != -1) 1245else if (string.Compare(name, "user-agent", StringComparison.OrdinalIgnoreCase) == 0) 1249else if (string.Compare(name, "if-modified-since", StringComparison.OrdinalIgnoreCase) == 0) 1262else if (string.Compare(name, "date", StringComparison.OrdinalIgnoreCase) == 0) 1266else if (string.Compare(name, "proxy-connection", StringComparison.OrdinalIgnoreCase) == 0) 1270else if (string.Compare(name, "range", StringComparison.OrdinalIgnoreCase) == 0)
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
364if (string.Compare(statusDescription, HttpChannelUtilities.StatusDescriptionStrings.HttpContentTypeMissing, StringComparison.OrdinalIgnoreCase) == 0)
System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
95if (string.Compare(via.Scheme, "wss", StringComparison.OrdinalIgnoreCase) != 0)
System\ServiceModel\Channels\HttpTransportSecurityHelpers.cs (2)
48if (!(value.StartsWith("host/", StringComparison.OrdinalIgnoreCase) || value.StartsWith("http/", StringComparison.OrdinalIgnoreCase)))
System\ServiceModel\Channels\MessageContent.cs (2)
68if (string.Compare(name, "SOAPAction", StringComparison.OrdinalIgnoreCase) == 0) 83else if (string.Compare(name, "content-type", StringComparison.OrdinalIgnoreCase) == 0)
System\ServiceModel\Channels\WebSocketHelper.cs (2)
51(WebSocketHelper.SchemeWs.Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase) || 52WebSocketHelper.SchemeWss.Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase));
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\NetFramingTransportChannelFactory.cs (1)
372if (string.Compare(via.Scheme, Scheme, StringComparison.OrdinalIgnoreCase) != 0)
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
881if ("localhost".Equals(uri.DnsSafeHost, StringComparison.OrdinalIgnoreCase))
System.ServiceModel.Primitives (23)
Internals\System\Xml\XmlMtomReader.cs (9)
200if (string.Compare(MtomGlobals.MediaType, header.MediaType, StringComparison.OrdinalIgnoreCase) != 0 201|| string.Compare(MtomGlobals.MediaSubtype, header.MediaSubtype, StringComparison.OrdinalIgnoreCase) != 0) 225if (string.Compare(MtomGlobals.XopMediaType, header.MediaType, StringComparison.OrdinalIgnoreCase) != 0 226|| string.Compare(MtomGlobals.XopMediaSubtype, header.MediaSubtype, StringComparison.OrdinalIgnoreCase) != 0) 236if (string.Compare(charset, expectedEncodings[i].WebName, StringComparison.OrdinalIgnoreCase) == 0) 245if (string.Compare(charset, "utf-16LE", StringComparison.OrdinalIgnoreCase) == 0) 249if (string.Compare(expectedEncodings[i].WebName, Encoding.Unicode.WebName, StringComparison.OrdinalIgnoreCase) == 0) 256else if (string.Compare(charset, "utf-16BE", StringComparison.OrdinalIgnoreCase) == 0) 260if (string.Compare(expectedEncodings[i].WebName, Encoding.BigEndianUnicode.WebName, StringComparison.OrdinalIgnoreCase) == 0)
Internals\System\Xml\XmlMtomWriter.cs (3)
194if (string.Compare(name, Encoding.UTF8.WebName, StringComparison.OrdinalIgnoreCase) == 0) 196if (string.Compare(name, Encoding.Unicode.WebName, StringComparison.OrdinalIgnoreCase) == 0) 198if (string.Compare(name, Encoding.BigEndianUnicode.WebName, StringComparison.OrdinalIgnoreCase) == 0)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
814return contentType == supportedContentType || contentType.StartsWith(supportedContentType, StringComparison.OrdinalIgnoreCase);
System\ServiceModel\Channels\MessageEncoder.cs (2)
163if (contentType.StartsWith(supportedContentType, StringComparison.OrdinalIgnoreCase)) 216if (supportedMediaType.Length > 0 && !supportedMediaType.Equals(parsedContentType.MediaType, StringComparison.OrdinalIgnoreCase))
System\ServiceModel\Channels\TextMessageEncoder.cs (2)
145&& string.Compare("charset=", 0, contentType, semiColonIndex + 2, 8, StringComparison.OrdinalIgnoreCase) == 0) 152int paramIndex = contentType.IndexOf("charset=", semiColonIndex + 1, StringComparison.OrdinalIgnoreCase);
System\ServiceModel\Channels\TransportChannelFactory.cs (1)
164if (string.Compare(via.Scheme, Scheme, StringComparison.OrdinalIgnoreCase) != 0)
System\ServiceModel\Channels\TransportDefaults.cs (1)
119if (compare.Equals(charSet, StringComparison.OrdinalIgnoreCase))
System\ServiceModel\EndpointAddress.cs (3)
337if (string.Compare(u1.Host, u2.Host, StringComparison.OrdinalIgnoreCase) != 0) 343if (string.Compare(u1.AbsolutePath, u2.AbsolutePath, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0) 357return string.Compare(u1Path, 0, u2Path, 0, u1Len, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0;
System\ServiceModel\Security\IdentityVerifier.cs (1)
197if (expectedSpn.Equals((string)claim.Resource, StringComparison.OrdinalIgnoreCase))
System.Text.Encoding.CodePages (1)
System\Text\EncodingNLS.cs (1)
362if (_encodingName.StartsWith("Globalization_cp_", StringComparison.OrdinalIgnoreCase))
System.Text.Json (3)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (2)
600Debug.Assert(JsonName.Equals(other.JsonName, StringComparison.OrdinalIgnoreCase), "The conflicting entry must be equal up to case insensitivity."); 645Debug.Assert(input.Equals(JsonName.AsSpan(), StringComparison.OrdinalIgnoreCase), "Must equal the field name up to case insensitivity.");
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1062public bool Equals(ParameterLookupKey other) => Type == other.Type && string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase);
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (1)
1565=> propSpec.MemberName.Equals(paramSpec.Name, StringComparison.OrdinalIgnoreCase);
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
156var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
System.Text.RegularExpressions (7)
System\Text\RegularExpressions\RegexCompiler.cs (4)
779LoadSearchValues(opts.LeadingPrefixes, opts.FindMode is FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); 787LoadSearchValues([literalString], opts.FindMode is FindNextStartingPositionMode.LeadingString_OrdinalIgnoreCase_LeftToRight ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); 1273if (target.Literal.StringComparison is StringComparison.OrdinalIgnoreCase) 2923Ldc((int)StringComparison.OrdinalIgnoreCase);
System\Text\RegularExpressions\RegexFindOptimizations.cs (2)
181LeadingStrings = SearchValues.Create(LeadingPrefixes, StringComparison.OrdinalIgnoreCase); 634int i = textSpan.Slice(pos).IndexOf(LeadingPrefix.AsSpan(), StringComparison.OrdinalIgnoreCase);
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1216return (firstChild, ('\0', ordinalCaseInsensitivePrefix, StringComparison.OrdinalIgnoreCase, null));
System.Text.RegularExpressions.Generator (9)
RegexGenerator.Emitter.cs (3)
1194StringComparison.OrdinalIgnoreCase : 1464string stringComparisonComment = target.Literal.StringComparison == StringComparison.OrdinalIgnoreCase ? "ordinal case-insensitive " : ""; 1465string stringComparisonArgument = target.Literal.StringComparison == StringComparison.OrdinalIgnoreCase ? ", StringComparison.OrdinalIgnoreCase" : "";
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
156var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1216return (firstChild, ('\0', ordinalCaseInsensitivePrefix, StringComparison.OrdinalIgnoreCase, null));
UpgradeToGeneratedRegexAnalyzer.cs (4)
174if (argumentName.Equals(timeoutArgumentName, StringComparison.OrdinalIgnoreCase) || 175argumentName.Equals(matchTimeoutArgumentName, StringComparison.OrdinalIgnoreCase)) 181if (argumentName.Equals(PatternArgumentName, StringComparison.OrdinalIgnoreCase)) 204if (argumentName.Equals(OptionsArgumentName, StringComparison.OrdinalIgnoreCase))
System.Web.HttpUtility (1)
System\Web\Util\UriUtil.cs (1)
42int authorityIndex = inputWithoutQueryFragment.IndexOf(authority, StringComparison.OrdinalIgnoreCase);
System.Windows.Forms (38)
System\Resources\AssemblyNamesTypeResolutionService.cs (2)
115if (string.Equals(assemblyName.Name, asmName.Name, StringComparison.OrdinalIgnoreCase)) 164if (location.StartsWith(s_dotNetPath, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
250if (string.Equals(column.DataPropertyName, sortField.Name, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
7418if (string.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase)) 7717if (string.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase)) 8133if (string.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
1316if (string.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase)) 1353bool csv = string.Equals(format, DataFormats.CommaSeparatedValue, StringComparison.OrdinalIgnoreCase); 1355string.Equals(format, DataFormats.Text, StringComparison.OrdinalIgnoreCase) || 1356string.Equals(format, DataFormats.UnicodeText, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
97if (string.Equals(dataGridViewColumn.Name, columnName, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (4)
138if (string.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase)) 171bool csv = string.Equals(format, DataFormats.CommaSeparatedValue, StringComparison.OrdinalIgnoreCase); 173string.Equals(format, DataFormats.Text, StringComparison.OrdinalIgnoreCase) || 174string.Equals(format, DataFormats.UnicodeText, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
408if (string.Equals(themeFilename, AeroThemeFileName, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (4)
108if (string.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase)) 143bool csv = string.Equals(format, DataFormats.CommaSeparatedValue, StringComparison.OrdinalIgnoreCase); 145string.Equals(format, DataFormats.Text, StringComparison.OrdinalIgnoreCase) || 146string.Equals(format, DataFormats.UnicodeText, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (3)
56if (string.Equals(name, IEAnchorColor, StringComparison.OrdinalIgnoreCase)) 60else if (string.Equals(name, IEAnchorColorVisited, StringComparison.OrdinalIgnoreCase)) 64else if (string.Equals(name, IEAnchorColorHover, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\ListView\ListView.cs (1)
3341if (string.Equals(text, listViewSubItem.Text, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (3)
1377if (string.Equals(LunaFileName, themeFileName, StringComparison.OrdinalIgnoreCase)) 1400else if (string.Equals(AeroFileName, themeFileName, StringComparison.OrdinalIgnoreCase)) 1416else if (string.Equals(RoyaleFileName, themeFileName, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\DataBinding\Binding.cs (3)
507if (tempPropInfo is null && string.Equals(propInfos[i].Name, PropertyName, StringComparison.OrdinalIgnoreCase)) 516if (tempPropIsNullInfo is null && string.Equals(propInfos[i].Name, propertyNameIsNull, StringComparison.OrdinalIgnoreCase)) 550if (tempValidateInfo is null && string.Equals(eventInfos[i]!.Name, validateName, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\DataBinding\BindingMemberInfo.cs (1)
48=> string.Equals(BindingMember, other.BindingMember, StringComparison.OrdinalIgnoreCase);
System\Windows\Forms\DataBinding\BindingSource.cs (1)
176if (string.Equals(key, dataMember, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (1)
34if (string.Equals(binding.PropertyName, propertyName, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\FormCollection.cs (1)
35if (string.Equals(form.Name, name, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Input\CursorConverter.cs (1)
60if (string.Equals(prop.Name, text, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\SendKeys\SendKeys.cs (3)
282if (value.Equals("JournalHook", StringComparison.OrdinalIgnoreCase)) 286else if (value.Equals("SendInput", StringComparison.OrdinalIgnoreCase)) 352if (string.Equals(s_keywords[i].Keyword, keyword, StringComparison.OrdinalIgnoreCase))
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (1)
30if (context.AdditionalFile.Path.EndsWith(".manifest", StringComparison.OrdinalIgnoreCase))
System.Windows.Forms.Design (12)
System\ComponentModel\Design\DesignerHost.cs (1)
194if (_rootComponent is not null && string.Equals(component.GetType().FullName, _rootComponentClassName, StringComparison.OrdinalIgnoreCase))
System\ComponentModel\Design\ReferenceService.cs (1)
254if (string.Equals(holder.Name, name, StringComparison.OrdinalIgnoreCase))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
398if (!string.Equals(docDeclaration.Name, newDecl.Name, caseInsensitive ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) 1147if (string.Equals(member.Name, name, StringComparison.OrdinalIgnoreCase)) 1239if (string.Equals(member.Name, name, StringComparison.OrdinalIgnoreCase))
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
37if (string.Equals(methodInvokeEx.Method?.MethodName, "ApplyResources", StringComparison.OrdinalIgnoreCase))
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
92StringComparison compare = caseInsensitive ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1187if (s is not null && s.Name is not null && string.Equals(s.Name, siteName, StringComparison.OrdinalIgnoreCase) && s.Component != component)
System\Windows\Forms\Design\DesignBinding.cs (1)
43public bool Equals(object? dataSource, string dataMember) => dataSource == DataSource && string.Equals(dataMember, DataMember, StringComparison.OrdinalIgnoreCase);
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1033string.Equals(descriptor.Name, dataSourceDescriptor.Name, StringComparison.OrdinalIgnoreCase)) 1044string.Equals(descriptor.TypeName, type_.FullName, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
203if (string.Equals(guid.Value, _clsid, StringComparison.OrdinalIgnoreCase))
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
304StringComparison comparisonType = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
System.Windows.Forms.Primitives.TestUtilities (3)
PlatformDetection.Windows.cs (3)
12public static bool IsNetFramework => RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase); 31public static bool IsWindowsNanoServer => (IsNotWindowsIoTCore && GetInstallationType().Equals("Nano Server", StringComparison.OrdinalIgnoreCase)); 32public static bool IsWindowsServerCore => GetInstallationType().Equals("Server Core", StringComparison.OrdinalIgnoreCase);
System.Windows.Forms.Tests (2)
System\Windows\Forms\CheckBoxTests.cs (1)
864&& buttonText.Contains($"&{charCode}", StringComparison.OrdinalIgnoreCase);
System\Windows\Forms\InputLanguageTests.cs (1)
191if (CultureInfo.InstalledUICulture.Name.StartsWith("en-", StringComparison.OrdinalIgnoreCase))
System.Xaml (1)
System\Xaml\Parser\MeScanner.cs (1)
244if (value.StartsWith("{}", StringComparison.OrdinalIgnoreCase))
TaskUsageLogger (4)
TaskUsageLogger.cs (4)
380if (String.Equals(name1, name2, StringComparison.OrdinalIgnoreCase)) 387if (parts.Length > 1 && String.Equals(name1, parts[parts.Length - 1], StringComparison.OrdinalIgnoreCase)) 407return String.Equals(projectExtension, ".sln", StringComparison.OrdinalIgnoreCase) || 408String.Equals(projectExtension, ".metaproj", StringComparison.OrdinalIgnoreCase);
Templates.Blazor.Tests (9)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
175if (!string.Equals(anchor.Protocol, "https:") || string.Equals(anchor.HostName, "localhost", StringComparison.OrdinalIgnoreCase))
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (2)
60var requiresHttps = string.Equals(auth, "IndividualB2C", StringComparison.OrdinalIgnoreCase) 61|| string.Equals(auth, "SingleOrg", StringComparison.OrdinalIgnoreCase)
src\ProjectTemplates\Shared\Project.cs (1)
432if (string.Equals(doNotCleanUpTemplates, "false", StringComparison.OrdinalIgnoreCase))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
92.Where(p => _templatePackages.Any(t => Path.GetFileName(p).StartsWith(t, StringComparison.OrdinalIgnoreCase)))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
Templates.Blazor.WebAssembly.Auth.Tests (10)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
175if (!string.Equals(anchor.Protocol, "https:") || string.Equals(anchor.HostName, "localhost", StringComparison.OrdinalIgnoreCase))
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (2)
60var requiresHttps = string.Equals(auth, "IndividualB2C", StringComparison.OrdinalIgnoreCase) 61|| string.Equals(auth, "SingleOrg", StringComparison.OrdinalIgnoreCase)
src\ProjectTemplates\Shared\Project.cs (1)
432if (string.Equals(doNotCleanUpTemplates, "false", StringComparison.OrdinalIgnoreCase))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
92.Where(p => _templatePackages.Any(t => Path.GetFileName(p).StartsWith(t, StringComparison.OrdinalIgnoreCase)))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Shared\E2ETesting\BrowserFixture.cs (1)
164!string.Equals(Environment.GetEnvironmentVariable("E2E_TEST_VISIBLE"), "true", StringComparison.OrdinalIgnoreCase))
Templates.Blazor.WebAssembly.Tests (10)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
175if (!string.Equals(anchor.Protocol, "https:") || string.Equals(anchor.HostName, "localhost", StringComparison.OrdinalIgnoreCase))
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (2)
60var requiresHttps = string.Equals(auth, "IndividualB2C", StringComparison.OrdinalIgnoreCase) 61|| string.Equals(auth, "SingleOrg", StringComparison.OrdinalIgnoreCase)
src\ProjectTemplates\Shared\Project.cs (1)
432if (string.Equals(doNotCleanUpTemplates, "false", StringComparison.OrdinalIgnoreCase))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
92.Where(p => _templatePackages.Any(t => Path.GetFileName(p).StartsWith(t, StringComparison.OrdinalIgnoreCase)))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Shared\E2ETesting\BrowserFixture.cs (1)
164!string.Equals(Environment.GetEnvironmentVariable("E2E_TEST_VISIBLE"), "true", StringComparison.OrdinalIgnoreCase))
Templates.Mvc.Tests (12)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
175if (!string.Equals(anchor.Protocol, "https:") || string.Equals(anchor.HostName, "localhost", StringComparison.OrdinalIgnoreCase))
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (2)
60var requiresHttps = string.Equals(auth, "IndividualB2C", StringComparison.OrdinalIgnoreCase) 61|| string.Equals(auth, "SingleOrg", StringComparison.OrdinalIgnoreCase)
src\ProjectTemplates\Shared\Project.cs (1)
432if (string.Equals(doNotCleanUpTemplates, "false", StringComparison.OrdinalIgnoreCase))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
92.Where(p => _templatePackages.Any(t => Path.GetFileName(p).StartsWith(t, StringComparison.OrdinalIgnoreCase)))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Shared\E2ETesting\BrowserFixture.cs (1)
164!string.Equals(Environment.GetEnvironmentVariable("E2E_TEST_VISIBLE"), "true", StringComparison.OrdinalIgnoreCase))
WebApiTemplateTest.cs (2)
221var requiresHttps = string.Equals(auth, "IndividualB2C", StringComparison.OrdinalIgnoreCase) 222|| string.Equals(auth, "SingleOrg", StringComparison.OrdinalIgnoreCase);
Templates.Tests (10)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
175if (!string.Equals(anchor.Protocol, "https:") || string.Equals(anchor.HostName, "localhost", StringComparison.OrdinalIgnoreCase))
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (2)
60var requiresHttps = string.Equals(auth, "IndividualB2C", StringComparison.OrdinalIgnoreCase) 61|| string.Equals(auth, "SingleOrg", StringComparison.OrdinalIgnoreCase)
src\ProjectTemplates\Shared\Project.cs (1)
432if (string.Equals(doNotCleanUpTemplates, "false", StringComparison.OrdinalIgnoreCase))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
92.Where(p => _templatePackages.Any(t => Path.GetFileName(p).StartsWith(t, StringComparison.OrdinalIgnoreCase)))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
src\Shared\E2ETesting\BrowserFixture.cs (1)
164!string.Equals(Environment.GetEnvironmentVariable("E2E_TEST_VISIBLE"), "true", StringComparison.OrdinalIgnoreCase))
Test.Utilities (19)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
Text.Analyzers (24)
EnumsShouldHavePluralNames.cs (3)
85if (symbol.Name.EndsWith("i", StringComparison.OrdinalIgnoreCase) || symbol.Name.EndsWith("ae", StringComparison.OrdinalIgnoreCase)) 115=> word.Equals(word.Pluralize(inputIsKnownToBeSingular: false), StringComparison.OrdinalIgnoreCase);
IdentifiersShouldBeSpelledCorrectly.cs (1)
272var isXml = additionalText.Path.EndsWith(".xml", StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
163internal static bool IsSameDirectoryOrChildOf(string child, string parent, StringComparison comparison = StringComparison.OrdinalIgnoreCase) 498return string.Equals(extension, ".dll", StringComparison.OrdinalIgnoreCase) 499|| string.Equals(extension, ".exe", StringComparison.OrdinalIgnoreCase) 517var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Compilers\Core\Portable\InternalUtilities\DocumentationCommentXmlNames.cs (1)
54return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
164var comparison = isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (5)
66if (fileName.StartsWith("TemporaryGeneratedFile_", StringComparison.OrdinalIgnoreCase)) 75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
140var index = symbolName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
250if (string.Equals(parsedWord, word, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
273=> string.Equals(name1, name2, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); 367var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
66if (rootNamespace is not null && @namespace.StartsWith(rootNamespace + ".", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (1)
104: string.Equals(identifier1, identifier2, StringComparison.OrdinalIgnoreCase);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
41: string.Equals(x.Name, y.Name, StringComparison.OrdinalIgnoreCase);
UIAutomationClient (4)
MS\Internal\Automation\Misc.cs (1)
216return className.IndexOf("windowsforms", StringComparison.OrdinalIgnoreCase) > -1;
MS\Internal\Automation\ProxyManager.cs (2)
265if (string.Equals(className, str, StringComparison.OrdinalIgnoreCase)) 283if (parentClassName.StartsWith("WMP9ActiveXHost", StringComparison.OrdinalIgnoreCase))
MS\Internal\Automation\WindowShowOrOpenTracker.cs (1)
74if (string.Compare(str, 0, _wcpClassName, 0, _wcpClassName.Length, StringComparison.OrdinalIgnoreCase) == 0)
UIAutomationClientSideProviders (23)
MS\Internal\AutomationProxies\MSAANativeProvider.cs (2)
364if (string.Equals(className, "eHome Render Window", StringComparison.OrdinalIgnoreCase)) 1063if (string.Equals(className, str, StringComparison.OrdinalIgnoreCase))
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
672return string.Equals(Misc.GetClassName(hwndEx), ComboboxEx32, StringComparison.OrdinalIgnoreCase);
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (1)
123return className.IndexOf(_WindowsFormsClassName, StringComparison.OrdinalIgnoreCase) > -1;
MS\Internal\AutomationProxies\WindowsHyperlink.cs (1)
284if (text.IndexOf("<A", StringComparison.OrdinalIgnoreCase) < 0)
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1642return string.Equals(className, "DesktopSFTBarHost", StringComparison.OrdinalIgnoreCase);
MS\Internal\AutomationProxies\WindowsMenu.cs (4)
911return string.Equals(Misc.ProxyGetClassName(hwnd), WindowsMenu.MenuClassName, StringComparison.OrdinalIgnoreCase); 1342pos = menuText.LastIndexOf(accelerator, StringComparison.OrdinalIgnoreCase); 1360pos = menuText.LastIndexOf(keywordsAccelerators[i], StringComparison.OrdinalIgnoreCase); 2774pos = menuText.LastIndexOf(keywordsAccelerators[i], StringComparison.OrdinalIgnoreCase);
MS\Internal\AutomationProxies\WindowsScroll.cs (3)
161if (className.StartsWith("RichEdit", StringComparison.OrdinalIgnoreCase) || 162className.StartsWith("WindowForms10.RichEdit", StringComparison.OrdinalIgnoreCase) || 163string.Equals(className, "Edit", StringComparison.OrdinalIgnoreCase))
MS\Internal\AutomationProxies\WindowsSpinner.cs (2)
66if (!Misc.ProxyGetClassName(hwndBuddy).Contains("EDIT", StringComparison.OrdinalIgnoreCase)) 280if (className.Contains("msctls_updown32", StringComparison.OrdinalIgnoreCase))
MS\Internal\AutomationProxies\WindowsTooltip.cs (5)
175return string.Equals(className, "tooltips_class32", StringComparison.OrdinalIgnoreCase) || 176string.Equals(className, CLASS_TITLEBAR_TOOLTIP, StringComparison.OrdinalIgnoreCase) || 177string.Equals(className, "VBBubble", StringComparison.OrdinalIgnoreCase); 184if (string.Equals(className, CLASS_TITLEBAR_TOOLTIP, StringComparison.OrdinalIgnoreCase)) 188else if (string.Equals(className, "VBBubble", StringComparison.OrdinalIgnoreCase))
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
368return hwndBuddy != IntPtr.Zero && Misc.ProxyGetClassName(hwndBuddy).Contains("EDIT", StringComparison.OrdinalIgnoreCase);
MS\Internal\AutomationProxies\WinFormsSpinner.cs (2)
154if (Misc.ProxyGetClassName(hwndLastChild).Contains("Edit", StringComparison.OrdinalIgnoreCase)) 162if (Misc.ProxyGetClassName(hwndFirstChild).Contains("Edit", StringComparison.OrdinalIgnoreCase))
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\ClientConnectionHandler.cs (1)
55if (!string.Equals(request.CompilerHash, BuildProtocolConstants.GetCommitHash(), StringComparison.OrdinalIgnoreCase))
Wasm.Performance.ConsoleHost (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
333if (string.Equals(subcommand.Name, arg, StringComparison.OrdinalIgnoreCase)) 449if (commandName == null || string.Equals(Name, commandName, StringComparison.OrdinalIgnoreCase)) 455target = Commands.SingleOrDefault(cmd => string.Equals(cmd.Name, commandName, StringComparison.OrdinalIgnoreCase));
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
67if (string.Equals(expectedFileName, mainModuleFileName, StringComparison.OrdinalIgnoreCase))
xunit.assert (2)
PropertyAsserts.cs (2)
47 propertyChangeHappened = propertyChangeHappened || string.IsNullOrEmpty(args.PropertyName) || propertyName.Equals(args.PropertyName, StringComparison.OrdinalIgnoreCase); 94 propertyChangeHappened = propertyChangeHappened || string.IsNullOrEmpty(args.PropertyName) || propertyName.Equals(args.PropertyName, StringComparison.OrdinalIgnoreCase);
xunit.console (15)
CommandLine.cs (3)
108return fileName.EndsWith(".config", StringComparison.OrdinalIgnoreCase) 109|| fileName.EndsWith(".json", StringComparison.OrdinalIgnoreCase); 473if (TransformFactory.AvailableTransforms.Any(t => t.CommandLine.Equals(optionName, StringComparison.OrdinalIgnoreCase)))
common\AssemblyResolution\DependencyContextAssemblyCache.cs (4)
102=> runtimeGraph.FirstOrDefault(x => string.Equals(x.Runtime, currentRuntimeIdentifier, StringComparison.OrdinalIgnoreCase)) 103?? runtimeGraph.FirstOrDefault(x => string.Equals(x.Runtime, fallbackRuntimeIdentifier.Value, StringComparison.OrdinalIgnoreCase)) 238var resolvedAssemblyPath = assemblies.FirstOrDefault(a => string.Equals(assemblyName, Path.GetFileNameWithoutExtension(a), StringComparison.OrdinalIgnoreCase)); 281var resolvedAssemblyPath = assemblies.FirstOrDefault(a => string.Equals(formattedUnmanagedDllName, Path.GetFileName(a), StringComparison.OrdinalIgnoreCase));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\AppBaseCompilationAssemblyResolver.cs (5)
37var isProject = string.Equals(library.Type, "project", StringComparison.OrdinalIgnoreCase) || 38string.Equals(library.Type, "msbuildproject", StringComparison.OrdinalIgnoreCase); 40var isPackage = string.Equals(library.Type, "package", StringComparison.OrdinalIgnoreCase); 41var isReferenceAssembly = string.Equals(library.Type, "referenceassembly", StringComparison.OrdinalIgnoreCase); 45!string.Equals(library.Type, "reference", StringComparison.OrdinalIgnoreCase))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\PackageCompilationAssemblyResolver.cs (1)
81!string.Equals(library.Type, "package", StringComparison.OrdinalIgnoreCase))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\ReferenceAssemblyPathResolver.cs (1)
43if (!string.Equals(library.Type, "referenceassembly", StringComparison.OrdinalIgnoreCase))
common\AssemblyResolution\XunitPackageCompilationAssemblyResolver.cs (1)
66if (nugetPackageDirectories.Count == 0 || !string.Equals(library.Type, "package", StringComparison.OrdinalIgnoreCase))