366 references to Compare
aspire (1)
Commands\AddCommand.cs (1)
390_ => string.Compare(x, y, StringComparison.OrdinalIgnoreCase)
Aspire.Dashboard (4)
Otlp\Model\OtlpInstrument.cs (1)
159return string.Compare(x.Key, y.Key, StringComparison.Ordinal);
Otlp\Model\OtlpResourceView.cs (1)
37Array.Sort(properties, (p1, p2) => string.Compare(p1.Key, p2.Key, StringComparisons.OtlpAttribute));
Otlp\Storage\ResourceKey.cs (2)
42var c = string.Compare(Name, other.Name, StringComparisons.ResourceName); 48return string.Compare(InstanceId, other.InstanceId, StringComparisons.ResourceName);
Aspire.Hosting (1)
Dcp\ResourceSnapshotBuilder.cs (1)
302environment.Sort((v1, v2) => string.Compare(v1.Name, v2.Name, StringComparison.Ordinal));
CodeGenerator (1)
HttpUtilities\HttpUtilities.cs (1)
176methodsInfo.Sort((t1, t2) => string.Compare(t1.HttpMethod, t2.HttpMethod, StringComparison.Ordinal));
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
152if (String.Compare(fileName, s_existingFileNames[i], StringComparison.OrdinalIgnoreCase) == 0)
dotnet-svcutil-lib (120)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (1)
308if (e.Parameters.Count > 0 && String.Compare(e.Name, "Item", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
584if (string.Compare(m.Groups[full ? 6 : 1].Value, "warning", StringComparison.OrdinalIgnoreCase) == 0) 2230if (e.Parameters.Count > 0 && String.Compare(e.Name, "Item", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.CodeDom\System\FixedStringLookup.cs (1)
51Debug.Assert(string.Compare(lastValue, value, ((ignoreCase) ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) < 0,
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (7)
3297if (0 == String.Compare(newEncodingName, "ucs-2", StringComparison.OrdinalIgnoreCase) || 32980 == String.Compare(newEncodingName, "utf-16", StringComparison.OrdinalIgnoreCase) || 32990 == String.Compare(newEncodingName, "iso-10646-ucs-2", StringComparison.OrdinalIgnoreCase) || 33000 == String.Compare(newEncodingName, "ucs-4", StringComparison.OrdinalIgnoreCase)) 33040 != String.Compare(newEncodingName, "ucs-4", StringComparison.OrdinalIgnoreCase)) 3319if (0 == String.Compare(newEncodingName, "utf-8", StringComparison.OrdinalIgnoreCase)) 6329if (string.Compare(target, "xml", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImplHelpers.cs (2)
786int result = string.Compare(localName, localName2, StringComparison.Ordinal); 792return string.Compare(prefix, prefix2, StringComparison.Ordinal);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (1)
757if (0 == String.Compare(name, "xml", StringComparison.OrdinalIgnoreCase) && _stateTable == s_stateTableDocument)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (1)
935if (name.Length == 3 && string.Compare(name, "xml", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlImplementation.cs (1)
31if (String.Compare("XML", strFeature, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (1)
802if (String.Compare("XML", feature, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (2)
756public int CompareTo(object obj) { return string.Compare(_name, (string)obj, StringComparison.Ordinal); } 1399return String.Compare(value1.ToString(), value2.ToString(), StringComparison.Ordinal);
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (2)
366if (prefix.Length != 0 && String.Compare(prefix, "xml", StringComparison.OrdinalIgnoreCase) != 0) 1621if (string.Compare(XmlConvert.ToString(flValue), XmlConvert.ToString(dbValue),
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (5)
21int ns = String.Compare(a1.NamespaceURI, a2.NamespaceURI, StringComparison.Ordinal); 24return String.Compare(a1.Name, a2.Name, StringComparison.Ordinal); 36return String.Compare(f1.GetType().Name + ":" + f1.Value, f2.GetType().Name + ":" + f2.Value, StringComparison.Ordinal); 46int ns = String.Compare(qn1.Namespace, qn2.Namespace, StringComparison.Ordinal); 49return String.Compare(qn1.Name, qn2.Name, StringComparison.Ordinal);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
1394if (string.Compare(reflectionMembers[i].MemberName, memberName + "Specified", StringComparison.Ordinal) == 0)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
1894return String.Compare(e1.ToString(string.Empty), e2.ToString(string.Empty), StringComparison.Ordinal);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (3)
131if (String.Compare(existingName, assemblyName, StringComparison.OrdinalIgnoreCase) == 0) 755if (String.Compare(typeName, type.Name, StringComparison.OrdinalIgnoreCase) == 0) 780if (String.Compare(typeName, ((CodeTypeDeclaration)member).Name, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.Runtime.Serialization\System\Xml\StringHandle.cs (1)
277return string.Compare(this.GetString(), that.GetString(), StringComparison.Ordinal);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FaultConverter.cs (14)
94if (string.Compare(fault.Code.Namespace, _version.Envelope.Namespace, StringComparison.Ordinal) == 0 95&& string.Compare(fault.Code.Name, MessageStrings.MustUnderstandFault, StringComparison.Ordinal) == 0) 131if (string.Compare(code.Namespace, _version.Addressing.Namespace, StringComparison.Ordinal) == 0) 133if (string.Compare(code.Name, AddressingStrings.ActionNotSupported, StringComparison.Ordinal) == 0) 138else if (string.Compare(code.Name, AddressingStrings.DestinationUnreachable, StringComparison.Ordinal) == 0) 143else if (string.Compare(code.Name, Addressing10Strings.InvalidAddressingHeader, StringComparison.Ordinal) == 0) 145if (code.SubCode != null && string.Compare(code.SubCode.Namespace, _version.Addressing.Namespace, StringComparison.Ordinal) == 0 && 146string.Compare(code.SubCode.Name, Addressing10Strings.InvalidCardinality, StringComparison.Ordinal) == 0) 154if (string.Compare(code.Name, Addressing10Strings.MessageAddressingHeaderRequired, StringComparison.Ordinal) == 0) 159else if (string.Compare(code.Name, Addressing10Strings.InvalidAddressingHeader, StringComparison.Ordinal) == 0) 167if (string.Compare(code.Name, Addressing200408Strings.MessageInformationHeaderRequired, StringComparison.Ordinal) == 0) 172else if (string.Compare(code.Name, Addressing200408Strings.InvalidMessageInformationHeader, StringComparison.Ordinal) == 0) 184if (string.Compare(code.Namespace, _version.Addressing.Namespace, StringComparison.Ordinal) == 0) 186if (string.Compare(code.Name, AddressingStrings.EndpointUnavailable, StringComparison.Ordinal) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (16)
399if (string.Compare(via.Scheme, "ws", StringComparison.OrdinalIgnoreCase) != 0) 1060if (string.Compare(name, "accept", StringComparison.OrdinalIgnoreCase) == 0) 1064else if (string.Compare(name, "connection", StringComparison.OrdinalIgnoreCase) == 0) 1075else if (string.Compare(name, "SOAPAction", StringComparison.OrdinalIgnoreCase) == 0) 1083if (!String.IsNullOrEmpty(value) && string.Compare(value, action, StringComparison.Ordinal) != 0) 1090else if (string.Compare(name, "content-length", StringComparison.OrdinalIgnoreCase) == 0) 1094else if (string.Compare(name, "content-type", StringComparison.OrdinalIgnoreCase) == 0) 1098else if (string.Compare(name, "expect", StringComparison.OrdinalIgnoreCase) == 0) 1109else if (string.Compare(name, "host", StringComparison.OrdinalIgnoreCase) == 0) 1113else if (string.Compare(name, "referer", StringComparison.OrdinalIgnoreCase) == 0) 1119else if (string.Compare(name, "transfer-encoding", StringComparison.OrdinalIgnoreCase) == 0) 1130else if (string.Compare(name, "user-agent", StringComparison.OrdinalIgnoreCase) == 0) 1134else if (string.Compare(name, "if-modified-since", StringComparison.OrdinalIgnoreCase) == 0) 1147else if (string.Compare(name, "date", StringComparison.OrdinalIgnoreCase) == 0) 1151else if (string.Compare(name, "proxy-connection", StringComparison.OrdinalIgnoreCase) == 0) 1155else if (string.Compare(name, "range", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
336if (string.Compare(statusDescription, HttpChannelUtilities.StatusDescriptionStrings.HttpContentTypeMissing, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
69if (string.Compare(via.Scheme, "wss", StringComparison.OrdinalIgnoreCase) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (4)
62if (string.Compare(name, "SOAPAction", StringComparison.OrdinalIgnoreCase) == 0) 70if (!String.IsNullOrEmpty(value) && string.Compare(value, action, StringComparison.Ordinal) != 0) 77else if (string.Compare(name, "content-type", StringComparison.OrdinalIgnoreCase) == 0) 103if (string.Compare(value, action, StringComparison.Ordinal) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (7)
134if (String.Compare(code.Name, MessageStrings.MustUnderstandFault, StringComparison.Ordinal) != 0) 139if ((String.Compare(code.Namespace, EnvelopeVersion.Soap11.Namespace, StringComparison.Ordinal) != 0) && 140(String.Compare(code.Namespace, EnvelopeVersion.Soap12.Namespace, StringComparison.Ordinal) != 0)) 229if ((String.Compare(headerInfo.Name, Message12Strings.NotUnderstood, StringComparison.Ordinal) == 0) && 230(String.Compare(headerInfo.Namespace, Message12Strings.Namespace, StringComparison.Ordinal) == 0)) 242(String.Compare(name, actualName, StringComparison.Ordinal) == 0) && 243(String.Compare(ns, actualNamespace, StringComparison.Ordinal) == 0))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (7)
1036if (string.Compare(code.Namespace, FaultCodeConstants.Namespaces.NetDispatch, StringComparison.Ordinal) == 0) 1038if (string.Compare(code.Name, FaultCodeConstants.Codes.SessionTerminated, StringComparison.Ordinal) == 0) 1045if (string.Compare(code.Namespace, SecurityVersion.Default.HeaderNamespace.Value, StringComparison.Ordinal) == 0) 1047if (string.Compare(code.Name, SecurityVersion.Default.FailedAuthenticationFaultCode.Value, StringComparison.Ordinal) == 0) 1056if (string.Compare(code.Namespace, FaultCodeConstants.Namespaces.NetDispatch, StringComparison.Ordinal) == 0) 1058if (string.Compare(code.Name, FaultCodeConstants.Codes.InternalServiceFault, StringComparison.Ordinal) == 0) 1071if (string.Compare(code.Name, FaultCodeConstants.Codes.DeserializationFailed, StringComparison.Ordinal) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportChannelFactory.cs (1)
173if (string.Compare(via.Scheme, this.Scheme, StringComparison.OrdinalIgnoreCase) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (10)
373if (string.Compare(typeDeclaration.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 380if (string.Compare(member.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 394if (string.Compare(codeTypeDeclaration.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 424if (String.Compare(operationContext.SyncMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 428if (String.Compare(operationContext.BeginMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 430if (String.Compare(operationContext.EndMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 435if (String.Compare(operationContext.TaskMethod.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 445if (String.Compare(method.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 450if (String.Compare(p.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 995return method.ReturnType == null || String.Compare(method.ReturnType.BaseType, typeof(void).FullName, StringComparison.Ordinal) == 0;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeBindings.cs (4)
134if (String.Compare(scheme, "http", StringComparison.OrdinalIgnoreCase) == 0) 138else if (String.Compare(scheme, "https", StringComparison.OrdinalIgnoreCase) == 0) 142else if (String.Compare(scheme, "net.tcp", StringComparison.OrdinalIgnoreCase) == 0) 146else if (String.Compare(scheme, "net.pipe", StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (3)
486if (String.Compare(name, _methodName, StringComparison.OrdinalIgnoreCase) == 0) 515if (String.Compare(parameter.Name, name, StringComparison.OrdinalIgnoreCase) == 0) 989return String.Compare(a.Name, b.Name, StringComparison.Ordinal);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
63if (String.Compare(existingName, assemblyName, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (2)
649int nsCmp = string.Compare(a.Namespace, b.Namespace, StringComparison.Ordinal); 655return string.Compare(a.Name, b.Name, StringComparison.Ordinal);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
153if (String.Compare(codeType.Name, typeName, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
167return string.Compare(_key, a._key, StringComparison.Ordinal);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorBehavior.cs (2)
105string.Compare(e.Fault.Code.SubCode.Namespace, FaultCodeConstants.Namespaces.NetDispatch, StringComparison.Ordinal) == 0 && 106string.Compare(e.Fault.Code.SubCode.Name, FaultCodeConstants.Codes.InternalServiceFault, StringComparison.Ordinal) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (2)
371if (string.Compare(u1.Host, u2.Host, StringComparison.OrdinalIgnoreCase) != 0) 377if (string.Compare(u1.AbsolutePath, u2.AbsolutePath, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0)
Metadata\MetadaExchangeResolver.cs (4)
371if (String.Compare(scheme, MetadataConstants.Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase) == 0) 380else if (String.Compare(scheme, MetadataConstants.Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase) == 0) 389else if (String.Compare(scheme, MetadataConstants.Uri.UriSchemeNetTcp, StringComparison.OrdinalIgnoreCase) == 0) 395else if (String.Compare(scheme, MetadataConstants.Uri.UriSchemeNetPipe, StringComparison.OrdinalIgnoreCase) == 0)
Shared\ProjectDependency.cs (7)
108if (s_projectExtensions.Any((ext) => String.Compare(Path.GetExtension(AssemblyName), ext, StringComparison.OrdinalIgnoreCase) == 0)) 115(s_binaryExtensions.Any((ext) => String.Compare(Path.GetExtension(filePath), ext, StringComparison.OrdinalIgnoreCase) == 0)); 118if (s_exeExtensions.Any((ext) => String.Compare(Path.GetExtension(packageName), ext, StringComparison.OrdinalIgnoreCase) == 0)) 133fileHasKnownExtension = s_binaryExtensions.Any((ext) => String.Compare(Path.GetExtension(filePath), ext, StringComparison.OrdinalIgnoreCase) == 0); 137fileHasKnownExtension = s_projectExtensions.Any((ext) => String.Compare(Path.GetExtension(filePath), ext, StringComparison.OrdinalIgnoreCase) == 0); 310if (s_projectExtensions.Any((ext) => String.Compare(Path.GetExtension(path), ext, StringComparison.OrdinalIgnoreCase) == 0)) 315else if (s_binaryExtensions.Any((ext) => String.Compare(Path.GetExtension(path), ext, StringComparison.OrdinalIgnoreCase) == 0))
illink (4)
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultClaimUidExtractor.cs (1)
108allClaims.Sort((a, b) => string.Compare(a.Type, b.Type, StringComparison.Ordinal));
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultClaimUidExtractorTest.cs (1)
67claims.Sort((a, b) => string.Compare(a.Type, b.Type, StringComparison.Ordinal));
Microsoft.AspNetCore.Components (2)
Routing\RouteTableFactory.cs (1)
29return result != 0 ? result : string.Compare(x.RoutePattern.RawText, y.RoutePattern.RawText, StringComparison.OrdinalIgnoreCase);
src\Http\Routing\src\Tree\UrlMatchingTree.cs (1)
241return result == 0 ? string.Compare(x.Entry.RoutePattern.RawText, y.Entry.RoutePattern.RawText, StringComparison.Ordinal) : result;
Microsoft.AspNetCore.Components.Endpoints (1)
src\Shared\Components\ResourceCollectionResolver.cs (1)
117resources.Sort((a, b) => string.Compare(a.Url, b.Url, StringComparison.Ordinal));
Microsoft.AspNetCore.Mvc.TagHelpers (1)
GlobbingUrlBuilder.cs (1)
187return string.Compare(x, y, StringComparison.Ordinal);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
src\Shared\Components\ResourceCollectionResolver.cs (1)
117resources.Sort((a, b) => string.Compare(a.Url, b.Url, StringComparison.Ordinal));
Microsoft.AspNetCore.Rewrite (5)
UrlMatches\StringMatch.cs (5)
31return string.Compare(input, _value, _stringComparison) == 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 33return string.Compare(input, _value, _stringComparison) > 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 35return string.Compare(input, _value, _stringComparison) >= 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 37return string.Compare(input, _value, _stringComparison) < 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure; 39return string.Compare(input, _value, _stringComparison) <= 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure;
Microsoft.AspNetCore.Routing (4)
Matching\EndpointComparer.cs (1)
62return string.Compare(routeEndpointX.RoutePattern.RawText, routeEndpointY.RoutePattern.RawText, StringComparison.OrdinalIgnoreCase);
Matching\HttpMethodMatcherPolicy.cs (1)
458var compare = string.Compare(HttpMethod, other.HttpMethod, StringComparison.Ordinal);
Tree\LinkGenerationDecisionTree.cs (1)
210return string.Compare(
Tree\UrlMatchingTree.cs (1)
239return result == 0 ? string.Compare(x.Entry.RouteTemplate.TemplateText, y.Entry.RouteTemplate.TemplateText, StringComparison.Ordinal) : result;
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\SniOptionsSelector.cs (1)
241return string.Compare(x, y, StringComparison.OrdinalIgnoreCase);
Microsoft.Build.Tasks.CodeAnalysis (30)
src\Compilers\Core\MSBuildTask\CanonicalError.cs (2)
315if (0 == String.Compare(category, "error", StringComparison.OrdinalIgnoreCase)) 319else if (0 == String.Compare(category, "warning", StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\MSBuildTask\Csc.cs (1)
402if (string.Compare("global", trimmedAlias, StringComparison.OrdinalIgnoreCase) == 0)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (3)
857if (string.Compare(TargetType, "library", StringComparison.OrdinalIgnoreCase) == 0) 861else if (string.Compare(TargetType, "module", StringComparison.OrdinalIgnoreCase) == 0) 1048if (string.Compare((string?)_store[nameof(DebugType)], "none", StringComparison.OrdinalIgnoreCase) == 0)
src\Compilers\Core\MSBuildTask\Utilities.cs (12)
93String.Compare(parameterValue, "true", StringComparison.OrdinalIgnoreCase) == 0 || 94String.Compare(parameterValue, "on", StringComparison.OrdinalIgnoreCase) == 0 || 95String.Compare(parameterValue, "yes", StringComparison.OrdinalIgnoreCase) == 0 || 96String.Compare(parameterValue, "!false", StringComparison.OrdinalIgnoreCase) == 0 || 97String.Compare(parameterValue, "!off", StringComparison.OrdinalIgnoreCase) == 0 || 98String.Compare(parameterValue, "!no", StringComparison.OrdinalIgnoreCase) == 0; 105String.Compare(parameterValue, "false", StringComparison.OrdinalIgnoreCase) == 0 || 106String.Compare(parameterValue, "off", StringComparison.OrdinalIgnoreCase) == 0 || 107String.Compare(parameterValue, "no", StringComparison.OrdinalIgnoreCase) == 0 || 108String.Compare(parameterValue, "!true", StringComparison.OrdinalIgnoreCase) == 0 || 109String.Compare(parameterValue, "!on", StringComparison.OrdinalIgnoreCase) == 0 || 110String.Compare(parameterValue, "!yes", StringComparison.OrdinalIgnoreCase) == 0;
src\Compilers\Core\MSBuildTask\Vbc.cs (12)
355(0 == String.Compare(twoLetterPrefix, "0x", StringComparison.OrdinalIgnoreCase)) || 356(0 == String.Compare(twoLetterPrefix, "&h", StringComparison.OrdinalIgnoreCase)) 453if (0 == String.Compare(this.VBRuntimePath, this.VBRuntime, StringComparison.OrdinalIgnoreCase)) 460if (0 == String.Compare(vbRuntimeSwitch, "EMBED", StringComparison.OrdinalIgnoreCase)) 464else if (0 == String.Compare(vbRuntimeSwitch, "NONE", StringComparison.OrdinalIgnoreCase)) 468else if (0 == String.Compare(vbRuntimeSwitch, "DEFAULT", StringComparison.OrdinalIgnoreCase)) 483(0 == String.Compare(this.Verbosity, "quiet", StringComparison.OrdinalIgnoreCase)) || 484(0 == String.Compare(this.Verbosity, "verbose", StringComparison.OrdinalIgnoreCase)) 505if (0 != String.Compare("Sub Main", this.MainEntryPoint, StringComparison.OrdinalIgnoreCase)) 610if ((0 != String.Compare(Verbosity, "normal", StringComparison.OrdinalIgnoreCase)) && 611(0 != String.Compare(Verbosity, "quiet", StringComparison.OrdinalIgnoreCase)) && 612(0 != String.Compare(Verbosity, "verbose", StringComparison.OrdinalIgnoreCase)))
Microsoft.Build.Tasks.CodeAnalysis.Sdk (30)
src\Compilers\Core\MSBuildTask\CanonicalError.cs (2)
315if (0 == String.Compare(category, "error", StringComparison.OrdinalIgnoreCase)) 319else if (0 == String.Compare(category, "warning", StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\MSBuildTask\Csc.cs (1)
402if (string.Compare("global", trimmedAlias, StringComparison.OrdinalIgnoreCase) == 0)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (3)
857if (string.Compare(TargetType, "library", StringComparison.OrdinalIgnoreCase) == 0) 861else if (string.Compare(TargetType, "module", StringComparison.OrdinalIgnoreCase) == 0) 1048if (string.Compare((string?)_store[nameof(DebugType)], "none", StringComparison.OrdinalIgnoreCase) == 0)
src\Compilers\Core\MSBuildTask\Utilities.cs (12)
93String.Compare(parameterValue, "true", StringComparison.OrdinalIgnoreCase) == 0 || 94String.Compare(parameterValue, "on", StringComparison.OrdinalIgnoreCase) == 0 || 95String.Compare(parameterValue, "yes", StringComparison.OrdinalIgnoreCase) == 0 || 96String.Compare(parameterValue, "!false", StringComparison.OrdinalIgnoreCase) == 0 || 97String.Compare(parameterValue, "!off", StringComparison.OrdinalIgnoreCase) == 0 || 98String.Compare(parameterValue, "!no", StringComparison.OrdinalIgnoreCase) == 0; 105String.Compare(parameterValue, "false", StringComparison.OrdinalIgnoreCase) == 0 || 106String.Compare(parameterValue, "off", StringComparison.OrdinalIgnoreCase) == 0 || 107String.Compare(parameterValue, "no", StringComparison.OrdinalIgnoreCase) == 0 || 108String.Compare(parameterValue, "!true", StringComparison.OrdinalIgnoreCase) == 0 || 109String.Compare(parameterValue, "!on", StringComparison.OrdinalIgnoreCase) == 0 || 110String.Compare(parameterValue, "!yes", StringComparison.OrdinalIgnoreCase) == 0;
src\Compilers\Core\MSBuildTask\Vbc.cs (12)
355(0 == String.Compare(twoLetterPrefix, "0x", StringComparison.OrdinalIgnoreCase)) || 356(0 == String.Compare(twoLetterPrefix, "&h", StringComparison.OrdinalIgnoreCase)) 453if (0 == String.Compare(this.VBRuntimePath, this.VBRuntime, StringComparison.OrdinalIgnoreCase)) 460if (0 == String.Compare(vbRuntimeSwitch, "EMBED", StringComparison.OrdinalIgnoreCase)) 464else if (0 == String.Compare(vbRuntimeSwitch, "NONE", StringComparison.OrdinalIgnoreCase)) 468else if (0 == String.Compare(vbRuntimeSwitch, "DEFAULT", StringComparison.OrdinalIgnoreCase)) 483(0 == String.Compare(this.Verbosity, "quiet", StringComparison.OrdinalIgnoreCase)) || 484(0 == String.Compare(this.Verbosity, "verbose", StringComparison.OrdinalIgnoreCase)) 505if (0 != String.Compare("Sub Main", this.MainEntryPoint, StringComparison.OrdinalIgnoreCase)) 610if ((0 != String.Compare(Verbosity, "normal", StringComparison.OrdinalIgnoreCase)) && 611(0 != String.Compare(Verbosity, "quiet", StringComparison.OrdinalIgnoreCase)) && 612(0 != String.Compare(Verbosity, "verbose", StringComparison.OrdinalIgnoreCase)))
Microsoft.Cci.Extensions (1)
Comparers\StringKeyComparer.cs (1)
43return string.Compare(GetKey(x), GetKey(y), StringComparison.Ordinal);
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
645builder.Sort(static (x, y) => string.Compare(x.typeName, y.typeName, StringComparison.OrdinalIgnoreCase));
Emit\NoPia\EmbeddedTypesManager.cs (2)
180int result = string.Compare(dx.NamespaceName, dy.NamespaceName, StringComparison.Ordinal); 184result = string.Compare(dx.Name, dy.Name, StringComparison.Ordinal);
PEWriter\NativeResourceWriter.cs (1)
161return String.Compare(xString, yString, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Analyzers (1)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (1)
379string.Compare(entriesToAdd.First(), lineText, StringComparison.OrdinalIgnoreCase) <= 0)
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourceAssemblySymbol.cs (2)
801else if (String.Compare(_compilation.Options.CryptoKeyContainer, assemblyKeyContainerAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0) 848else if (String.Compare(_compilation.Options.CryptoKeyFile, assemblyKeyFileAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
397comparisonResult = string.Compare(x.ValueText, y.ValueText, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Rename\CSharpRenameRewriterLanguageService.cs (5)
954string.Compare(renameSymbol.Name, "Current", StringComparison.OrdinalIgnoreCase) == 0; 959(string.Compare(renameSymbol.Name, WellKnownMemberNames.MoveNextMethodName, StringComparison.OrdinalIgnoreCase) == 0 || 960string.Compare(renameSymbol.Name, WellKnownMemberNames.GetEnumeratorMethodName, StringComparison.OrdinalIgnoreCase) == 0 || 961string.Compare(renameSymbol.Name, WellKnownMemberNames.GetAwaiter, StringComparison.OrdinalIgnoreCase) == 0 || 962string.Compare(renameSymbol.Name, WellKnownMemberNames.DeconstructMethodName, StringComparison.OrdinalIgnoreCase) == 0));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
397comparisonResult = string.Compare(x.ValueText, y.ValueText, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\MemberAndDeclarationInfo.cs (1)
262var comp = string.Compare(x.DisplayName, y.DisplayName, StringComparison.Ordinal);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\MemberAndDeclarationInfo.cs (1)
262var comp = string.Compare(x.DisplayName, y.DisplayName, StringComparison.Ordinal);
Microsoft.CodeAnalysis.Remote.Workspaces (2)
VisualStudioMefHostServices.cs (2)
85=> string.Compare(ExtensionTypeName, other.ExtensionTypeName, StringComparison.OrdinalIgnoreCase) == 0 && 86string.Compare(MetadataTypeName, other.MetadataTypeName, StringComparison.OrdinalIgnoreCase) == 0;
Microsoft.CodeAnalysis.VisualBasic (1)
Declarations\SingleNamespaceDeclaration.vb (1)
90Dim comp = String.Compare(bestDeclarationName, otherName, StringComparison.Ordinal)
Microsoft.CodeAnalysis.Workspaces (2)
Rename\IRenameRewriterLanguageService.cs (1)
142param => string.Compare(param.Name, newPropertyName, StringComparison.OrdinalIgnoreCase) == 0);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
68string.Compare(TrimNameToAfterLastDot(referencedSymbol.Name), TrimNameToAfterLastDot(originalSymbol.Name), StringComparison.OrdinalIgnoreCase) == 0 &&
Microsoft.CodeAnalysis.Workspaces.Desktop (2)
Workspace\Host\Mef\MefV1HostServices.cs (2)
125return string.Compare(this.ExtensionTypeName, other.ExtensionTypeName, StringComparison.OrdinalIgnoreCase) == 0 126&& string.Compare(this.MetadataTypeName, other.MetadataTypeName, StringComparison.OrdinalIgnoreCase) == 0;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
MSBuild\ProjectFile\ProjectFile.cs (3)
438item = references.FirstOrDefault(it => string.Compare(it.EvaluatedInclude, shortAssemblyName, StringComparison.OrdinalIgnoreCase) == 0); 443item = references.FirstOrDefault(it => string.Compare(it.EvaluatedInclude, fullAssemblyName, StringComparison.OrdinalIgnoreCase) == 0); 523item ??= references.First(it => string.Compare(projectName, it.GetMetadataValue(MetadataNames.Name), StringComparison.OrdinalIgnoreCase) == 0);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
WorkspaceExtensions.cs (1)
55=> solution.Projects.Where(p => string.Compare(p.Name, name, StringComparison.OrdinalIgnoreCase) == 0);
Workspaces\TestWorkspace_XmlConsumption.cs (1)
136if (string.Compare(projectFilePath, NullFilePath, StringComparison.Ordinal) == 0)
Microsoft.Data.Analysis (1)
TextFieldParser.cs (1)
1044if (token != string.Empty && (_hasFieldsEnclosedInQuotes && (_textFieldType == FieldType.Delimited)) && string.Compare(token.Trim(), "\"", StringComparison.Ordinal) == 0)
Microsoft.Data.Analysis.Tests (1)
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
1044if (token != string.Empty && (_hasFieldsEnclosedInQuotes && (_textFieldType == FieldType.Delimited)) && string.Compare(token.Trim(), "\"", StringComparison.Ordinal) == 0)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Utilities\IterationNameComparer.cs (1)
28return string.Compare(first, second, StringComparison.Ordinal);
Microsoft.Extensions.Compliance.Abstractions (2)
Classification\DataClassificationSet.cs (2)
117var result = string.Compare(x.TaxonomyName, y.TaxonomyName, StringComparison.Ordinal); 118return result != 0 ? result : string.Compare(x.Value, y.Value, StringComparison.Ordinal);
Microsoft.Maui.Controls (4)
GridLengthTypeConverter.cs (2)
26 if (string.Compare(strValue, "auto", StringComparison.OrdinalIgnoreCase) == 0) 28 if (string.Compare(strValue, "*", StringComparison.OrdinalIgnoreCase) == 0)
Layout\BoundsTypeConverter.cs (2)
35 if (!hasW && xywh.Length == 4 && string.Compare("AutoSize", xywh[2].Trim(), StringComparison.OrdinalIgnoreCase) == 0) 41 if (!hasH && xywh.Length == 4 && string.Compare("AutoSize", xywh[3].Trim(), StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.Maui.Controls.Build.Tasks (2)
CompiledConverters\BoundsTypeConverter.cs (2)
33 if (!hasW && xywh.Length == 4 && string.Compare("AutoSize", xywh[2].Trim(), StringComparison.OrdinalIgnoreCase) == 0) 39 if (!hasH && xywh.Length == 4 && string.Compare("AutoSize", xywh[3].Trim(), StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.Maui.Controls.DesignTools (4)
BoundsDesignTypeConverter.cs (2)
23 if (!hasW && xywh.Length == 4 && string.Compare("AutoSize", xywh[2].Trim(), StringComparison.OrdinalIgnoreCase) == 0) 28 if (!hasH && xywh.Length == 4 && string.Compare("AutoSize", xywh[3].Trim(), StringComparison.OrdinalIgnoreCase) == 0)
GridLengthDesignTypeConverter.cs (2)
25 if (string.Compare(value, "auto", StringComparison.OrdinalIgnoreCase) == 0) 27 if (string.Compare(value, "*", StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.Maui.Controls.Xaml (2)
XamlLoader.cs (2)
324 string.Compare(info.FileName, filename, StringComparison.OrdinalIgnoreCase) == 0) 333 string.Compare(resource, filename, StringComparison.OrdinalIgnoreCase) == 0)
PresentationCore (1)
MS\Internal\FontCache\FontCacheUtil.cs (1)
941return string.Compare(x._language.IetfLanguageTag, y._language.IetfLanguageTag, StringComparison.OrdinalIgnoreCase);
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
397comparisonResult = string.Compare(x.ValueText, y.ValueText, StringComparison.OrdinalIgnoreCase);
RunTests (1)
AssemblyInfo.cs (1)
18return string.Compare(this.AssemblyPath, other.AssemblyPath, StringComparison.Ordinal);
Security.TransportSecurity.IntegrationTests (3)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (3)
35bool shouldCallSucceed = string.Compare(localhostEndpointUri.Host, "localhost", StringComparison.OrdinalIgnoreCase) == 0; 112bool shouldCallSucceed = domainNameEndpointUri.Host.IndexOf('.') == -1 && string.Compare(domainNameEndpointUri.Host, "localhost", StringComparison.OrdinalIgnoreCase) != 0; 193if (string.Compare(domainNameHost, fqdnEndpointUri.Host, StringComparison.OrdinalIgnoreCase) != 0)
Swaggatherer (1)
SwaggathererApplication.cs (1)
230return string.Compare(x.Template.TemplateText, y.Template.TemplateText, StringComparison.Ordinal);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReferenceConverter.cs (1)
205return string.Compare(itemName1, itemName2, StringComparison.InvariantCulture);
System.Data.Common (3)
System\Data\XDRSchema.cs (2)
227public int CompareTo(object? obj) { return string.Compare(name, (string?)obj, StringComparison.Ordinal); } 508int bZeroOrMore = string.Compare(occurs, Keywords.STAR, StringComparison.Ordinal);
System\Data\XMLSchema.cs (1)
1781public int CompareTo(object? obj) { return string.Compare(name, (string?)obj, StringComparison.Ordinal); }
System.Data.Odbc (2)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (2)
519if (0 > string.Compare(_normalizedServerVersion, (string)version, StringComparison.OrdinalIgnoreCase)) 538if (0 < string.Compare(_normalizedServerVersion, (string)version, StringComparison.OrdinalIgnoreCase))
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\ActivitySource.cs (1)
56tagList.Sort((left, right) => string.Compare(left.Key, right.Key, StringComparison.Ordinal));
System\Diagnostics\Metrics\Instrument.cs (1)
76tagList.Sort((left, right) => string.Compare(left.Key, right.Key, StringComparison.Ordinal));
System\Diagnostics\Metrics\Meter.cs (1)
82tagList.Sort((left, right) => string.Compare(left.Key, right.Key, StringComparison.Ordinal));
System.IO.Packaging (2)
System\IO\Packaging\PackUriHelper.cs (1)
858return string.Compare(
System\IO\Packaging\ZipPackagePartPiece.cs (1)
196int result = string.Compare(PrefixName, other.PrefixName, StringComparison.OrdinalIgnoreCase);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (3)
181return Compare(strA, strB, StringComparison.CurrentCulture); 192return Compare(strA, strB, comparisonType); 504return Compare(this, strB, StringComparison.CurrentCulture);
System.Private.DataContractSerialization (1)
System\Xml\StringHandle.cs (1)
282return string.Compare(this.GetString(), that.GetString(), StringComparison.Ordinal);
System.Private.Uri (2)
System\UriExt.cs (2)
399return uri1.IsAbsoluteUri ? 1 : uri2.IsAbsoluteUri ? -1 : string.Compare(uri1.OriginalString, 402return string.Compare(
System.Private.Xml (11)
System\Xml\Core\XmlTextReaderImplHelpers.cs (2)
779int result = string.Compare(localName, localName2, StringComparison.Ordinal); 785return string.Compare(prefix, prefix2, StringComparison.Ordinal);
System\Xml\Schema\DataTypeImplementation.cs (2)
742public int CompareTo(object? obj) { return string.Compare(_name, (string?)obj, StringComparison.Ordinal); } 1372return string.Compare(value1.ToString(), value2.ToString(), StringComparison.Ordinal);
System\Xml\Serialization\SchemaObjectWriter.cs (5)
22int ns = string.Compare(a1.NamespaceURI, a2.NamespaceURI, StringComparison.Ordinal); 25return string.Compare(a1.Name, a2.Name, StringComparison.Ordinal); 37return string.Compare($"{f1.GetType().Name}:{f1.Value}", $"{f2.GetType().Name}:{f2.Value}", StringComparison.Ordinal); 47int ns = string.Compare(qn1.Namespace, qn2.Namespace, StringComparison.Ordinal); 50return string.Compare(qn1.Name, qn2.Name, StringComparison.Ordinal);
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1792return string.Compare(e1.ToString(string.Empty), e2.ToString(string.Empty), StringComparison.Ordinal);
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
50return string.Compare(baseUri, nextbaseUri, StringComparison.Ordinal);
System.ServiceModel.Http (21)
System\ServiceModel\Channels\HttpChannelFactory.cs (15)
482if (string.Compare(via.Scheme, "ws", StringComparison.OrdinalIgnoreCase) != 0) 1179if (string.Compare(name, "accept", StringComparison.OrdinalIgnoreCase) == 0) 1183else if (string.Compare(name, "connection", StringComparison.OrdinalIgnoreCase) == 0) 1194else if (string.Compare(name, "SOAPAction", StringComparison.OrdinalIgnoreCase) == 0) 1202if (!String.IsNullOrEmpty(value) && string.Compare(value, action, StringComparison.Ordinal) != 0) 1209else if (string.Compare(name, "content-length", StringComparison.OrdinalIgnoreCase) == 0) 1213else if (string.Compare(name, "content-type", StringComparison.OrdinalIgnoreCase) == 0) 1217else if (string.Compare(name, "expect", StringComparison.OrdinalIgnoreCase) == 0) 1228else if (string.Compare(name, "referer", StringComparison.OrdinalIgnoreCase) == 0) 1234else if (string.Compare(name, "transfer-encoding", StringComparison.OrdinalIgnoreCase) == 0) 1245else if (string.Compare(name, "user-agent", StringComparison.OrdinalIgnoreCase) == 0) 1249else if (string.Compare(name, "if-modified-since", StringComparison.OrdinalIgnoreCase) == 0) 1262else if (string.Compare(name, "date", StringComparison.OrdinalIgnoreCase) == 0) 1266else if (string.Compare(name, "proxy-connection", StringComparison.OrdinalIgnoreCase) == 0) 1270else if (string.Compare(name, "range", StringComparison.OrdinalIgnoreCase) == 0)
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
364if (string.Compare(statusDescription, HttpChannelUtilities.StatusDescriptionStrings.HttpContentTypeMissing, StringComparison.OrdinalIgnoreCase) == 0)
System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
95if (string.Compare(via.Scheme, "wss", StringComparison.OrdinalIgnoreCase) != 0)
System\ServiceModel\Channels\MessageContent.cs (4)
68if (string.Compare(name, "SOAPAction", StringComparison.OrdinalIgnoreCase) == 0) 76if (!String.IsNullOrEmpty(value) && string.Compare(value, action, StringComparison.Ordinal) != 0) 83else if (string.Compare(name, "content-type", StringComparison.OrdinalIgnoreCase) == 0) 109if (string.Compare(value, action, StringComparison.Ordinal) != 0)
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\NetFramingTransportChannelFactory.cs (1)
372if (string.Compare(via.Scheme, Scheme, StringComparison.OrdinalIgnoreCase) != 0)
System.ServiceModel.Primitives (48)
Internals\System\Xml\XmlMtomReader.cs (9)
200if (string.Compare(MtomGlobals.MediaType, header.MediaType, StringComparison.OrdinalIgnoreCase) != 0 201|| string.Compare(MtomGlobals.MediaSubtype, header.MediaSubtype, StringComparison.OrdinalIgnoreCase) != 0) 225if (string.Compare(MtomGlobals.XopMediaType, header.MediaType, StringComparison.OrdinalIgnoreCase) != 0 226|| string.Compare(MtomGlobals.XopMediaSubtype, header.MediaSubtype, StringComparison.OrdinalIgnoreCase) != 0) 236if (string.Compare(charset, expectedEncodings[i].WebName, StringComparison.OrdinalIgnoreCase) == 0) 245if (string.Compare(charset, "utf-16LE", StringComparison.OrdinalIgnoreCase) == 0) 249if (string.Compare(expectedEncodings[i].WebName, Encoding.Unicode.WebName, StringComparison.OrdinalIgnoreCase) == 0) 256else if (string.Compare(charset, "utf-16BE", StringComparison.OrdinalIgnoreCase) == 0) 260if (string.Compare(expectedEncodings[i].WebName, Encoding.BigEndianUnicode.WebName, StringComparison.OrdinalIgnoreCase) == 0)
Internals\System\Xml\XmlMtomWriter.cs (3)
194if (string.Compare(name, Encoding.UTF8.WebName, StringComparison.OrdinalIgnoreCase) == 0) 196if (string.Compare(name, Encoding.Unicode.WebName, StringComparison.OrdinalIgnoreCase) == 0) 198if (string.Compare(name, Encoding.BigEndianUnicode.WebName, StringComparison.OrdinalIgnoreCase) == 0)
System\ServiceModel\Channels\FaultConverter.cs (14)
95if (string.Compare(fault.Code.Namespace, _version.Envelope.Namespace, StringComparison.Ordinal) == 0 96&& string.Compare(fault.Code.Name, MessageStrings.MustUnderstandFault, StringComparison.Ordinal) == 0) 132if (string.Compare(code.Namespace, _version.Addressing.Namespace, StringComparison.Ordinal) == 0) 134if (string.Compare(code.Name, AddressingStrings.ActionNotSupported, StringComparison.Ordinal) == 0) 139else if (string.Compare(code.Name, AddressingStrings.DestinationUnreachable, StringComparison.Ordinal) == 0) 144else if (string.Compare(code.Name, Addressing10Strings.InvalidAddressingHeader, StringComparison.Ordinal) == 0) 146if (code.SubCode != null && string.Compare(code.SubCode.Namespace, _version.Addressing.Namespace, StringComparison.Ordinal) == 0 && 147string.Compare(code.SubCode.Name, Addressing10Strings.InvalidCardinality, StringComparison.Ordinal) == 0) 155if (string.Compare(code.Name, Addressing10Strings.MessageAddressingHeaderRequired, StringComparison.Ordinal) == 0) 160else if (string.Compare(code.Name, Addressing10Strings.InvalidAddressingHeader, StringComparison.Ordinal) == 0) 168if (string.Compare(code.Name, Addressing200408Strings.MessageInformationHeaderRequired, StringComparison.Ordinal) == 0) 173else if (string.Compare(code.Name, Addressing200408Strings.InvalidMessageInformationHeader, StringComparison.Ordinal) == 0) 185if (string.Compare(code.Namespace, _version.Addressing.Namespace, StringComparison.Ordinal) == 0) 187if (string.Compare(code.Name, AddressingStrings.EndpointUnavailable, StringComparison.Ordinal) == 0)
System\ServiceModel\Channels\MessageFault.cs (7)
153if (String.Compare(code.Name, MessageStrings.MustUnderstandFault, StringComparison.Ordinal) != 0) 158if ((String.Compare(code.Namespace, EnvelopeVersion.Soap11.Namespace, StringComparison.Ordinal) != 0) && 159(String.Compare(code.Namespace, EnvelopeVersion.Soap12.Namespace, StringComparison.Ordinal) != 0)) 262if ((String.Compare(headerInfo.Name, Message12Strings.NotUnderstood, StringComparison.Ordinal) == 0) && 263(String.Compare(headerInfo.Namespace, Message12Strings.Namespace, StringComparison.Ordinal) == 0)) 275(String.Compare(name, actualName, StringComparison.Ordinal) == 0) && 276(String.Compare(ns, actualNamespace, StringComparison.Ordinal) == 0))
System\ServiceModel\Channels\ServiceChannel.cs (7)
1051if (string.Compare(code.Namespace, FaultCodeConstants.Namespaces.NetDispatch, StringComparison.Ordinal) == 0) 1053if (string.Compare(code.Name, FaultCodeConstants.Codes.SessionTerminated, StringComparison.Ordinal) == 0) 1060if (string.Compare(code.Namespace, SecurityVersion.Default.HeaderNamespace.Value, StringComparison.Ordinal) == 0) 1062if (string.Compare(code.Name, SecurityVersion.Default.FailedAuthenticationFaultCode.Value, StringComparison.Ordinal) == 0) 1071if (string.Compare(code.Namespace, FaultCodeConstants.Namespaces.NetDispatch, StringComparison.Ordinal) == 0) 1073if (string.Compare(code.Name, FaultCodeConstants.Codes.InternalServiceFault, StringComparison.Ordinal) == 0) 1086if (string.Compare(code.Name, FaultCodeConstants.Codes.DeserializationFailed, StringComparison.Ordinal) == 0)
System\ServiceModel\Channels\TransportChannelFactory.cs (1)
164if (string.Compare(via.Scheme, Scheme, StringComparison.OrdinalIgnoreCase) != 0)
System\ServiceModel\Description\TypeLoader.cs (2)
662int nsCmp = string.Compare(a.Namespace, b.Namespace, StringComparison.Ordinal); 668return string.Compare(a.Name, b.Name, StringComparison.Ordinal);
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
174return string.Compare(_key, a._key, StringComparison.Ordinal);
System\ServiceModel\Dispatcher\ErrorBehavior.cs (2)
111string.Compare(e.Fault.Code.SubCode.Namespace, FaultCodeConstants.Namespaces.NetDispatch, StringComparison.Ordinal) == 0 && 112string.Compare(e.Fault.Code.SubCode.Name, FaultCodeConstants.Codes.InternalServiceFault, StringComparison.Ordinal) == 0)
System\ServiceModel\EndpointAddress.cs (2)
337if (string.Compare(u1.Host, u2.Host, StringComparison.OrdinalIgnoreCase) != 0) 343if (string.Compare(u1.AbsolutePath, u2.AbsolutePath, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0)
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexCharClass.cs (2)
334Debug.Assert(string.Compare(s_propTable[i][0], s_propTable[i + 1][0], StringComparison.Ordinal) < 0, $"RegexCharClass s_propTable is out of order at ({s_propTable[i][0]}, {s_propTable[i + 1][0]})"); 1964int res = string.Compare(capname, s_propTable[mid][0], StringComparison.Ordinal);
System.Text.RegularExpressions.Generator (2)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (2)
334Debug.Assert(string.Compare(s_propTable[i][0], s_propTable[i + 1][0], StringComparison.Ordinal) < 0, $"RegexCharClass s_propTable is out of order at ({s_propTable[i][0]}, {s_propTable[i + 1][0]})"); 1964int res = string.Compare(capname, s_propTable[mid][0], StringComparison.Ordinal);
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\CommonDialogs\SpecialFolderEnumConverter.SpecialFolderEnumComparer.cs (1)
16return string.Compare(a?.ToString(), b?.ToString(), StringComparison.InvariantCulture);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\MaskDescriptorComparer.cs (1)
62int retVal = string.Compare(textA, textB, StringComparison.CurrentCulture);