87 references to CompareOrdinal
dotnet-svcutil-lib (21)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImplHelpers.cs (2)
698return string.CompareOrdinal(ns, other.ns); 703return string.CompareOrdinal(localName, other.localName);
FrameworkFork\Microsoft.Xml\Xml\XmlQualifiedName.cs (2)
238int i = String.CompareOrdinal(a.Namespace, b.Namespace); 241i = String.CompareOrdinal(a.Name, b.Name);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CompiledXpathExpr.cs (1)
148return string.CompareOrdinal(baseUri, nextbaseUri);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Query.cs (1)
174int cmpBase = string.CompareOrdinal(baseUriL, baseUriR);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (5)
1133&& String.CompareOrdinal(membersInHierarchy[endIndex].member.Name, membersInHierarchy[endIndex + 1].member.Name) == 0 1134&& String.CompareOrdinal(membersInHierarchy[endIndex].ns, membersInHierarchy[endIndex + 1].ns) == 0) 1443int nsCompare = String.CompareOrdinal(x.ns, y.ns); 1447int nameCompare = String.CompareOrdinal(x.member.Name, y.member.Name); 1499return String.CompareOrdinal(x.Name, y.Name);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
790if (string.CompareOrdinal(name, decodedName) == 0) 793return (string.CompareOrdinal(name, reencodedName) == 0) ? decodedName : name;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (1)
738if (String.CompareOrdinal(KeyName, ValueName) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeader.cs (1)
83if (string.CompareOrdinal(hdr1, hdr2) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (1)
931if (String.CompareOrdinal(operation.ReplyAction, rpc.Reply.Headers.Action) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (2)
678int i = String.CompareOrdinal(p1.Namespace, p2.Namespace); 681i = String.CompareOrdinal(p1.Name, p2.Name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
171{ return string.CompareOrdinal(x.Action, y.Action); }
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (1)
405return (String.CompareOrdinal(message.Headers.Action, action) == 0);
Shared\MSBuildProj.cs (1)
391if (string.IsNullOrEmpty(projectName) || string.CompareOrdinal(projectExtension.ToLowerInvariant(), ".csproj") != 0)
Microsoft.CodeAnalysis (4)
CommandLine\SarifV1ErrorLogger.cs (1)
297list.Sort((x, y) => string.CompareOrdinal(x.Key, y.Key));
InternalUtilities\EnumField.cs (1)
78? string.CompareOrdinal(field1.Name, field2.Name)
MetadataReader\PEModule.cs (1)
740result = string.CompareOrdinal(left.Key, right.Key);
SwitchConstantValueHelper.cs (1)
90return string.CompareOrdinal(first.StringValue, second.StringValue);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderDiagnosticAnalyzer.cs (1)
97if (string.CompareOrdinal(reformattedCopyrightTextParts[i].Trim(), fileHeaderCopyrightTextParts[i].Trim()) != 0)
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Symbols.cs (1)
1933if (snd.Name != fst.Name) return string.CompareOrdinal(fst.Name, snd.Name);
Binder\Binder_TupleOperators.cs (1)
298bool different = string.CompareOrdinal(rightName, leftName) != 0;
BoundTree\UnboundLambda.cs (1)
1427int argCompare = string.CompareOrdinal(argx?.ToString(), argy?.ToString());
Compilation\LexicalOrderSymbolComparer.cs (1)
50comparison = string.CompareOrdinal(x.Name, y.Name);
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
783result = string.CompareOrdinal(x.TypeDescriptorKey, y.TypeDescriptorKey);
Symbols\Source\SourceAssemblySymbol.cs (1)
1130int result = String.CompareOrdinal(x.Name, y.Name);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
435if (string.CompareOrdinal(p.Name, name) == 0)
Symbols\Tuples\TupleTypeSymbol.cs (2)
297if (sourceName != null && !wasInferred && (allMissing || string.CompareOrdinal(destinationNames[i], sourceName) != 0)) 866mergedNames = names1.ZipAsArray(names2, (n1, n2) => string.CompareOrdinal(n1, n2) == 0 ? n1 : null)!;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\NumericIntPtrTests.cs (1)
78return string.CompareOrdinal(normalizeDisplayString(x), normalizeDisplayString(y));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.cs (1)
663return string.CompareOrdinal(normalizeDisplayString(x), normalizeDisplayString(y));
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (1)
78? string.CompareOrdinal(field1.Name, field2.Name)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (1)
78? string.CompareOrdinal(field1.Name, field2.Name)
Microsoft.CodeAnalysis.Features (3)
CodeFixes\Service\CodeFixService.cs (1)
282diagnosticList.Sort(static (d1, d2) => DiagnosticId.CompareOrdinal(d1.Id, d2.Id));
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
2436var result = string.CompareOrdinal(x.filePath, y.filePath);
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderDiagnosticAnalyzer.cs (1)
97if (string.CompareOrdinal(reformattedCopyrightTextParts[i].Trim(), fileHeaderCopyrightTextParts[i].Trim()) != 0)
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\DocumentationComments\DocumentationCommentWalker.vb (1)
196If candidateId IsNot Nothing AndAlso (smallestSymbolCommentId Is Nothing OrElse String.CompareOrdinal(smallestSymbolCommentId, candidateId) > 0) Then
Symbols\Tuples\TupleTypeSymbol.vb (1)
1128If sourceName IsNot Nothing AndAlso Not wasInferred AndAlso (allMissing OrElse String.CompareOrdinal(destinationNames(i), sourceName) <> 0) Then
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (1)
78? string.CompareOrdinal(field1.Name, field2.Name)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
MEF\TestComposition.cs (3)
36_assemblies = [.. assemblies.OrderBy((a, b) => string.CompareOrdinal(a.FullName, b.FullName))]; 37_parts = [.. parts.OrderBy((a, b) => string.CompareOrdinal(a.FullName, b.FullName))]; 38_excludedPartTypes = [.. excludedPartTypes.OrderBy((a, b) => string.CompareOrdinal(a.FullName, b.FullName))];
Microsoft.Extensions.Diagnostics (2)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
60int compareResult = string.CompareOrdinal(pair.Key, pair1.Key); 99int compareResult = string.CompareOrdinal(pair.Key, pair1.Key);
Microsoft.Maui.Controls (1)
TypedBinding.cs (1)
502 if (!string.IsNullOrEmpty(e.PropertyName) && string.CompareOrdinal(e.PropertyName, PropertyName) != 0)
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (1)
123int cmp = string.CompareOrdinal(typeShortName, probeType.Name);
PresentationFramework (1)
System\Windows\Markup\BamlMapTable.cs (1)
123int cmp = string.CompareOrdinal(typeShortName, probeType.Name);
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\ActivityLevel.cs (1)
77_children.Sort(new Comparison<ActivityLevel>((a, b) => string.CompareOrdinal(a.Name, b.Name)));
System.ComponentModel.TypeConverter (1)
System\Drawing\ColorConverter.cs (1)
149public int Compare(Color left, Color right) => string.CompareOrdinal(left.Name, right.Name);
System.Diagnostics.DiagnosticSource (3)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
60int compareResult = string.CompareOrdinal(pair.Key, pair1.Key); 99int compareResult = string.CompareOrdinal(pair.Key, pair1.Key);
System\Diagnostics\Metrics\AggregatorStore.cs (1)
335Array.Sort(instructions, (LabelInstruction a, LabelInstruction b) => string.CompareOrdinal(a.LabelName, b.LabelName));
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (2)
50return string.CompareOrdinal(sa, sb); 55return string.CompareOrdinal(a, b);
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (2)
346return string.CompareOrdinal(x, y); 443public override int Compare(string? x, string? y) => string.CompareOrdinal(x, y);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
920return comparison == 0 ? string.CompareOrdinal(x.DisplayName, y.DisplayName) : comparison;
System.Private.CoreLib.Generators (1)
NativeRuntimeEventSourceGenerator.cs (1)
267if (!latestEventVersions.TryGetValue(eventId, out string? existingVersion) || string.CompareOrdinal(version, existingVersion) > 0)
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\ClassDataContract.cs (3)
1295int nsCompare = string.CompareOrdinal(x._ns, y._ns); 1299int nameCompare = string.CompareOrdinal(x._member.Name, y._member.Name); 1489return string.CompareOrdinal(x.Name, y.Name);
System.Private.Xml (7)
System\Xml\Core\XmlTextReaderImplHelpers.cs (2)
693return string.CompareOrdinal(ns, other.ns); 698return string.CompareOrdinal(localName, other.localName);
System\Xml\XPath\Internal\CompiledXPathExpr.cs (1)
149return string.CompareOrdinal(baseUri, nextbaseUri);
System\Xml\XPath\Internal\Query.cs (1)
165int cmpBase = string.CompareOrdinal(baseUriL, baseUriR);
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
5454cmp = string.CompareOrdinal((string)litLeft, (string)litRight);
System\Xml\Xsl\Xslt\Compiler.cs (2)
397result = string.CompareOrdinal(x.ErrorNumber, y.ErrorNumber); 401return string.CompareOrdinal(x.ErrorText, y.ErrorText);
System.Reflection.Metadata (1)
System\Reflection\Metadata\MetadataReader.WinMD.cs (1)
200Debug.Assert(string.CompareOrdinal(keys[i], keys[i + 1]) < 0);
System.Resources.Extensions (2)
src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (2)
50return string.CompareOrdinal(sa, sb); 55return string.CompareOrdinal(a, b);
System.Resources.Writer (1)
System\Resources\__FastResourceComparer.cs (1)
38return string.CompareOrdinal(a, b);
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\AttributeSortOrder.cs (2)
20int namespaceCompare = string.CompareOrdinal(nodeA.NamespaceURI, nodeB.NamespaceURI); 22return string.CompareOrdinal(nodeA.LocalName, nodeB.LocalName);
System\Security\Cryptography\Xml\NamespaceSortOrder.cs (1)
24return string.CompareOrdinal(nodeA.LocalName, nodeB.LocalName);
System.ServiceModel.Primitives (4)
System\ServiceModel\Channels\AddressHeader.cs (1)
94if (string.CompareOrdinal(hdr1, hdr2) != 0)
System\ServiceModel\Channels\ServiceChannel.cs (1)
934if (String.CompareOrdinal(operation.ReplyAction, rpc.Reply.Headers.Action) != 0)
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
188{ return string.CompareOrdinal(x.Action, y.Action); }
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (1)
390return (String.CompareOrdinal(message.Headers.Action, action) == 0);
System.Xaml (2)
System\Xaml\XamlObjectReader.cs (2)
2257return string.CompareOrdinal(xProperty.Name, yProperty.Name); 2317return string.CompareOrdinal(xProperty.Name, yProperty.Name);