Implemented interface member:
method
CompareTo
System.IComparable<T>.CompareTo(T)
57 references to CompareTo
aspire (1)
Projects\ProjectLocator.cs (1)
85appHostProjects.Sort((x, y) => x.FullName.CompareTo(y.FullName));
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\Core\util\TernaryTreeGenerator.cs (2)
306if (s_htmlElements[i - 1].nameHTML.CompareTo(s_htmlElements[i].nameHTML) > 0) 327if (s_htmlAttributes[i - 1].nameHTML.CompareTo(s_htmlAttributes[i].nameHTML) > 0)
FrameworkFork\System.Runtime.Serialization\System\Xml\PrefixHandle.cs (1)
178return GetString().CompareTo(that.GetString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DirectionalAction.cs (1)
67return _action.CompareTo(other._action);
GenerateDocumentationAndConfigFiles (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
215: -x.field.Name.CompareTo(y.field.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
168: f1.Name.CompareTo(f2.Name);
Metrics (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
Metrics.Legacy (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
Microsoft.Cci.Extensions (1)
Comparers\TypeDefinitionComparer.cs (1)
17: xName.CompareTo(yName);
Microsoft.CodeAnalysis (1)
CodeGen\PrivateImplementationDetails.cs (1)
622return x.Name.CompareTo(y.Name);
Microsoft.CodeAnalysis.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
215: -x.field.Name.CompareTo(y.field.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
168: f1.Name.CompareTo(f2.Name);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
215: -x.field.Name.CompareTo(y.field.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
168: f1.Name.CompareTo(f2.Name);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
215: -x.field.Name.CompareTo(y.field.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
168: f1.Name.CompareTo(f2.Name);
Microsoft.CodeAnalysis.CSharp (1)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
624return x.MetadataName.CompareTo(y.MetadataName);
Microsoft.CodeAnalysis.CSharp.Features (2)
NavigationBar\CSharpNavigationBarItemService.cs (2)
113var textComparison = x.Text.CompareTo(y.Text); 130items.Sort((x1, x2) => x1.Text.CompareTo(x2.Text));
Microsoft.CodeAnalysis.Extensions.Package (1)
Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
Microsoft.CodeAnalysis.Features (1)
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
197(null, null) => i1.NamespaceOrType.ToDisplayString().CompareTo(i2.NamespaceOrType.ToDisplayString()),
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
317=> leftKey.ToString().CompareTo(rightKey.ToString()) is not 0 and var result ? result : leftKind.CompareTo(rightKind);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Diagnostics\PullDiagnosticTests.cs (1)
1476results = results.Sort((x, y) => x.Uri.ToString().CompareTo(y.Uri.ToString()));
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
215: -x.field.Name.CompareTo(y.field.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
168: f1.Name.CompareTo(f2.Name);
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (1)
319result = x.TypeDescriptorKey.CompareTo(y.TypeDescriptorKey)
Microsoft.CodeAnalysis.Workspaces (4)
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
47var comp = names1[i].CompareTo(names2[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
215: -x.field.Name.CompareTo(y.field.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
168: f1.Name.CompareTo(f2.Name);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
1850defines.Sort((x, y) => x.Key.CompareTo(y.Key));
Microsoft.DotNet.Build.Tasks.Packaging (1)
ValidateHarvestVersionIsLatestForRelease.cs (1)
47if (latestPatchVersion.CompareTo(harvestVersion) != 0)
Microsoft.ML.Sweeper (1)
Algorithms\NelderMead.cs (1)
465return x.ParameterSet.ToString().CompareTo(y.ParameterSet.ToString());
Microsoft.ML.TimeSeries (1)
RootCauseAnalyzer.cs (1)
786return DimensionKey.CompareTo(other.DimensionKey);
Microsoft.ML.Transforms (1)
Expression\LambdaBinder.cs (1)
1590if (dup1.Provider.NameSpace.CompareTo(dup2.Provider.NameSpace) > 0)
Microsoft.VisualStudio.LanguageServices (2)
MoveStaticMembers\TypeNameItem.cs (2)
56var comp = xnames[i].CompareTo(ynames[i]); 63return x.DeclarationFileName.CompareTo(y.DeclarationFileName);
Roslyn.Diagnostics.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
215: -x.field.Name.CompareTo(y.field.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
168: f1.Name.CompareTo(f2.Name);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
497return CompareTo(other); // will call the string-based overload
System.Private.DataContractSerialization (1)
System\Xml\PrefixHandle.cs (1)
179return GetString().CompareTo(that.GetString());
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
Text.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
65var comp = name1.CompareTo(name2);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
215: -x.field.Name.CompareTo(y.field.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
168: f1.Name.CompareTo(f2.Name);
UIAutomationClient (1)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
1895if (ProxyManager.GetClassName(hwnd).CompareTo("Progman") == 0)
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\Misc.cs (1)
867if (GetClassName(hwnd).CompareTo("Progman") == 0)