1759 references to Equals
aspire (10)
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 (4)
41return packages.Where(p => p.Id.Equals("Aspire.ProjectTemplates", StringComparison.OrdinalIgnoreCase)); 63return packages.Where(p => p.Id.Equals("Aspire.Cli", StringComparison.OrdinalIgnoreCase)); 150packageName.Equals("Aspire.ProjectTemplates", StringComparison.Ordinal) || 151packageName.Equals("Aspire.Cli", StringComparison.Ordinal);
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),
Projects\ProjectLocator.cs (1)
94var folderContainsAppHostCSharpFile = () => projectFile.Directory!.EnumerateFiles("*", SearchOption.TopDirectoryOnly).Any(f => f.Name.Equals("AppHost.cs", 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 (1)
AzureOpenAISettings.cs (1)
82if (envVar is not null && (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1")))
Aspire.Azure.Messaging.EventHubs (2)
AzureMessagingEventHubsSettings.cs (1)
84if (envVar is not null && (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1")))
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Azure.Messaging.ServiceBus (2)
AzureMessagingServiceBusSettings.cs (1)
84if (envVar is not null && (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1")))
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.Security.KeyVault.Tests (2)
CertificateClientConformanceTests.cs (1)
120return certClient.GetCertificate("IsAlive").Value.Name.Equals("IsAlive", StringComparison.CurrentCultureIgnoreCase);
KeyClientConformanceTests.cs (1)
122return keyClient.GetKey("IsAlive").Value.Name.Equals("IsAlive", StringComparison.CurrentCultureIgnoreCase);
Aspire.Azure.Storage.Queues (1)
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Dashboard (2)
Model\ConnectionStringParser.cs (1)
183if (hostAlias.Equals("contact points", StringComparison.OrdinalIgnoreCase) &&
Otlp\Model\OtlpHelpers.cs (1)
444return existingId.Equals(incomingId, StringComparison.OrdinalIgnoreCase);
Aspire.Hosting (3)
Exec\ExecResourceManager.cs (1)
165var targetResource = _model.Resources.FirstOrDefault(x => x.Name.Equals(_execOptions.ResourceName, StringComparisons.ResourceName));
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))
Aspire.Hosting.Azure.AIFoundry (1)
LocalModelHealthCheck.cs (1)
20if (!loadedModels.Any(lm => lm.ModelId.Equals(modelId, StringComparison.InvariantCultureIgnoreCase)))
Aspire.Hosting.Azure.AppContainers (1)
src\Shared\ResourceNameComparer.cs (1)
17return x.Name.Equals(y.Name, StringComparison.Ordinal);
Aspire.Hosting.Azure.AppService (1)
src\Shared\ResourceNameComparer.cs (1)
17return x.Name.Equals(y.Name, StringComparison.Ordinal);
Aspire.Hosting.Azure.CosmosDB (1)
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Hosting.Docker (1)
src\Shared\ResourceNameComparer.cs (1)
17return x.Name.Equals(y.Name, StringComparison.Ordinal);
Aspire.Hosting.Keycloak.Tests (2)
KeycloakPublicApiTests.cs (2)
163var keycloakResource = builder.Resources.Single(r => r.Name.Equals(resourceName, StringComparison.Ordinal)); 190var keycloakResource = builder.Resources.Single(r => r.Name.Equals(resourceName, StringComparison.Ordinal));
Aspire.Hosting.Kubernetes (1)
Extensions\ResourceExtensions.cs (1)
377if (context.Parent.DefaultStorageType.Equals("hostpath", StringComparison.OrdinalIgnoreCase))
Aspire.Hosting.Tests (1)
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Microsoft.Azure.Cosmos (1)
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), StringComparison.OrdinalIgnoreCase);
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
src\Shared\StableConnectionStringBuilder.cs (1)
226return key1.Trim().Equals(key2.Trim(), 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.Qdrant.Client.Tests (1)
ConformanceTests.cs (1)
70if (keyValue.Length == 2 && keyValue[0].Equals(configKey, StringComparison.OrdinalIgnoreCase))
AutobahnTestApp (1)
Program.cs (1)
60if (uri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
Certificate.Optional.Sample (1)
Program.cs (1)
40if (connectionContext.ClientHelloInfo.ServerName.Equals(HostWithoutCert, StringComparison.OrdinalIgnoreCase))
Crossgen2Tasks (1)
ResolveReadyToRunCompilers.cs (1)
202.Equals("Microsoft.NETCore.App", StringComparison.OrdinalIgnoreCase));
dotnet-svcutil.xmlserializer (5)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (2)
70if (_name.Equals(other, StringComparison.InvariantCultureIgnoreCase)) 73return _abbreviation.Equals(other, StringComparison.InvariantCultureIgnoreCase);
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 (1)
49if (extension != null && (!Path.HasExtension(outputFile) || !Path.GetExtension(outputFile).Equals(extension, StringComparison.OrdinalIgnoreCase)))
dotnet-svcutil-lib (31)
CommandProcessorOptions.cs (4)
487if (updateFileName.Equals(CommandProcessorOptions.SvcutilParamsFileName, RuntimeEnvironmentHelper.FileStringComparison) || 488updateFileName.Equals(CommandProcessorOptions.WCFCSParamsFileName, RuntimeEnvironmentHelper.FileStringComparison)) 500var paramsFiles = jsonFiles.Except(excludeJsonFiles).Where(fn => Path.GetFileName(fn).Equals(CommandProcessorOptions.SvcutilParamsFileName, RuntimeEnvironmentHelper.FileStringComparison) || 501Path.GetFileName(fn).Equals(CommandProcessorOptions.WCFCSParamsFileName, RuntimeEnvironmentHelper.FileStringComparison));
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3519if (current.Name.Equals("system.paramarrayattribute", 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\ContextBindingElementPolicy.cs (3)
96if (EncryptAndSignName.Equals(protectionLevelAttribute, StringComparison.Ordinal)) 100else if (SignName.Equals(protectionLevelAttribute, StringComparison.Ordinal)) 104else if (NoneName.Equals(protectionLevelAttribute, StringComparison.Ordinal))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoder.cs (1)
203if (supportedMediaType.Length > 0 && !supportedMediaType.Equals(parsedContentType.MediaType, StringComparison.OrdinalIgnoreCase))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
326&& methodData.MethodBase.Name.Equals("Close", StringComparison.Ordinal))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDefaults.cs (1)
119if (compare.Equals(charSet, StringComparison.OrdinalIgnoreCase))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpTransportBindingElement.cs (1)
206if (assertion.LocalName.Equals(UdpConstants.RetransmissionEnabled, StringComparison.Ordinal))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpTransportImporter.cs (2)
33if (!string.IsNullOrEmpty(transportUri) && transportUri.Equals(UdpConstants.WsdlSoapUdpTransportUri, StringComparison.Ordinal)) 49if (transportUri != null && transportUri.Equals(UdpConstants.WsdlSoapUdpTransportUri, StringComparison.Ordinal) && !context.BindingElements.Contains(typeof(TransportBindingElement)))
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\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\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 (2)
912if (!Path.GetFileName(assetPath).Equals(targetLib, RuntimeEnvironmentHelper.FileStringComparison)) 1005.Where(d => Path.GetFileName(d).Equals(fileName, RuntimeEnvironmentHelper.FileStringComparison))
Shared\TargetFrameworkHelper.cs (1)
154&& !frameworkInfo.Name.Equals(FrameworkInfo.Netstandard, StringComparison.OrdinalIgnoreCase)
Shared\Utilities\PathHelper.cs (5)
36return path1 != null && path2 != null && path1.Equals(path2, RuntimeEnvironmentHelper.FileStringComparison); 43.Any(p => folders.Any(f => p.Equals(f, RuntimeEnvironmentHelper.FileStringComparison))); 118if (!parentSegments[0].Equals(childSegments[0], RuntimeEnvironmentHelper.FileStringComparison)) 129if (idx >= childSegments.Length || !childSegments[idx].Equals(parentSegments[idx], RuntimeEnvironmentHelper.FileStringComparison)) 253fullPath = EnumerateItems(workingDir).Where(item => Path.GetFileName(item).Equals(itemName, RuntimeEnvironmentHelper.FileStringComparison)).FirstOrDefault();
Shared\Utilities\RuntimeEnvironmentHelper.cs (1)
88.Any(v => v != null && packageFeed.Equals(v, RuntimeEnvironmentHelper.FileStringComparison));
dotnet-svcutil-lib.Tests (4)
TestInit.cs (4)
375.Any(e => e.Equals(Path.GetExtension(f), RuntimeEnvironmentHelper.FileStringComparison))).ToList(); 396return bRel.Equals(gRel, RuntimeEnvironmentHelper.FileStringComparison); 406return bRel.Equals(gRel, RuntimeEnvironmentHelper.FileStringComparison); 479var isLogFile = Path.GetExtension(baselineFile).Equals(".log", StringComparison.OrdinalIgnoreCase);
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
31.Where(f => !".xproj".Equals(Path.GetExtension(f), StringComparison.OrdinalIgnoreCase))
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
31.Where(f => !".xproj".Equals(Path.GetExtension(f), StringComparison.OrdinalIgnoreCase))
GenerateDocumentationAndConfigFiles (13)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (2)
290if (category.Equals(UndetectedText, 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\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
GetDocument.Insider (2)
.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);
http2cat (2)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
src\Shared\Http2cat\Http2Utilities.cs (1)
1023if (!expected.Equals(actual, ignoreCase ? StringComparison.InvariantCultureIgnoreCase : StringComparison.InvariantCulture))
IIS.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
89.Any(n => "hostingModel".Equals(n.Attribute("name")?.Value, StringComparison.Ordinal));
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
584Assert.DoesNotContain(response.Headers, h => h.Key.Equals("transfer-encoding", StringComparison.InvariantCultureIgnoreCase));
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
src\Shared\Http2cat\Http2Utilities.cs (1)
1023if (!expected.Equals(actual, ignoreCase ? StringComparison.InvariantCultureIgnoreCase : StringComparison.InvariantCulture))
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
89.Any(n => "hostingModel".Equals(n.Attribute("name")?.Value, StringComparison.Ordinal));
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
src\Shared\Http2cat\Http2Utilities.cs (1)
1023if (!expected.Equals(actual, ignoreCase ? StringComparison.InvariantCultureIgnoreCase : StringComparison.InvariantCulture))
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
89.Any(n => "hostingModel".Equals(n.Attribute("name")?.Value, StringComparison.Ordinal));
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
src\Shared\Http2cat\Http2Utilities.cs (1)
1023if (!expected.Equals(actual, ignoreCase ? StringComparison.InvariantCultureIgnoreCase : StringComparison.InvariantCulture))
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
89.Any(n => "hostingModel".Equals(n.Attribute("name")?.Value, StringComparison.Ordinal));
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
src\Shared\Http2cat\Http2Utilities.cs (1)
1023if (!expected.Equals(actual, ignoreCase ? StringComparison.InvariantCultureIgnoreCase : StringComparison.InvariantCulture))
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
89.Any(n => "hostingModel".Equals(n.Attribute("name")?.Value, StringComparison.Ordinal));
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
584Assert.DoesNotContain(response.Headers, h => h.Key.Equals("transfer-encoding", StringComparison.InvariantCultureIgnoreCase));
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
src\Shared\Http2cat\Http2Utilities.cs (1)
1023if (!expected.Equals(actual, ignoreCase ? StringComparison.InvariantCultureIgnoreCase : StringComparison.InvariantCulture))
illink (5)
ILLink.RoslynAnalyzer (12)
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))
InMemory.FunctionalTests (3)
ResponseTests.cs (2)
1151ex.Message.Equals(CoreStrings.FormatTooFewBytesWritten(12, 13), StringComparison.Ordinal)); 1208ex.Message.Equals(CoreStrings.FormatTooFewBytesWritten(12, 13), StringComparison.Ordinal));
TestTransport\InMemoryHttpClientSlim.cs (1)
122if (requestUri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
installer.tasks (1)
GenerateFileVersionProps.cs (1)
54if (file.GetMetadata("IsSymbolFile").Equals("true", StringComparison.OrdinalIgnoreCase))
Metrics (11)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Metrics.Legacy (11)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
160if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal))
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
160if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal))
Microsoft.AspNetCore.Antiforgery (1)
src\Shared\HttpExtensions.cs (1)
32return contentType.Equals(UrlEncodedFormContentType, StringComparison.OrdinalIgnoreCase) ||
Microsoft.AspNetCore.App.Analyzers (2)
RouteHandlers\DetectMisplacedLambdaAttribute.cs (2)
60if (@namespace.Name.Equals("AspNetCore", System.StringComparison.Ordinal) && @namespace.ContainingNamespace.Name.Equals("Microsoft", System.StringComparison.Ordinal))
Microsoft.AspNetCore.App.UnitTests (5)
TargetingPackTests.cs (5)
181else if (packageName.Equals("Microsoft.AspNetCore.App", StringComparison.Ordinal) || aspnetcoreDependencies.Contains(packageName)) 302var managedEntries = frameworkListEntries.Where(i => i.Attribute("Type").Value.Equals("Managed", StringComparison.Ordinal)); 303var analyzerEntries = frameworkListEntries.Where(i => i.Attribute("Type").Value.Equals("Analyzer", StringComparison.Ordinal)); 408var analyzerEntries = frameworkListEntries.Where(i => i.Attribute("Type").Value.Equals("Analyzer", StringComparison.Ordinal)); 417if (expectedLanguage.Equals("dotnet", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
OpenIdConnectHandler.cs (3)
608if (!(contentType?.MediaType?.Equals("application/json", StringComparison.OrdinalIgnoreCase) ?? false)) 1062if (contentType?.MediaType?.Equals("application/json", StringComparison.OrdinalIgnoreCase) ?? false) 1066else if (contentType?.MediaType?.Equals("application/jwt", StringComparison.OrdinalIgnoreCase) ?? false)
Microsoft.AspNetCore.Components (7)
CascadingValue.cs (4)
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))
DynamicComponent.cs (2)
69if (entry.Name.Equals(nameof(Type), StringComparison.OrdinalIgnoreCase)) 73else if (entry.Name.Equals(nameof(Parameters), StringComparison.OrdinalIgnoreCase))
ResourceAssetCollection.cs (1)
36if (property.Name.Equals("label", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Components.Endpoints (17)
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))
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.Tests (1)
RendererTest.cs (1)
6079if (parameter.Name.Equals(nameof(SomeParam), StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Components.Web (4)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (2)
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))
Microsoft.AspNetCore.Components.WebAssembly (2)
Hosting\WebAssemblyCultureProvider.cs (2)
51((!CultureInfo.CurrentCulture.Name.Equals(InitialCulture.Name, StringComparison.Ordinal) || 52!CultureInfo.CurrentUICulture.Name.Equals(InitialUICulture.Name, StringComparison.Ordinal))))
Microsoft.AspNetCore.Components.WebAssembly.Server (3)
TargetPickerUi.cs (3)
152if (hasType && type.GetString()?.Equals("tabListChanged", StringComparison.Ordinal) == true) 182if (hasUrl && urlInTab.GetString()?.Equals(targetApplicationUrl, StringComparison.Ordinal) == true) 305: availableTabs.Where(t => t.Url.Equals(targetApplicationUrl, StringComparison.Ordinal)).ToList();
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
RootComponentCollectionExtensions.cs (1)
39 if (components[i].Selector.Equals(selector, StringComparison.Ordinal))
Microsoft.AspNetCore.DataProtection (1)
Internal\ContainerUtils.cs (1)
70if (fs_file.Equals(dir.FullName.TrimEnd(Path.DirectorySeparatorChar), StringComparison.Ordinal))
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\HttpExtensions.cs (1)
32return contentType.Equals(UrlEncodedFormContentType, StringComparison.OrdinalIgnoreCase) ||
Microsoft.AspNetCore.HeaderParsing (1)
HostHeaderValue.cs (1)
93public bool Equals(HostHeaderValue other) => Host.Equals(other.Host, StringComparison.Ordinal) && Port == other.Port;
Microsoft.AspNetCore.Hosting (5)
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();
src\Shared\HttpExtensions.cs (1)
32return contentType.Equals(UrlEncodedFormContentType, StringComparison.OrdinalIgnoreCase) ||
Microsoft.AspNetCore.Http.Abstractions (3)
QueryString.cs (3)
175if (!HasValue || Value.Equals("?", StringComparison.Ordinal)) 179if (!other.HasValue || other.Value.Equals("?", StringComparison.Ordinal)) 199if (!HasValue || Value.Equals("?", StringComparison.Ordinal))
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (1)
233.Where(m => m.Name.Equals("StartAsTask", StringComparison.Ordinal));
Microsoft.AspNetCore.Http.Extensions.Tests (3)
PropertyAsParameterInfoTests.cs (1)
183return parameters.Single(p => p.Name.Equals(parameterName, StringComparison.OrdinalIgnoreCase));
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
336if (resolveReferencePath.Equals(typeof(RequestDelegateGenerator.RequestDelegateGenerator).Assembly.Location, StringComparison.OrdinalIgnoreCase)) 399if (!expectedLine.Equals(actualLine, StringComparison.Ordinal))
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
336if (resolveReferencePath.Equals(typeof(RequestDelegateGenerator.RequestDelegateGenerator).Assembly.Location, StringComparison.OrdinalIgnoreCase)) 399if (!expectedLine.Equals(actualLine, StringComparison.Ordinal))
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
StaticRouteHandlerModel\Endpoint.cs (1)
119!a.HttpMethod.Equals(b.HttpMethod, StringComparison.Ordinal) ||
StaticRouteHandlerModel\EndpointResponse.cs (1)
106otherEndpointResponse.WrappedResponseTypeDisplayName.Equals(WrappedResponseTypeDisplayName, StringComparison.Ordinal) &&
Microsoft.AspNetCore.HttpsPolicy (1)
HttpsRedirectionMiddleware.cs (1)
144if (bindingAddress.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.InternalTesting (2)
HttpClientSlim.cs (1)
155if (requestUri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
xunit\SkipOnHelixAttribute.cs (1)
72.Any(q => q.Equals(targetQueue, StringComparison.Ordinal) || q.StartsWith(targetQueue, StringComparison.Ordinal) ||
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (2)
TestObjectModels\HeterogenousCollection.cs (2)
49if (nameof(Rectangle.ShapeProperty).Equals(property.Name, stringComparison)) 54else if (nameof(Rectangle.RectangleProperty).Equals(property.Name, stringComparison))
Microsoft.AspNetCore.Mvc.ApiExplorer (6)
EndpointMetadataApiDescriptionProvider.cs (6)
50return method.Equals(HttpMethods.Get, StringComparison.Ordinal) || 51method.Equals(HttpMethods.Delete, StringComparison.Ordinal) || 52method.Equals(HttpMethods.Head, StringComparison.Ordinal) || 53method.Equals(HttpMethods.Options, StringComparison.Ordinal) || 54method.Equals(HttpMethods.Trace, StringComparison.Ordinal) || 55method.Equals(HttpMethods.Connect, StringComparison.Ordinal);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (6)
EndpointMetadataApiDescriptionProviderTest.cs (6)
1783method.Equals(HttpMethods.Get, StringComparison.Ordinal) || 1784method.Equals(HttpMethods.Delete, StringComparison.Ordinal) || 1785method.Equals(HttpMethods.Head, StringComparison.Ordinal) || 1786method.Equals(HttpMethods.Options, StringComparison.Ordinal) || 1787method.Equals(HttpMethods.Trace, StringComparison.Ordinal) || 1788method.Equals(HttpMethods.Connect, StringComparison.Ordinal));
Microsoft.AspNetCore.Mvc.Core (7)
ApplicationModels\ApplicationModelFactory.cs (1)
238if (!template.Equals(other, StringComparison.OrdinalIgnoreCase))
ApplicationModels\AttributeRouteModel.cs (4)
201template.Equals(string.Empty, StringComparison.Ordinal) || 202template.Equals("~/", StringComparison.Ordinal) || 203template.Equals("/", StringComparison.Ordinal); 216if (result.Equals("//", StringComparison.Ordinal))
ModelBinding\Binders\FormFileModelBinder.cs (1)
153if (file.Name.Equals(modelName, StringComparison.OrdinalIgnoreCase))
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (1)
233.Where(m => m.Name.Equals("StartAsTask", StringComparison.Ordinal));
Microsoft.AspNetCore.Mvc.Core.Test (6)
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 (1)
35!method.Name.Equals("Dispose", StringComparison.OrdinalIgnoreCase))
Formatters\JsonOutputFormatterTestBase.cs (1)
204.First((e) => e.WebName.Equals(encodingAsString, StringComparison.OrdinalIgnoreCase));
Infrastructure\ControllerActionInvokerTest.cs (1)
1389.First(m => m.Name.Equals("ActionMethodWithDefaultValues", StringComparison.Ordinal)),
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DataAnnotationsMetadataProviderTest.cs (6)
1029var groupTwo = Assert.Single(enumNameAndGroup, e => e.Value.Equals("2", StringComparison.Ordinal)); 1049var groupTwo = Assert.Single(enumNameAndGroup, e => e.Value.Equals("2", StringComparison.Ordinal)); 1069var groupThree = Assert.Single(enumNameAndGroup, e => e.Value.Equals("3", StringComparison.Ordinal)); 1088var groupThree = Assert.Single(enumNameAndGroup, e => e.Value.Equals("3", StringComparison.Ordinal)); 1747return x.Key.Name.Equals(y.Key.Name, StringComparison.Ordinal) 1748&& x.Key.Group.Equals(y.Key.Group, StringComparison.Ordinal);
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
ApiExplorerTest.cs (4)
1567Assert.Contains(TestSink.Writes, w => w.EventId.Name?.Equals("ApiDescriptionProviderExecuting", StringComparison.Ordinal) == true); 1568Assert.Contains(TestSink.Writes, w => w.LoggerName.Equals("Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollectionProvider", StringComparison.Ordinal)); 1569Assert.Contains(TestSink.Writes, w => w.Message.Equals("Executing API description provider 'DefaultApiDescriptionProvider' from assembly Microsoft.AspNetCore.Mvc.ApiExplorer v10.0.0.0.", StringComparison.Ordinal)); 1570Assert.Contains(TestSink.Writes, w => w.Message.Equals("Executing API description provider 'JsonPatchOperationsArrayProvider' from assembly Microsoft.AspNetCore.Mvc.NewtonsoftJson v42.42.42.42.", StringComparison.Ordinal));
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ActionParametersIntegrationTest.cs (2)
973.Single(p => p.Name.Equals(parameterName, StringComparison.Ordinal)); 996.Single(p => p.Name.Equals(parameterName, StringComparison.Ordinal));
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.RuntimeCompilation (1)
ChecksumValidator.cs (1)
102if (nameof(SHA256).Equals(checksumAlgorithm, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageHandlerMethodSelector.cs (1)
122!handler.Name.Equals(handlerName, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.TagHelpers (2)
ScriptTagHelper.cs (2)
377if (!attribute.Name.Equals(SrcAttributeName, StringComparison.OrdinalIgnoreCase)) 491if (!attribute.Name.Equals(SrcAttributeName, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.Testing (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);
Handlers\RedirectHandler.cs (1)
104if (!header.Key.Equals(HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
ModelExplorerExtensions.cs (1)
70if (!stringResult.Equals(modelExplorer.Model.GetType().FullName, StringComparison.Ordinal))
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.Mvc.ViewFeatures.Test (2)
ControllerTest.cs (1)
28!method.Name.Equals("Dispose", StringComparison.OrdinalIgnoreCase))
Rendering\HtmlHelperSelectTest.cs (1)
1320var zeroSelect = Assert.Single(result, s => s.Value.Equals("0", StringComparison.Ordinal));
Microsoft.AspNetCore.OpenApi (7)
Services\OpenApiGenerator.cs (6)
88return method.Equals(HttpMethods.Get, StringComparison.Ordinal) || 89method.Equals(HttpMethods.Delete, StringComparison.Ordinal) || 90method.Equals(HttpMethods.Head, StringComparison.Ordinal) || 91method.Equals(HttpMethods.Options, StringComparison.Ordinal) || 92method.Equals(HttpMethods.Trace, StringComparison.Ordinal) || 93method.Equals(HttpMethods.Connect, StringComparison.Ordinal);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (1)
233.Where(m => m.Name.Equals("StartAsTask", StringComparison.Ordinal));
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (2)
SnapshotTestHelper.cs (2)
353=> arg.Equals("--applicationName", StringComparison.OrdinalIgnoreCase) || 354arg.Equals("/applicationName", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Rewrite (6)
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)
RedirectToWwwHelper.cs (2)
15if (request.Host.Host.Equals(Localhost, StringComparison.OrdinalIgnoreCase)) 26if (domain.Equals(request.Host.Host, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Routing (18)
Constraints\StringRouteConstraint.cs (1)
46return parameterValueString.Equals(_value, 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))
RouteEndpointDataSource.cs (6)
313method.Equals(HttpMethods.Get, StringComparison.Ordinal) || 314method.Equals(HttpMethods.Delete, StringComparison.Ordinal) || 315method.Equals(HttpMethods.Head, StringComparison.Ordinal) || 316method.Equals(HttpMethods.Options, StringComparison.Ordinal) || 317method.Equals(HttpMethods.Trace, StringComparison.Ordinal) || 318method.Equals(HttpMethods.Connect, StringComparison.Ordinal);
src\Shared\HttpExtensions.cs (1)
32return contentType.Equals(UrlEncodedFormContentType, StringComparison.OrdinalIgnoreCase) ||
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\Request.cs (2)
81if (originalPath.Equals(pathBase, StringComparison.Ordinal)) 87else if (originalPath.Equals(pathBase, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
src\Shared\Http2cat\Http2Utilities.cs (1)
1023if (!expected.Equals(actual, ignoreCase ? StringComparison.InvariantCultureIgnoreCase : StringComparison.InvariantCulture))
Microsoft.AspNetCore.Server.IIS (9)
Core\IISHttpContext.cs (5)
184else if (originalPath.Equals(pathBase, StringComparison.Ordinal)) 190else if (originalPath.Equals(pathBase, StringComparison.OrdinalIgnoreCase)) 850if ((authenticationType.Equals(NtlmString, StringComparison.OrdinalIgnoreCase) 851|| authenticationType.Equals(NegotiateString, StringComparison.OrdinalIgnoreCase) 852|| authenticationType.Equals(BasicString, 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.IntegrationTesting (1)
xunit\IISExpressAncmSchema.cs (1)
46.Any(n => "hostingModel".Equals(n.Attribute("name")?.Value, StringComparison.Ordinal));
Microsoft.AspNetCore.Server.Kestrel.Core (373)
CertificateLoader.cs (1)
51if (certificate.GetNameInfo(X509NameType.SimpleName, forIssuer: false).Equals(subject, StringComparison.InvariantCultureIgnoreCase))
Internal\AddressBinder.cs (2)
105if (parsedAddress.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase)) 109else if (!parsedAddress.Scheme.Equals("http", 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\SniOptionsSelector.cs (1)
100if (name.Equals(WildcardHost, StringComparison.Ordinal))
Microsoft.AspNetCore.Session.Tests (8)
SessionTests.cs (8)
879var sessionLogMessage = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).Single(); 884var sessionMiddlewareLogMessage = sink.Writes.Where(message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)).Single(); 942var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList(); 950var sessionMiddlewareLogs = sink.Writes.Where(message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)).ToList(); 1009var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList(); 1017Assert.DoesNotContain(sink.Writes, message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)); 1073var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList(); 1081Assert.DoesNotContain(sink.Writes, message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal));
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (1)
233.Where(m => m.Name.Equals("StartAsTask", StringComparison.Ordinal));
Microsoft.AspNetCore.SignalR.Core (1)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (1)
233.Where(m => m.Name.Equals("StartAsTask", StringComparison.Ordinal));
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsEndpointRouteBuilderExtensions.cs (1)
77if (ds is StaticAssetsEndpointDataSource sads && sads.ManifestPath.Equals(manifestPath, StringComparison.Ordinal))
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);
WebHostBuilderExtensions.cs (1)
84if (webHostBuilder.GetType().Name.Equals("GenericWebHostBuilder", StringComparison.Ordinal))
Microsoft.Build.Framework (6)
FileClassifier.cs (1)
167processFileName.Equals(s, StringComparison.OrdinalIgnoreCase)))
OperatingSystem.cs (1)
19return platform?.Equals("WINDOWS", StringComparison.OrdinalIgnoreCase) ?? throw new ArgumentNullException(nameof(platform));
Traits.cs (4)
195(value.Equals("1", StringComparison.OrdinalIgnoreCase) || 196value.Equals("true", StringComparison.OrdinalIgnoreCase)); 477if (mode.Equals("full", StringComparison.OrdinalIgnoreCase)) 482if (mode.Equals("partial", StringComparison.OrdinalIgnoreCase))
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
459if ((RoslynString.IsNullOrEmpty(platform) || platform.Equals("anycpu", StringComparison.OrdinalIgnoreCase)) && Prefer32Bit)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
459if ((RoslynString.IsNullOrEmpty(platform) || platform.Equals("anycpu", StringComparison.OrdinalIgnoreCase)) && Prefer32Bit)
Microsoft.CodeAnalysis (9)
CommandLine\AnalyzerConfig.cs (1)
167_hasGlobalFileName = Path.GetFileName(pathToFile).Equals(UserGlobalConfigName, StringComparison.OrdinalIgnoreCase);
CommandLine\AnalyzerConfigSet.cs (1)
194if (normalizedPath.Equals(section.Name, Section.NameComparer))
CommandLine\CommandLineParser.cs (1)
252part.Substring(0, versionParameterDesignatorLength).Equals(versionParameterDesignator, StringComparison.OrdinalIgnoreCase) &&
DiagnosticAnalyzer\AnalyzerManager.cs (1)
287if (descriptor.Id.Equals(diagnostic.Id, StringComparison.OrdinalIgnoreCase))
Emit\SynthesizedDelegateKey.cs (1)
22=> Name.Equals(other.Name, StringComparison.Ordinal);
FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
PEWriter\ExtendedPEBuilder.cs (1)
74if (name.Equals(MvidSectionName, StringComparison.Ordinal))
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
311return name.Equals(matchAgainst, comparison);
Symbols\Attributes\CommonAttributeData.cs (1)
93return attributeType.Name.Equals(description.Name, options) && namespaceMatch(attributeType.ContainingNamespace, description.Namespace, options);
Microsoft.CodeAnalysis.Analyzers (30)
ImplementationIsObsoleteAnalyzer.cs (1)
55&& a.AttributeClass.ToDisplayString().Equals(ImplementationIsObsoleteAttributeFullName, StringComparison.Ordinal)) is { } attr &&
InternalImplementationOnlyAnalyzer.cs (1)
58&& a.AttributeClass.ToDisplayString().Equals(InternalImplementationOnlyAttributeFullName, StringComparison.Ordinal)) &&
MetaAnalyzers\CompilerExtensionStrictApiAnalyzer.cs (1)
68|| !value.Trim().Equals(AssemblyReferenceValidationConfigurationRelaxedValue, StringComparison.Ordinal);
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (6)
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); 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_IdRangeAndCategoryValidation.cs (2)
149if (argument.Parameter?.Name.Equals(CategoryParameterName, StringComparison.Ordinal) == true) 310prefix1.Equals(prefix2, StringComparison.Ordinal))
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (1)
440lastEntry.releaseTrackingLine.Category.Equals(releaseTrackingLine.Category, StringComparison.OrdinalIgnoreCase) &&
MetaAnalyzers\DoNotUseCompilationGetSemanticModelAnalyzer.cs (1)
61if (invocation.TargetMethod.Name.Equals("GetSemanticModel", StringComparison.Ordinal) &&
MetaAnalyzers\RegisterActionAnalyzer.cs (2)
304return method.Name.Equals(expectedName, StringComparison.Ordinal) && 337if (type == null || type.Name.Equals(nameof(Action), StringComparison.Ordinal))
MetaAnalyzers\ReleaseTrackingHelper.cs (2)
290if (category.Equals(UndetectedText, 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 (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (1)
127(attr.AttributeClass.Name.Equals("ValidatedNotNullAttribute", StringComparison.OrdinalIgnoreCase) ||
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (2)
992if (method.Name.Equals("CreateInstance", StringComparison.Ordinal) && 1019symbol.Name.Equals("Empty", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (1)
261if (operation.Field.Name.Equals("Empty", StringComparison.Ordinal) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
155if (RoslynString.IsNullOrWhiteSpace(expectedNamespace) || expectedNamespace.Equals(currentNamespace, StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (2)
274where m.Name.Equals(memberName, StringComparison.OrdinalIgnoreCase) 280return membersArray.FirstOrDefault(m => m.Name.Equals(memberName, StringComparison.Ordinal)) ?? membersArray.FirstOrDefault();
Microsoft.CodeAnalysis.CSharp (3)
Parser\DirectiveParser.cs (1)
333if (errorText.Equals("version", StringComparison.Ordinal))
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
767if (parameters[i].Name.Equals(parameterName, StringComparison.Ordinal))
Symbols\Source\SourceComplexParameterSymbol.cs (1)
690if (parameters[i].Name.Equals(parameterName, StringComparison.Ordinal))
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
178return methodSymbol.Name.Equals("To" + returnTypeName, StringComparison.Ordinal);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\CompilationEmitTests.cs (1)
627if (name.Equals(".mvid", StringComparison.Ordinal))
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.Workspaces (3)
Rename\CSharpRenameRewriterLanguageService.cs (1)
272&& _replacementText.Equals(prefix + "_" + property.Identifier.Text, StringComparison.Ordinal);
Simplification\CSharpSimplificationService.Expander.cs (1)
306if (elementName?.Equals(name, StringComparison.Ordinal) == true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
178return methodSymbol.Name.Equals("To" + returnTypeName, StringComparison.Ordinal);
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
247return mostRecentHeaderText.Equals("*", StringComparison.Ordinal);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
MetadataUtilities.cs (3)
58if (hasNoAssemblyRefs || metadata.Name.Equals("System.Private.CoreLib.dll", StringComparison.OrdinalIgnoreCase)) 442!moduleName.Equals("windows.winmd", StringComparison.OrdinalIgnoreCase); 447return assemblyName.Equals("windows", StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
FunctionResolverBase.cs (1)
158return moduleName.Equals(name, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Features (21)
AddImport\PackageSourceHelper.cs (1)
48|| uri.Host.Equals(NugetOrg, StringComparison.OrdinalIgnoreCase);
CodeFixes\Configuration\ConfigurationUpdater.cs (2)
472key.Equals("is_global", StringComparison.OrdinalIgnoreCase) && 473value.Trim().Equals("true", StringComparison.OrdinalIgnoreCase) &&
CodeLens\CodeLensFindReferenceProgress.cs (1)
80_queriedNode.SyntaxTree.FilePath.Equals(candidateSyntaxNode.SyntaxTree.FilePath,
CodeLens\LocationComparer.cs (1)
22x.SourceTree.FilePath.Equals(y.SourceTree.FilePath, StringComparison.OrdinalIgnoreCase);
CodeRefactorings\MoveType\AbstractMoveTypeService.cs (2)
203if (typeName.Equals(documentNameWithoutExtension, StringComparison.CurrentCulture)) 206if ($"{typeName}`{arity}".Equals(documentNameWithoutExtension, StringComparison.CurrentCulture))
Completion\CompletionItem.cs (1)
208if (!DisplayText.Equals(filterText ?? "", StringComparison.Ordinal))
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (2)
65: prefix.Equals(hexPrefix, StringComparison.OrdinalIgnoreCase) ? NumericKind.Hexadecimal 66: prefix.Equals(binaryPrefix, StringComparison.OrdinalIgnoreCase) ? NumericKind.Binary
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
594where m.Name.Equals(expectedFieldName, StringComparison.OrdinalIgnoreCase) 600var symbol = membersArray.FirstOrDefault(m => m.Name.Equals(expectedFieldName, StringComparison.Ordinal)) ?? membersArray.FirstOrDefault();
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;
Rename\SymbolicRenameInfo.cs (1)
173triggerToken.ToString().Equals("New", StringComparison.OrdinalIgnoreCase))
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
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\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (2)
274where m.Name.Equals(memberName, StringComparison.OrdinalIgnoreCase) 280return membersArray.FirstOrDefault(m => m.Name.Equals(memberName, StringComparison.Ordinal)) ?? membersArray.FirstOrDefault();
StackTraceExplorer\StackTraceExplorerService.cs (1)
109if (name.Equals(documentName, StringComparison.OrdinalIgnoreCase))
UnusedReferences\UnusedReferencesRemover.cs (1)
32.Where(project => projectFilePath.Equals(project.FilePath, StringComparison.OrdinalIgnoreCase));
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
Microsoft.CodeAnalysis.LanguageServer (1)
Testing\TestRunner.TestRunHandler.cs (1)
197return messages.WhereAsArray(static (msg, category) => msg.Category.Equals(category, StringComparison.OrdinalIgnoreCase), requiredCategory);
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Handler\Completion\CompletionResultFactory.cs (3)
139if (!lspItem.Label.Equals(item.SortText, StringComparison.Ordinal)) 152if (!lspItem.Label.Equals(item.FilterText, StringComparison.Ordinal)) 503if (!lspItem.Label.Equals(completionChangeNewText, StringComparison.Ordinal))
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
144var matchingSnippetInfo = snippetInfo.First(s => wordText.Equals(s.Shortcut, StringComparison.OrdinalIgnoreCase));
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (6)
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 (1)
CodeActions\RunCodeActionsTests.cs (1)
49var documentForB = testLspServer.TestWorkspace.CurrentSolution.Projects.Single().Documents.Single(doc => doc.Name.Equals("B.cs", StringComparison.OrdinalIgnoreCase));
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Microsoft.CodeAnalysis.PublicApiAnalyzers (11)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
PublicApiFixHelpers.cs (1)
64return project.AdditionalDocuments.FirstOrDefault(doc => doc.Name.Equals(name, StringComparison.Ordinal));
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationExtensions.cs (1)
224if (!string.IsNullOrEmpty(symbolToVerify) && !declaration.DeclaredSymbol.Name.Equals(symbolToVerify, StringComparison.Ordinal))
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Attributes\SourceAttributeData.vb (1)
306attributeClass.Name.Equals(typeName, options)
Microsoft.CodeAnalysis.Workspaces (8)
Rename\ConflictEngine\MutableConflictResolution.cs (1)
111if (newName.Equals(document.Name, StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Utilities\WorkspacePathUtilities.cs (1)
20=> GetTypeNameFromDocumentName(document)?.Equals(typeName, StringComparison.OrdinalIgnoreCase) == true;
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
891if (fullFilePath.Equals(getFilePath(oldReference), StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\SolutionFileReader.SolutionFilterReader.cs (1)
20return Path.GetExtension(filename).Equals(".slnf", StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
Microsoft.Data.Analysis (1)
DataFrame.cs (1)
555else if (stringValue.Equals("null", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Manifest (4)
ArtifactModel.cs (1)
116else if (localAttr.Value.Equals(
BuildModelFactory.cs (3)
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))
Microsoft.DotNet.Build.Tasks.Feed (9)
src\AzureStorageExtensions.cs (1)
32return blobMD5.Equals(localMD5, StringComparison.OrdinalIgnoreCase);
src\common\AzureStorageUtils.cs (1)
273if (!localMD5.Equals(md5.Single(), StringComparison.OrdinalIgnoreCase))
src\model\TargetFeedConfig.cs (1)
100((TargetURL is null && other.TargetURL is null) || TargetURL.Equals(other.TargetURL, StringComparison.OrdinalIgnoreCase)) &&
src\ProductionChannelValidator.cs (5)
284if (classification.Classification.Equals("production", StringComparison.OrdinalIgnoreCase)) 302if (pattern.Equals(branchName, StringComparison.OrdinalIgnoreCase)) 313if (pattern.Equals("~default", StringComparison.OrdinalIgnoreCase)) 317return branchName.Equals("main", StringComparison.OrdinalIgnoreCase) || 318branchName.Equals("master", StringComparison.OrdinalIgnoreCase);
src\PublishBuildToMaestro.cs (1)
543if (repoAddr.Host.Equals(gitHubHost, StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Tasks.Packaging (11)
CreateTrimDependencyGroups.cs (1)
165if (!runtimeAssets.Any(r => Path.GetFileName(r).Equals(fileName, StringComparison.OrdinalIgnoreCase)))
HarvestPackage.cs (4)
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))
PackageIndex.cs (1)
709var version = versionString.Equals(AnyVersion, StringComparison.OrdinalIgnoreCase) ? VersionUtility.MaxVersion : new Version(versionString);
PackageItem.cs (2)
31IsDll = Path.GetExtension(SourcePath).Equals(".dll", StringComparison.OrdinalIgnoreCase); 49if (!Path.GetExtension(TargetPath).Equals(Path.GetExtension(sourceFile), 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.Workloads (1)
Msi\WorkloadPackGroupMsi.wix.cs (1)
169if (!subdir.Id.Equals(id, StringComparison.Ordinal))
Microsoft.DotNet.CodeAnalysis (3)
Analyzers\PinvokeAnalyzer.cs (3)
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.RemoteExecutor (1)
RemoteExecutor.cs (1)
65if (!IOPath.GetFileName(HostRunner).Equals(hostName, StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.SharedFramework.Sdk (2)
src\CreateFrameworkListFile.cs (1)
147if (pathParts.Length < 3 || !pathParts[1].Equals("dotnet", StringComparison.Ordinal) || pathParts.Length > 4)
src\ValidateFileVersions.cs (1)
25if (file.GetMetadata("IsSymbolFile").Equals("true", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.SignTool (26)
src\Configuration.cs (5)
219var wixPack = _wixPacks.SingleOrDefault(w => w.Moniker.Equals(file.FileName, StringComparison.OrdinalIgnoreCase)); 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\FileSignInfo.cs (17)
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); 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\SignToolTask.cs (4)
486SignInfo signInfo = certificate.Equals(SignToolConstants.IgnoreFileCertificateSentinel, StringComparison.InvariantCultureIgnoreCase) ? 539if (SignToolConstants.IgnoreFileCertificateSentinel.Equals(certificateName, StringComparison.OrdinalIgnoreCase) && 540SignToolConstants.IgnoreFileCertificateSentinel.Equals(strongName, StringComparison.OrdinalIgnoreCase)) 546var signInfo = SignToolConstants.IgnoreFileCertificateSentinel.Equals(strongName, StringComparison.OrdinalIgnoreCase)
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
122if (p.Name.Equals(pvpIdent, StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.XliffTasks (6)
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.Extensions.AI.AzureAIInference (2)
AzureAIInferenceChatClient.cs (2)
537if (dataContent.MediaType.Equals("audio/mpeg", StringComparison.OrdinalIgnoreCase)) 541else if (dataContent.MediaType.Equals("audio/wav", StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.AI.Evaluation.Safety (4)
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);
Microsoft.Extensions.AI.OpenAI (5)
OpenAIChatClient.cs (2)
271if (dataContent.MediaType.Equals("audio/mpeg", StringComparison.OrdinalIgnoreCase)) 275else if (dataContent.MediaType.Equals("audio/wav", 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)
Microsoft.Extensions.Diagnostics (3)
Metrics\Configuration\MetricsConfigureOptions.cs (3)
30if (configurationSection.Key.Equals(EnabledMetricsKey, StringComparison.OrdinalIgnoreCase)) 35else if (configurationSection.Key.Equals(EnabledGlobalMetricsKey, StringComparison.OrdinalIgnoreCase)) 40else if (configurationSection.Key.Equals(EnabledLocalMetricsKey, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
ExceptionSummary.cs (3)
100return other.ExceptionType.Equals(ExceptionType, StringComparison.Ordinal) 101&& other.Description.Equals(Description, StringComparison.Ordinal) 102&& other.AdditionalDetails.Equals(AdditionalDetails, StringComparison.Ordinal);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Disk\WindowsDiskMetrics.cs (1)
81.Where(instanceName => !instanceName.Equals("_Total", 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 (4)
LoggerMessageGenerator.Parser.cs (3)
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\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
373return name.Equals(matchAgainst, comparison);
Microsoft.Extensions.Options.SourceGeneration (2)
SymbolLoader.cs (2)
53if (!containingAssemblyName.Equals("System.Private.CoreLib", System.StringComparison.OrdinalIgnoreCase) && 54!containingAssemblyName.Equals("System.Runtime", System.StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.ServiceDiscovery.Dns (1)
ServiceDiscoveryDnsServiceCollectionExtensions.cs (1)
73if (envVar is not null && (envVar.Equals("true", StringComparison.OrdinalIgnoreCase) || envVar.Equals("1")))
Microsoft.Extensions.Telemetry (2)
Http\Segment.cs (2)
77parameter.Equals(ControllerParameter, StringComparison.OrdinalIgnoreCase) || 78parameter.Equals(ActionParameter, StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.Telemetry.Abstractions (2)
Latency\Checkpoint.cs (1)
59=> Elapsed == other.Elapsed && Frequency == other.Frequency && Name.Equals(other.Name, StringComparison.Ordinal);
Latency\Measure.cs (1)
51public bool Equals(Measure other) => Value == other.Value && Name.Equals(other.Name, StringComparison.Ordinal);
Microsoft.Extensions.Validation.GeneratorTests (2)
ValidationsGeneratorTestBase.cs (2)
353=> arg.Equals("--applicationName", StringComparison.OrdinalIgnoreCase) || 354arg.Equals("/applicationName", StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
191if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal)) 210if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal))
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
191if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal)) 210if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal))
Microsoft.Gen.Logging (5)
Model\LoggingMethod.cs (2)
36if (templateName.Equals(p.TagName, StringComparison.OrdinalIgnoreCase)) 50if (lp.TagName.Equals(t, StringComparison.OrdinalIgnoreCase))
Parsing\Parser.cs (3)
267if (t.Equals(p.TagName, StringComparison.OrdinalIgnoreCase) || 268t.Equals(p.ParameterNameWithAtIfNeeded, StringComparison.OrdinalIgnoreCase) || 269(t[0] == '@' && t.Substring(1).Equals(p.ParameterNameWithAtIfNeeded, StringComparison.OrdinalIgnoreCase)))
Microsoft.Gen.Logging.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
191if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal)) 210if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal))
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
191if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal)) 210if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal))
Microsoft.Gen.Metrics.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
191if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal)) 210if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal))
Microsoft.Gen.MetricsReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
191if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal)) 210if (diagnostic.Id.Equals(f.Id, StringComparison.Ordinal))
Microsoft.Interop.ComInterfaceGenerator (4)
ComInterfaceGenerator.cs (2)
258return typeName.Equals("hr", StringComparison.OrdinalIgnoreCase) 259|| typeName.Equals("hresult", 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 (2)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
287return typeName.Equals("hr", StringComparison.OrdinalIgnoreCase) 288|| typeName.Equals("hresult", StringComparison.OrdinalIgnoreCase);
Microsoft.JSInterop (1)
Infrastructure\DotNetDispatcher.cs (1)
548return AssemblyName.Equals(other.AssemblyName, StringComparison.Ordinal);
Microsoft.Maui (17)
Converters\EasingTypeConverter.cs (1)
50 left.Equals(right, StringComparison.OrdinalIgnoreCase);
Converters\FlexEnumsConverters.cs (16)
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))
Microsoft.Maui.Controls (48)
Brush\BrushTypeConverter.cs (5)
138 if (colorParts[0].Equals("Color", StringComparison.Ordinal)) 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))
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 (20)
32 if (value.Equals(nameof(NamedSize.Default), sc)) 34 else if (value.Equals(nameof(NamedSize.Micro), sc)) 36 else if (value.Equals(nameof(NamedSize.Small), sc)) 38 else if (value.Equals(nameof(NamedSize.Medium), sc)) 40 else if (value.Equals(nameof(NamedSize.Large), sc)) 42 else if (value.Equals(nameof(NamedSize.Body), sc)) 44 else if (value.Equals(nameof(NamedSize.Caption), sc)) 46 else if (value.Equals(nameof(NamedSize.Header), sc)) 48 else if (value.Equals(nameof(NamedSize.Subtitle), sc)) 50 else if (value.Equals(nameof(NamedSize.Title), sc)) 76 if (strValue.Equals(nameof(NamedSize.Default), StringComparison.Ordinal)) 78 if (strValue.Equals(nameof(NamedSize.Micro), StringComparison.Ordinal)) 80 if (strValue.Equals(nameof(NamedSize.Small), StringComparison.Ordinal)) 82 if (strValue.Equals(nameof(NamedSize.Medium), StringComparison.Ordinal)) 84 if (strValue.Equals(nameof(NamedSize.Large), StringComparison.Ordinal)) 86 if (strValue.Equals(nameof(NamedSize.Body), StringComparison.Ordinal)) 88 if (strValue.Equals(nameof(NamedSize.Caption), StringComparison.Ordinal)) 90 if (strValue.Equals(nameof(NamedSize.Header), StringComparison.Ordinal)) 92 if (strValue.Equals(nameof(NamedSize.Subtitle), StringComparison.Ordinal)) 94 if (strValue.Equals(nameof(NamedSize.Title), StringComparison.Ordinal))
Internals\ImageParser.cs (1)
477 if (identifier.Equals(NetscapeApplicationExtensionID, 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 (5)
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))
Microsoft.Maui.Controls.Build.Tasks (2)
CompiledConverters\GridLengthTypeConverter.cs (2)
22 if (value.Equals("auto", StringComparison.OrdinalIgnoreCase)) 27 if (value.Equals("*", StringComparison.OrdinalIgnoreCase))
Microsoft.Maui.Controls.DesignTools (3)
FlexEnumDesignTypeConverters.cs (1)
107 if (KnownValues.Any(v => value?.ToString()?.Equals(v, StringComparison.Ordinal) ?? false))
FontSizeDesignTypeConverter.cs (1)
17 if (KnownValues.Any(v => value?.ToString()?.Equals(v, StringComparison.Ordinal) ?? false))
KnownValuesDesignTypeConverter.cs (1)
32 return KnownValues.Any(v => value?.ToString()?.Equals(v, StringComparison.Ordinal) ?? false);
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
454 return !parts[indexOfCompile + 1].Trim('"', '\'').Equals("false", StringComparison.OrdinalIgnoreCase);
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 (10)
Font.cs (1)
51 ((Name is null && other.Name is null) || Name.Equals(other.Name, StringComparison.OrdinalIgnoreCase));
FontSource.cs (1)
20 => Name.Equals(other.Name, StringComparison.Ordinal)
InvariantExtensions.cs (1)
20 return target.Equals(value, StringComparison.OrdinalIgnoreCase);
PathBuilder.cs (1)
35 if ("1".Equals(vValueAsString, StringComparison.Ordinal))
PdfExportContext.cs (1)
22 if ("en-US".Equals(Thread.CurrentThread.CurrentCulture.Name, StringComparison.Ordinal))
Text\XmlAttributedTextReader.cs (5)
74 if (XmlNames.Content.Equals(elementName, StringComparison.Ordinal)) 79 else if (XmlNames.Run.Equals(elementName, StringComparison.Ordinal)) 88 if (XmlNames.Content.Equals(elementName, StringComparison.Ordinal)) 124 if (!(XmlNames.Start.Equals(attributeName, StringComparison.Ordinal) || XmlNames.Length.Equals(attributeName, StringComparison.Ordinal)))
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\HtmlInlineRenderer.cs (1)
36 else if (tag.Equals("</span>", StringComparison.Ordinal))
Microsoft.Maui.Resizetizer (1)
ResizeImageInfo.cs (1)
57 => extension?.Equals(".svg", StringComparison.OrdinalIgnoreCase) ?? false;
Microsoft.ML.Data (6)
Commands\EvaluateCommand.cs (1)
74if (input.Equals(LoadName, StringComparison.OrdinalIgnoreCase) || (CanBeWeighted && input == "Weighted" + LoadName))
EntryPoints\EntryPointNode.cs (4)
1227return asSelf.ParameterName.Equals(ParameterName, StringComparison.Ordinal); 1254asSelf.ParameterName.Equals(ParameterName, StringComparison.Ordinal) && 1255asSelf.Key.Equals(Key, StringComparison.Ordinal); 1282asSelf.ParameterName.Equals(ParameterName, StringComparison.Ordinal) &&
Transforms\ValueMapping.cs (1)
622if (extension.Equals(".idv", StringComparison.OrdinalIgnoreCase))
Microsoft.ML.Parquet (1)
PartitionedPathUtils.cs (1)
53if (uri.Scheme.Equals("file", 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 (7)
Model\TiktokenTokenizer.cs (7)
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 (4)
BpeTests.cs (4)
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))
Microsoft.VisualBasic.Core (7)
Microsoft\VisualBasic\FileIO\FileSystem.vb (7)
685Debug.Assert(GetParentPath(FullNewPath).Equals(GetParentPath(directory), 722Debug.Assert(GetParentPath(FullNewPath).Equals(GetParentPath(file), 925If TargetDirectoryFullPath.Equals(SourceDirectoryFullPath, StringComparison.OrdinalIgnoreCase) Then 934TargetDirectoryFullPath.Substring(0, SourceDirectoryFullPath.Length).Equals( 1130sourceFileFullPath.Equals(destinationFileFullPath, StringComparison.OrdinalIgnoreCase) Then 1468If Not GetParentPath(FullPath).Equals(Path, StringComparison.OrdinalIgnoreCase) Then 1576If Path.Equals(IO.Path.GetPathRoot(Path), StringComparison.OrdinalIgnoreCase) Then
Microsoft.VisualStudio.LanguageServices (11)
CommonControls\NewTypeDestinationSelectionViewModel.cs (1)
132if (!Path.GetExtension(trimmedFileName).Equals(_fileExtension, StringComparison.OrdinalIgnoreCase))
Implementation\AbstractEditorFactory.cs (1)
193return "Form".Equals(pszPhysicalView, StringComparison.OrdinalIgnoreCase);
ProjectSystem\RuleSets\RuleSetEventHandler.cs (3)
92if (Path.GetExtension(oldFileFullPath).Equals(".ruleset", StringComparison.OrdinalIgnoreCase)) 171Path.GetExtension(fileFullPath).Equals(".ruleset", StringComparison.OrdinalIgnoreCase)) 191Path.GetExtension(fileFullPath).Equals(".ruleset", 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));
Microsoft.VisualStudio.LanguageServices.Implementation (1)
SolutionExplorer\AnalyzersCommandHandler.cs (1)
240Path.GetExtension(itemName).Equals(".ruleset", StringComparison.OrdinalIgnoreCase);
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\XamlProjectService.cs (1)
230if (oldMoniker.Equals(newMoniker, StringComparison.OrdinalIgnoreCase))
PresentationBuildTasks (145)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
799if (xmlAttribute.Name.Equals("Sdk", StringComparison.OrdinalIgnoreCase))
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
613Guid hashGuid = !string.IsNullOrEmpty(ChecksumAlgorithm) && ChecksumAlgorithm.Equals("SHA256", StringComparison.OrdinalIgnoreCase)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
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 (1)
2336if (attribName.Equals(XmlnsDeclaration, StringComparison.Ordinal) ||
PresentationCore (199)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
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\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))
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 (1)
473assemblyName.Equals(currAssemblyName.Name, StringComparison.Ordinal) &&
PresentationFramework (27)
MS\Internal\Controls\CustomCategoryAttribute.cs (3)
17Debug.Assert("Content".Equals(name, StringComparison.Ordinal) 18|| "Accessibility".Equals(name, StringComparison.Ordinal) 19|| "Navigation".Equals(name, StringComparison.Ordinal));
MS\Internal\IO\Packaging\XamlFilter.cs (5)
533( elementFullName.XmlNamespace.Equals(ElementTableKey.XamlNamespace, StringComparison.Ordinal) 575if (elementFullName.XmlNamespace.Equals(ElementTableKey.XamlNamespace, StringComparison.Ordinal)) 579else if (elementFullName.XmlNamespace.Equals(_inDocumentCodeURI, StringComparison.Ordinal)) 684if (!elementFullName.XmlNamespace.Equals(ElementTableKey.FixedMarkupNamespace, StringComparison.Ordinal)) 911&& attributePropertyName.Equals(propertyName, StringComparison.Ordinal))
MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
330if (printerName.Equals(queue.FullName, StringComparison.OrdinalIgnoreCase))
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
63if (ScriptCodesRequiringDedicatedSegmenter.FindIndex(s => s.Equals(script, StringComparison.InvariantCultureIgnoreCase)) == -1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
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\FixedSchema.cs (11)
42if (!encoding.Equals(Encoding.Unicode.WebName, StringComparison.OrdinalIgnoreCase) && 43!encoding.Equals(Encoding.UTF8.WebName, StringComparison.OrdinalIgnoreCase)) 400return namespaceUri.Equals(_xpsS0SchemaNamespace, StringComparison.Ordinal); 414if (attrName.Equals("Source", StringComparison.Ordinal) || 415attrName.Equals("FontUri", StringComparison.Ordinal)) 419else if (attrName.Equals("ImageSource", StringComparison.Ordinal)) 433else if (attrName.Equals("Color", StringComparison.Ordinal) || 434attrName.Equals("Fill", StringComparison.Ordinal) || 435attrName.Equals("Stroke", StringComparison.Ordinal)) 692if (attrName.Equals("Source", StringComparison.Ordinal)) // Cannot chain remote ResourceDictionary parts. 736return namespaceUri.Equals(_xpsDocStructureSchemaNamespace, StringComparison.Ordinal);
System\Windows\Markup\RestrictiveXamlXmlReader.cs (1)
195bool isValidNamespace = type.Namespace != null && (type.Namespace.Equals("System.Windows", StringComparison.Ordinal) || type.Namespace.StartsWith("System.Windows.", StringComparison.Ordinal));
System\Windows\SystemResources.cs (1)
1090Debug.Assert(callerName.Equals(nameof(EnsureResourceChangeListener), StringComparison.InvariantCulture));
System\Windows\ThemeDictionaryExtension.cs (1)
105if (assemblyName.Equals(SystemResources.PresentationFrameworkName, StringComparison.OrdinalIgnoreCase))
PresentationUI (13)
MS\Internal\Documents\Application\CriticalFileToken.cs (1)
67result = a._location.ToString().Equals(
MS\Internal\Documents\Application\DocumentStream.cs (1)
955if (!Path.GetExtension(location.LocalPath).Equals(
MS\Internal\Documents\Application\FilePresentation.cs (1)
85if (!extension.Equals(
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (6)
115((contentType.Equals( 119(contentType.Equals( 123(contentType.Equals( 127(contentType.Equals( 131(contentType.Equals( 135(contentType.Equals(
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (3)
57return userName.Equals(SR.RMPublishingAnyoneUserDisplay, StringComparison.OrdinalIgnoreCase); 215if (user.Name.ToUpperInvariant().Equals( 292if (GetUsernameFromRow(row).Equals(name, StringComparison.OrdinalIgnoreCase))
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
ReachFramework (6)
Packaging\XpsManager.cs (5)
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))
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
Roslyn.Diagnostics.Analyzers (16)
DoNotCallGetTestAccessor.cs (2)
64if (invocation.TargetMethod.Name.Equals(TestAccessorHelper.GetTestAccessorMethodName, StringComparison.Ordinal)) 79if (objectCreation.Type!.Name.Equals(TestAccessorHelper.TestAccessorTypeName, StringComparison.Ordinal))
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (1)
82.Where(ad => ad.AttributeClass.Name.Equals("MetadataAttributeAttribute", StringComparison.Ordinal));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
SymbolDeclaredEventMustBeGeneratedForSourceSymbols.cs (2)
116if (invocationSymbol.Name.Equals(SymbolDeclaredEventName, StringComparison.Ordinal) && 139!type.Name.Equals("Symbol", StringComparison.Ordinal))
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
178return methodSymbol.Name.Equals("To" + returnTypeName, StringComparison.Ordinal);
System.CodeDom (4)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
2582if (current.Name.Equals("system.paramarrayattribute", StringComparison.OrdinalIgnoreCase))
Microsoft\VisualBasic\VBCodeGenerator.cs (2)
1561&& meth.Name.Equals(e.Name, StringComparison.OrdinalIgnoreCase) 1721&& prop.Name.Equals(e.Name, StringComparison.OrdinalIgnoreCase)
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (1)
27if (names[i].Equals(name, StringComparison.OrdinalIgnoreCase))
System.Console (1)
src\libraries\Common\src\System\Console\ConsoleUtils.cs (1)
42enabled = envVar is not null && (envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase));
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\LocalAppContextSwitches.cs (1)
21defaultActivityIdFormatIsHierarchial = switchValue.Equals("true", StringComparison.OrdinalIgnoreCase) || switchValue.Equals("1");
System\Diagnostics\Metrics\AggregationManager.cs (3)
97Include(i => i.Meter.Name.Equals(meterName, StringComparison.OrdinalIgnoreCase)); 112Include(i => i.Meter.Name.Equals(meterName, StringComparison.OrdinalIgnoreCase) 113&& i.Name.Equals(instrumentName, StringComparison.OrdinalIgnoreCase));
System.Drawing.Common (14)
System\Drawing\FontConverter.cs (2)
374if (name.Equals(font.Name, StringComparison.OrdinalIgnoreCase)) 451if (fontName.Equals(name, StringComparison.InvariantCultureIgnoreCase))
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.Common.Tests (1)
System\Drawing\FontTests.cs (1)
885if (font1.Name.Equals(font2.Name, StringComparison.OrdinalIgnoreCase))
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
742return extensionA.Equals(extensionB, StringComparison.OrdinalIgnoreCase);
System.Linq.Expressions (3)
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 (14)
System\Net\Http\Headers\HttpGeneralHeaders.cs (1)
87if (value is string stringValue && stringValue.Equals("chunked", StringComparison.OrdinalIgnoreCase))
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (11)
49if (!algorithm!.Equals(Sha256, StringComparison.OrdinalIgnoreCase) && 50!algorithm.Equals(Md5, StringComparison.OrdinalIgnoreCase) && 51!algorithm.Equals(Sha256Sess, StringComparison.OrdinalIgnoreCase) && 52!algorithm.Equals(MD5Sess, 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.HttpListener (6)
System\Net\Managed\HttpListenerRequest.Managed.cs (2)
220if (name.Equals("content-length", StringComparison.OrdinalIgnoreCase)) 240else if (name.Equals("transfer-encoding", StringComparison.OrdinalIgnoreCase))
System\Net\Managed\HttpListenerResponse.Managed.cs (2)
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.Mail (5)
System\Net\Mail\MailAddress.cs (1)
277return ToString().Equals(value.ToString(), StringComparison.InvariantCultureIgnoreCase);
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 (1)
System\Net\Cookie.cs (1)
80Debug.Assert(MaxSupportedVersion.ToString(NumberFormatInfo.InvariantInfo).Equals(MaxSupportedVersionString, StringComparison.Ordinal));
System.Net.Security (1)
System\Net\Security\SslStream.Protocol.cs (1)
44(envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase)) ? 1 : 0;
System.Net.Sockets (1)
src\libraries\Common\src\System\Net\SocketProtocolSupportPal.cs (1)
30return envVar == "1" || envVar.Equals("true", StringComparison.OrdinalIgnoreCase);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
160if (requestedProtocol.Equals(subprotocolArray[0], StringComparison.OrdinalIgnoreCase))
System.Private.CoreLib (30)
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\Diagnostics\Tracing\EventSource.cs (3)
5353if (opcodeTab.TryGetValue(value, out string? prevName) && !name.Equals(prevName, StringComparison.Ordinal)) 5371if (taskTab != null && taskTab.TryGetValue(value, out string? prevName) && !name.Equals(prevName, StringComparison.Ordinal)) 5394if (keywordTab != null && keywordTab.TryGetValue(value, out string? prevName) && !name.Equals(prevName, StringComparison.Ordinal))
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.Nls.cs (1)
355if (regionName != null && regionName.Equals(context->regionName, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
2518raw.hasSameDateAndTimeSeparators = dtfi.DateSeparator.Equals(dtfi.TimeSeparator, StringComparison.Ordinal);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
552if (!ascii.Equals(GetAscii(strUnicode), 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)
193return cls.Name.Equals(str, comparison);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
655if (!requestedSimpleName.Equals(runtimeAssembly.GetSimpleName(), StringComparison.InvariantCultureIgnoreCase))
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\TimeZoneInfo.cs (2)
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))
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
659if (!name.Equals("xml", StringComparison.OrdinalIgnoreCase))
System.Private.Uri (1)
System\Uri.cs (1)
1909&& !(uri.IsDosPath && otherPath.Equals(relativeUriString, StringComparison.Ordinal)))
System.Private.Windows.Core (1)
System\Private\Windows\Ole\DataStore.cs (1)
133if (format.Equals(formats[i], StringComparison.OrdinalIgnoreCase))
System.Private.Xml (5)
System\Xml\Core\XmlAutoDetectWriter.cs (1)
358tagName.Equals("html", StringComparison.OrdinalIgnoreCase);
System\Xml\Core\XmlTextWriter.cs (1)
1774prefix.Equals("xml", StringComparison.OrdinalIgnoreCase) &&
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (3)
174if (methSearch.Name.Equals(_name, comparison) && (_numArgs == -1 || methSearch.GetParameters().Length == _numArgs)) 198if (methSearch.Name.Equals(_name, comparison) && (_numArgs == -1 || methSearch.GetParameters().Length == _numArgs)) 212if (methSearch.Name.Equals(_name, comparison) && methSearch.GetParameters().Length == _numArgs)
System.Reflection.Emit (2)
System\Reflection\Emit\TypeBuilderImpl.cs (2)
857if (name.Equals(fieldInfo.Name, compare) && (bindingFlags & fieldFlags) == fieldFlags) 945if (name.Equals(interfaceType.Name, compare))
System.Reflection.Metadata (15)
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 (1)
355return decoded.Equals(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\PortableExecutable\PEHeaders.cs (1)
380if (SectionHeaders[i].Name.Equals(name, 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 (2)
29public sealed override bool Matches(string name) => name.Equals(ExpectedName, StringComparison.Ordinal); 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\Types\RoType.GetInterface.cs (1)
22? simpleName.Equals(ifcSimpleName, StringComparison.OrdinalIgnoreCase)
System.Security.Cryptography (16)
System\Security\Cryptography\DSASignatureDeformatter.cs (1)
28if (!strName.Equals(HashAlgorithmNames.SHA1, StringComparison.InvariantCultureIgnoreCase))
System\Security\Cryptography\DSASignatureFormatter.cs (1)
28if (!strName.Equals(HashAlgorithmNames.SHA1, StringComparison.InvariantCultureIgnoreCase))
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\Oid.cs (3)
69if (_value != null && !_value.Equals(value, StringComparison.Ordinal)) 96if ((_friendlyName != null && !_friendlyName.Equals(value, StringComparison.Ordinal)) || 124else if (!_value.Equals(oidValue, StringComparison.Ordinal))
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\X509Certificate2.cs (1)
1894return hostname.Equals(cn.GetSingleElementValue(), StringComparison.OrdinalIgnoreCase);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (1)
452_ => certAlgorithm.Equals(keyAlgorithm, StringComparison.Ordinal),
System.ServiceModel.Http (3)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
131if (!(requested == null ? string.IsNullOrWhiteSpace(obtained) : requested.Equals(obtained, StringComparison.OrdinalIgnoreCase)))
System\ServiceModel\Channels\WebSocketHelper.cs (2)
51(WebSocketHelper.SchemeWs.Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase) || 52WebSocketHelper.SchemeWss.Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase));
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
881if ("localhost".Equals(uri.DnsSafeHost, StringComparison.OrdinalIgnoreCase))
System.ServiceModel.Primitives (5)
Internals\System\Runtime\Fx.cs (1)
46s_isUap = "Microsoft Windows".Equals(RuntimeInformation.OSDescription, StringComparison.Ordinal);
System\ServiceModel\Channels\MessageEncoder.cs (1)
216if (supportedMediaType.Length > 0 && !supportedMediaType.Equals(parsedContentType.MediaType, StringComparison.OrdinalIgnoreCase))
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
344&& methodData.MethodBase.Name.Equals("Close", StringComparison.Ordinal))
System\ServiceModel\Channels\TransportDefaults.cs (1)
119if (compare.Equals(charSet, StringComparison.OrdinalIgnoreCase))
System\ServiceModel\Security\IdentityVerifier.cs (1)
197if (expectedSpn.Equals((string)claim.Resource, StringComparison.OrdinalIgnoreCase))
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
354if (permalinkString != null && permalinkString.Equals("FALSE", StringComparison.InvariantCultureIgnoreCase))
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."); 639return current.JsonName.Equals(other.JsonName, StringComparison.Ordinal);
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
81if (!propertyName.Equals(JsonSerializer.TypePropertyName, StringComparison.Ordinal))
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1565=> propSpec.MemberName.Equals(paramSpec.Name, StringComparison.OrdinalIgnoreCase);
System.Text.RegularExpressions.Generator (4)
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.Windows.Controls.Ribbon (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
System.Windows.Forms (2)
System\Windows\Forms\SendKeys\SendKeys.cs (2)
282if (value.Equals("JournalHook", StringComparison.OrdinalIgnoreCase)) 286else if (value.Equals("SendInput", StringComparison.OrdinalIgnoreCase))
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
246while (!currentDirectory.Equals(root, StringComparison.CurrentCultureIgnoreCase))
System.Windows.Forms.Primitives.TestUtilities (3)
PlatformDetection.Windows.cs (3)
31public static bool IsWindowsNanoServer => (IsNotWindowsIoTCore && GetInstallationType().Equals("Nano Server", StringComparison.OrdinalIgnoreCase)); 32public static bool IsWindowsServerCore => GetInstallationType().Equals("Server Core", StringComparison.OrdinalIgnoreCase); 124if (e.GetType().FullName.Equals("System.EntryPointNotFoundException", StringComparison.Ordinal))
System.Windows.Input.Manipulations (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
Test.Utilities (11)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
Text.Analyzers (12)
EnumsShouldHavePluralNames.cs (1)
115=> word.Equals(word.Pluralize(inputIsKnownToBeSingular: false), StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
171if (currentChild.Equals(parent, comparison))
src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
43=> _additionalFiles.FirstOrDefault(x => Path.GetFileName(x.Path).Equals(fileName, StringComparison.OrdinalIgnoreCase));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
396=> method.Name.Equals("FromResult", StringComparison.Ordinal) && 405=> method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) && 418method.Name.Equals("ConfigureAwait", StringComparison.Ordinal) &&
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
119else if (parts.SymbolName.Equals(".ctor", StringComparison.Ordinal) || 120parts.SymbolName.Equals(".cctor", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
20private bool IsSplatHeader => Text.Equals("*", StringComparison.Ordinal);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
48if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase)) 79=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 144if (str.Equals("null", StringComparison.InvariantCultureIgnoreCase))
UIAutomationClient (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
UIAutomationClientSideProviders (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
UIAutomationProvider (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
WindowsFormsIntegration (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
55if (defaultString is not null && resourceKey.Equals(resourceString, StringComparison.Ordinal))
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 (1)
CommandLine.cs (1)
473if (TransformFactory.AvailableTransforms.Any(t => t.CommandLine.Equals(optionName, StringComparison.OrdinalIgnoreCase)))