167 implementations of CompareTo
Aspire.Dashboard (1)
Otlp\Storage\ResourceKey.cs (1)
40public int CompareTo(ResourceKey other)
CSharpSyntaxGenerator (1)
Grammar\GrammarGenerator.cs (1)
383public int CompareTo(Production other) => StringComparer.OrdinalIgnoreCase.Compare(this.Text, other.Text);
dotnet (1)
ToolPackage\PackageId.cs (1)
17public int CompareTo(PackageId other)
dotnet-aot (1)
src\sdk\src\Cli\dotnet\ToolPackage\PackageId.cs (1)
17public int CompareTo(PackageId other)
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DirectionalAction.cs (1)
57public int CompareTo(DirectionalAction other)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
165public int CompareTo(Attr a)
Shared\ProjectDependency.cs (1)
395public int CompareTo(ProjectDependency other)
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
ILCompiler.Compiler (4)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (3)
115public int CompareTo(WasmResultType other) => MemoryExtensions.SequenceCompareTo(Types, other.Types); 172public int CompareTo(WasmSignature other) 289public int CompareTo(WasmFuncType other)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (1)
86public int CompareTo(Utf8String other)
ILCompiler.ReadyToRun (4)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (3)
115public int CompareTo(WasmResultType other) => MemoryExtensions.SequenceCompareTo(Types, other.Types); 172public int CompareTo(WasmSignature other) 289public int CompareTo(WasmFuncType other)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (1)
86public int CompareTo(Utf8String other)
ILCompiler.TypeSystem (3)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\FieldLayoutIntervalCalculator.cs (1)
39public int CompareTo(FieldLayoutInterval other)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\GCPointerMap.cs (1)
133public int CompareTo(GCPointerMap other)
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\MethodDesc.Interop.cs (1)
306public int CompareTo(PInvokeFlags other)
illink (3)
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\VirtualChars\VirtualChar.cs (2)
164public int CompareTo(VirtualChar other) 179public int CompareTo(char other)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Utilities\Checksum.cs (1)
88public int CompareTo(Checksum other)
Microsoft.AspNetCore.Routing (2)
Matching\HostMatcherPolicy.cs (1)
433public int CompareTo(EdgeKey other)
Matching\HttpMethodMatcherPolicy.cs (1)
456public int CompareTo(EdgeKey other)
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\ItemBucket.cs (1)
122public int CompareTo(ItemBucket other)
Utilities\SimpleVersion.cs (1)
85public int CompareTo(SimpleVersion other)
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\AssemblyNameReference.cs (1)
29public readonly int CompareTo(AssemblyNameReference other)
Microsoft.CodeAnalysis (6)
CodeGen\DebugId.cs (1)
42public int CompareTo(DebugId other)
Desktop\AssemblyVersion.cs (1)
51public int CompareTo(AssemblyVersion other)
Syntax\AbstractWarningStateMap.cs (1)
89public int CompareTo(WarningStateMapEntry other)
Syntax\LineDirectiveMap.LineMappingEntry.cs (1)
118public int CompareTo(LineMappingEntry other)
Text\LinePosition.cs (1)
136public int CompareTo(LinePosition other)
Text\TextSpan.cs (1)
251public int CompareTo(TextSpan other)
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\ExtensionGroupingInfo.cs (2)
703int IComparable<ExtensionGroupingType>.CompareTo(ExtensionGroupingType? other) 899public int CompareTo(ExtensionMarkerType? other)
Microsoft.CodeAnalysis.Features (4)
Completion\CompletionItem.cs (1)
509int IComparable<CompletionItem>.CompareTo([AllowNull] CompletionItem other)
ExtractMethod\MethodExtractor.VariableInfo.cs (1)
119public int CompareTo(VariableInfo other)
ExtractMethod\MethodExtractor.VariableSymbol.cs (1)
65public int CompareTo(VariableSymbol? other)
FullyQualify\AbstractFullyQualifyService.SymbolResult.cs (1)
46public int CompareTo(SymbolResult other)
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorLanguageVersion.cs (1)
91public int CompareTo(RazorLanguageVersion? other)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.Workspaces (7)
FindSymbols\ReferenceLocation.cs (1)
132public int CompareTo(ReferenceLocation other)
PatternMatching\PatternMatch.cs (1)
62public int CompareTo(PatternMatch other)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
SymbolSearch\ISymbolSearchService.cs (1)
125public int CompareTo(PackageWithAssemblyResult? other)
Workspace\Solution\Checksum.cs (1)
120public int CompareTo(Checksum other)
Workspace\Solution\ProjectId.cs (1)
119int IComparable<ProjectId>.CompareTo(ProjectId? other)
Workspace\Solution\ProjectState.cs (1)
1129public int CompareTo(ProjectState? other)
Microsoft.Deployment.DotNet.Releases (1)
ReleaseVersion.cs (1)
224public int CompareTo(ReleaseVersion other)
Microsoft.DotNet.TemplateLocator (6)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestId.cs (1)
20public int CompareTo(ManifestId other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersion.cs (1)
26public int CompareTo(ManifestVersion? other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersionUpdate.cs (1)
20public int CompareTo(ManifestVersionUpdate? other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (1)
79public int CompareTo(SdkFeatureBand other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadId.cs (1)
24public int CompareTo(WorkloadId other) => string.Compare(_id, other._id, StringComparison.OrdinalIgnoreCase);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadPackId.cs (1)
30public int CompareTo(WorkloadPackId other) => string.Compare(_id, other._id, StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\StringSplit\StringRange.cs (1)
50public int CompareTo(StringRange other) => Index.CompareTo(other.Index);
Microsoft.Maui.Graphics (1)
PaintGradientStop.cs (1)
34 public int CompareTo(PaintGradientStop obj)
Microsoft.ML.AutoML (1)
Sweepers\ISweeper.cs (1)
208public int CompareTo(IRunResult other)
Microsoft.ML.Core (2)
Utilities\HashArray.cs (1)
37public int CompareTo(Entry other)
Utilities\SupervisedBinFinder.cs (1)
37public int CompareTo(ValuePair<T> other)
Microsoft.ML.DataView (1)
DataViewRowId.cs (1)
43public int CompareTo(DataViewRowId other)
Microsoft.ML.FastTree (2)
Training\Test.cs (1)
75public int CompareTo(TestResult o)
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (1)
1186public int CompareTo(SplitInfo other)
Microsoft.ML.Sweeper (1)
ISweeper.cs (1)
244public int CompareTo(IRunResult other)
Microsoft.ML.Tokenizers (5)
Model\CodeGenTokenizer.cs (1)
1817public int CompareTo(SymbolPair other)
Model\Merge.cs (1)
25public int CompareTo(Merge other)
Model\Pair.cs (1)
35public int CompareTo(Pair<T> other)
Model\SentencePieceBpeModel.cs (1)
1237public int CompareTo(SymbolPair other)
Utils\BytePairEncoder.cs (1)
145public int CompareTo(MergeEntry other)
Microsoft.NET.Build.Tasks (6)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestId.cs (1)
20public int CompareTo(ManifestId other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersion.cs (1)
26public int CompareTo(ManifestVersion? other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersionUpdate.cs (1)
20public int CompareTo(ManifestVersionUpdate? other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (1)
79public int CompareTo(SdkFeatureBand other)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadId.cs (1)
24public int CompareTo(WorkloadId other) => string.Compare(_id, other._id, StringComparison.OrdinalIgnoreCase);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadPackId.cs (1)
30public int CompareTo(WorkloadPackId other) => string.Compare(_id, other._id, StringComparison.OrdinalIgnoreCase);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (1)
1312public int CompareTo(StaticWebAsset other)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
Data\StaticWebAsset.cs (1)
1312public int CompareTo(StaticWebAsset other)
Data\StaticWebAssetEndpoint.cs (1)
307public int CompareTo(StaticWebAssetEndpoint other)
Data\StaticWebAssetEndpointProperty.cs (1)
29public int CompareTo(StaticWebAssetEndpointProperty other) => string.CompareOrdinal(Name, other.Name) switch
Data\StaticWebAssetEndpointResponseHeader.cs (1)
49public int CompareTo(StaticWebAssetEndpointResponseHeader other) => string.CompareOrdinal(Name, other.Name) switch
Data\StaticWebAssetEndpointSelector.cs (1)
31public int CompareTo(StaticWebAssetEndpointSelector other)
GenerateStaticWebAssetsDevelopmentManifest.cs (1)
381public readonly int CompareTo(SegmentsAssetPair other)
Microsoft.NET.Sdk.WorkloadManifestReader (6)
ManifestId.cs (1)
20public int CompareTo(ManifestId other)
ManifestVersion.cs (1)
26public int CompareTo(ManifestVersion? other)
ManifestVersionUpdate.cs (1)
20public int CompareTo(ManifestVersionUpdate? other)
SdkFeatureBand.cs (1)
79public int CompareTo(SdkFeatureBand other)
WorkloadId.cs (1)
24public int CompareTo(WorkloadId other) => string.Compare(_id, other._id, StringComparison.OrdinalIgnoreCase);
WorkloadPackId.cs (1)
30public int CompareTo(WorkloadPackId other) => string.Compare(_id, other._id, StringComparison.OrdinalIgnoreCase);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
ObjectModel\TestId.cs (1)
193public int CompareTo(TestId? other)
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
DataCollector\Common\RequestId.cs (1)
110public int CompareTo(RequestId? other)
NuGet.Frameworks (1)
FrameworkRuntimePair.cs (1)
54public int CompareTo(FrameworkRuntimePair? other)
NuGet.LibraryModel (3)
DownloadDependency.cs (1)
38public int CompareTo(DownloadDependency? other)
FrameworkDependency.cs (1)
24public int CompareTo(FrameworkDependency? other)
LibraryIdentity.cs (1)
91public int CompareTo(LibraryIdentity? other)
NuGet.Packaging (3)
Core\FrameworkReference.cs (1)
67public int CompareTo(FrameworkReference? other)
Core\PackageIdentity.cs (1)
81public int CompareTo(PackageIdentity? other)
Core\PackageType.cs (1)
92public int CompareTo(PackageType? other)
NuGet.ProjectModel (2)
ExternalProjectReference.cs (1)
157public int CompareTo(ExternalProjectReference other)
ProjectRestoreMetadataFile.cs (1)
75public int CompareTo(ProjectRestoreMetadataFile? other)
NuGet.Versioning (1)
SemanticVersionBase.cs (1)
95public virtual int CompareTo(SemanticVersion? other)
PresentationCore (2)
MS\Internal\Shaping\OpenTypeLayoutCache.cs (1)
1105public int CompareTo(GlyphLookupRecord value)
MS\Internal\TextFormatting\TextStore.cs (1)
583public int CompareTo(TextEffectBoundary other)
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
sdk-tasks (1)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (1)
79public int CompareTo(SdkFeatureBand other)
System.IO.Packaging (3)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (1)
98int IComparable<PieceStreamInfo>.CompareTo(PieceStreamInfo? pieceStreamInfo)
System\IO\Packaging\PackUriHelper.cs (1)
641int IComparable<ValidatedPartUri>.CompareTo(ValidatedPartUri? otherPartUri)
System\IO\Packaging\ZipPackagePartPiece.cs (1)
178int IComparable<ZipPackagePartPiece>.CompareTo(ZipPackagePartPiece? other)
System.Private.CoreLib (42)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
165public int CompareTo(bool value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
69public int CompareTo(byte value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
171public int CompareTo(char value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
239public int CompareTo(DateOnly value) => _dayNumber.CompareTo(value._dayNumber);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1075public int CompareTo(DateTime value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
557public int CompareTo(DateTimeOffset other) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
430public int CompareTo(decimal value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
277public int CompareTo(double value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
1122public int CompareTo(Guid value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
458public int CompareTo(Half other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
66public int CompareTo(Int128 value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
71public int CompareTo(short value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
84public int CompareTo(int value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
81public int CompareTo(long value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
218public int CompareTo(nint value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
348public int CompareTo(BFloat16 other) => ((float)this).CompareTo((float)other);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
241public int CompareTo(Decimal128 other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
239public int CompareTo(Decimal32 other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
242public int CompareTo(Decimal64 other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
815public int CompareTo(NFloat other) => _value.CompareTo(other._value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
72public int CompareTo(sbyte value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
274public int CompareTo(float value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.BinarySearch.cs (1)
75public int CompareTo(T? other) => _comparer.Compare(_value, other);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
415public int CompareTo(string? strB)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
297public int CompareTo(Rune other) => this.Value - other.Value; // values don't span entire 32-bit domain; won't integer overflow
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
398public int CompareTo(TimeOnly value) => _ticks.CompareTo(value._ticks);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
412public int CompareTo(TimeSpan value) => Compare(this, value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
68public int CompareTo(UInt128 value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
66public int CompareTo(ushort value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
78public int CompareTo(uint value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
78public int CompareTo(ulong value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
214public int CompareTo(nuint value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (9)
80public int CompareTo(ValueTuple other) 340public int CompareTo(ValueTuple<T1> other) 531public int CompareTo(ValueTuple<T1, T2> other) 722public int CompareTo(ValueTuple<T1, T2, T3> other) 929public int CompareTo(ValueTuple<T1, T2, T3, T4> other) 1154public int CompareTo(ValueTuple<T1, T2, T3, T4, T5> other) 1397public int CompareTo(ValueTuple<T1, T2, T3, T4, T5, T6> other) 1658public int CompareTo(ValueTuple<T1, T2, T3, T4, T5, T6, T7> other) 1943public int CompareTo(ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest> other)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
127public int CompareTo(Version? value)
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MappingTables.cs (1)
394public int CompareTo(FunctionPointerOffsetPair other)
System.Private.StackTraceMetadata (1)
Internal\StackTraceMetadata\StackTraceMetadata.cs (1)
545public int CompareTo(StackTraceData other) => Rva.CompareTo(other.Rva);
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (1)
25public int CompareTo(RowCounts other)
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
1383public int CompareTo(BigInteger other)
System.Security.Principal.Windows (1)
System\Security\Principal\SID.cs (1)
862public int CompareTo(SecurityIdentifier? sid)
System.ServiceModel.Primitives (1)
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
172public int CompareTo(Attr a)
System.Speech (4)
Internal\SrgsCompiler\Arc.cs (1)
103public int CompareTo(Arc? obj1)
Internal\SrgsCompiler\Rule.cs (1)
56int IComparable<Rule>.CompareTo(Rule? rule2)
Internal\SrgsCompiler\State.cs (1)
41int IComparable<State>.CompareTo(State? state2)
Internal\SrgsCompiler\Tag.cs (1)
39int IComparable<Tag>.CompareTo(Tag? tag)
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
511public int CompareTo(BDD? other)
System\Text\RegularExpressions\Symbolic\BitVector.cs (1)
193public int CompareTo(BitVector other) =>
216 references to CompareTo
Aspire.Confluent.Kafka (2)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\Guard.cs (2)
190if (value.CompareTo(min) < 0 || value.CompareTo(max) > 0)
Aspire.StackExchange.Redis (2)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (2)
218if (value.CompareTo(min) < 0 || value.CompareTo(max) > 0)
dotnet-Microsoft.XmlSerializer.Generator (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
EventSourceGenerator (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
380order = array[i].CompareTo(value!); 629return left.CompareTo(right) < 0 ? true : false; 663return left.CompareTo(right) > 0 ? true : false; 1180return left.CompareTo(right) < 0 ? true : false; 1214return left.CompareTo(right) > 0 ? true : false;
Microsoft.Bcl.AsyncInterfaces (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
Microsoft.Bcl.Numerics (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
Microsoft.Build (5)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ArraySortHelper.cs (5)
380order = array[i].CompareTo(value!); 629return left.CompareTo(right) < 0 ? true : false; 663return left.CompareTo(right) > 0 ? true : false; 1180return left.CompareTo(right) < 0 ? true : false; 1214return left.CompareTo(right) > 0 ? true : false;
Microsoft.Build.Framework (18)
Assumed.cs (18)
426if (value.CompareTo(other) <= 0) 448if (value.CompareTo(other) <= 0) 464if (value.CompareTo(other) < 0) 486if (value.CompareTo(other) < 0) 502if (value.CompareTo(other) >= 0) 524if (value.CompareTo(other) >= 0) 540if (value.CompareTo(other) > 0) 562if (value.CompareTo(other) > 0) 735if (value.CompareTo(low) < 0 || value.CompareTo(high) > 0) 760if (value.CompareTo(low) < 0 || value.CompareTo(high) > 0) 1143isEnabled = value.CompareTo(other) <= 0; 1175isEnabled = value.CompareTo(other) < 0; 1206isEnabled = value.CompareTo(other) >= 0; 1238isEnabled = value.CompareTo(other) > 0; 1415isEnabled = value.CompareTo(low) < 0 || value.CompareTo(high) > 0;
Microsoft.CodeAnalysis (5)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
380order = array[i].CompareTo(value!); 629return left.CompareTo(right) < 0 ? true : false; 663return left.CompareTo(right) > 0 ? true : false; 1180return left.CompareTo(right) < 0 ? true : false; 1214return left.CompareTo(right) > 0 ? true : false;
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
380order = array[i].CompareTo(value!); 629return left.CompareTo(right) < 0 ? true : false; 663return left.CompareTo(right) > 0 ? true : false; 1180return left.CompareTo(right) < 0 ? true : false; 1214return left.CompareTo(right) > 0 ? true : false;
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
380order = array[i].CompareTo(value!); 629return left.CompareTo(right) < 0 ? true : false; 663return left.CompareTo(right) > 0 ? true : false; 1180return left.CompareTo(right) < 0 ? true : false; 1214return left.CompareTo(right) > 0 ? true : false;
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
380order = array[i].CompareTo(value!); 629return left.CompareTo(right) < 0 ? true : false; 663return left.CompareTo(right) > 0 ? true : false; 1180return left.CompareTo(right) < 0 ? true : false; 1214return left.CompareTo(right) > 0 ? true : false;
Microsoft.CodeAnalysis.Extensions.Package (5)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
380order = array[i].CompareTo(value!); 629return left.CompareTo(right) < 0 ? true : false; 663return left.CompareTo(right) > 0 ? true : false; 1180return left.CompareTo(right) < 0 ? true : false; 1214return left.CompareTo(right) > 0 ? true : false;
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
57return source.OrderBy((t1, t2) => t1.CompareTo(t2));
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
380order = array[i].CompareTo(value!); 629return left.CompareTo(right) < 0 ? true : false; 663return left.CompareTo(right) > 0 ? true : false; 1180return left.CompareTo(right) < 0 ? true : false; 1214return left.CompareTo(right) > 0 ? true : false;
Microsoft.CodeAnalysis.Workspaces (5)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
380order = array[i].CompareTo(value!); 629return left.CompareTo(right) < 0 ? true : false; 663return left.CompareTo(right) > 0 ? true : false; 1180return left.CompareTo(right) < 0 ? true : false; 1214return left.CompareTo(right) > 0 ? true : false;
Microsoft.Extensions.Configuration.Binder.SourceGeneration (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
Microsoft.Extensions.Logging.Generators (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
Microsoft.Interop.ComInterfaceGenerator (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
Microsoft.Interop.JavaScript.JSImportGenerator (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
Microsoft.Interop.LibraryImportGenerator (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
Microsoft.Interop.LibraryImportGenerator.Downlevel (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
Microsoft.Interop.SourceGeneration (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
Microsoft.Maui (3)
Graphics\CompareExtensions.cs (3)
9 if (max.CompareTo(min) < 0) 12 if (value.CompareTo(min) < 0) 15 if (value.CompareTo(max) > 0)
Microsoft.ML.Core (2)
Utilities\HashArray.cs (1)
39return Value.CompareTo(other.Value);
Utilities\SupervisedBinFinder.cs (1)
39return Value.CompareTo(other.Value);
Microsoft.ML.Data (12)
Deprecated\Vector\GenericSpanSortHelper.cs (6)
64if (keys[a] != null && keys[a].CompareTo(keys[b]) > 0) 176while (pivot.CompareTo(keys[++left]) > 0) ; 177while (pivot.CompareTo(keys[--right]) < 0) ; 220if (child < n && (keys[lo + child - 1] == null || keys[lo + child - 1].CompareTo(keys[lo + child]) < 0)) 224if (keys[lo + child - 1] == null || keys[lo + child - 1].CompareTo(d) < 0) 249while (j >= lo && (t == null || t.CompareTo(keys[j]) < 0))
Transforms\NormalizeColumnSng.cs (6)
621if (HasRightChild(index) && GetRightChild(index).CompareTo(GetLeftChild(index)) > 0) 626if (Elements[biggerIndex].CompareTo(Elements[index]) <= 0) 639while (!IsRoot(index) && Elements[index].CompareTo(GetParent(index)) > 0) 664if (HasRightChild(index) && GetRightChild(index).CompareTo(GetLeftChild(index)) < 0) 669if (Elements[smallerIndex].CompareTo(Elements[index]) >= 0) 682while (!IsRoot(index) && Elements[index].CompareTo(GetParent(index)) < 0)
Microsoft.ML.FastTree (11)
Utils\LinqExtensions.cs (11)
20if (arr[i].CompareTo(arr[argMin]) < 0) 33if (span[i].CompareTo(span[argMax]) > 0) 47if (arr[i].CompareTo(arr[argMin]) < 0) 61if (arr[i].CompareTo(arr[argMax]) > 0) 74if (d.CompareTo(max) > 0) 91if (d.CompareTo(max) > 0 && rnd.NextDouble() < fraction) 114if (d.CompareTo(max) > 0) 137if (d.CompareTo(max) > 0 && rnd.NextDouble() < fraction) 154if (d.CompareTo(max) < 0) 177if (d.CompareTo(max) < 0) 228if (e1.Current.CompareTo(e2.Current) <= 0)
Microsoft.ML.Sweeper (9)
Algorithms\NelderMead.cs (9)
183if (_secondWorst.Key.CompareTo(_lastReflectionResult.Key) < 0 && _lastReflectionResult.Key.CompareTo(_best.Key) <= 0) 190if (_lastReflectionResult.Key.CompareTo(_best.Key) > 0) 203else if (_lastReflectionResult.Key.CompareTo(_worst.Key) > 0) 233if (expansionResult.CompareTo(_lastReflectionResult.Key) > 0) 246if (outerContractionResult.CompareTo(_lastReflectionResult.Key) > 0) 265if (innerContractionResult.CompareTo(_worst.Key) > 0) 464if (x.CompareTo(y) == 0) 466return x.CompareTo(y);
Microsoft.ML.Tokenizers (7)
Model\Pair.cs (2)
37int compareFirst = First.CompareTo(other.First); 38return compareFirst == 0 ? Second.CompareTo(other.Second) : compareFirst;
Utils\PriorityQueue.cs (5)
31if (_data[ci].CompareTo(_data[pi]) >= 0) break; // child item is larger than (or equal) parent so we're done 52if (rc <= li && _data[rc].CompareTo(_data[ci]) < 0) // if there is a rc (ci + 1), and it is smaller than left child, use the rc instead 54if (_data[pi].CompareTo(_data[ci]) <= 0) break; // parent is smaller than (or equal to) smallest child so done 90if (lci <= li && _data[pi].CompareTo(_data[lci]) > 0) return false; // if lc exists and it's greater than parent then bad. 91if (rci <= li && _data[pi].CompareTo(_data[rci]) > 0) return false; // check the right child too.
Microsoft.Private.Windows.Core (1)
src\winforms\src\Microsoft.Private.Windows.Polyfills\Exceptions\ArgumentOutOfRangeExtensions.cs (1)
30if (value.CompareTo(other) < 0)
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
380order = array[i].CompareTo(value!); 629return left.CompareTo(right) < 0 ? true : false; 663return left.CompareTo(right) > 0 ? true : false; 1180return left.CompareTo(right) < 0 ? true : false; 1214return left.CompareTo(right) > 0 ? true : false;
System.Collections.Immutable (1)
System\Collections\Immutable\SortedInt32KeyNode.cs (1)
18/// and then an interface call to <see cref="int"/>'s <see cref="IComparable{T}.CompareTo"/> method as part of
System.Configuration.ConfigurationManager (2)
System\Configuration\ValidatorUtils.cs (2)
33bool valueIsInRange = itfValue.CompareTo(min) >= 0; 35if (valueIsInRange && (itfValue.CompareTo(max) > 0))
System.IO.Packaging (1)
System\IO\Packaging\PackUriHelper.cs (1)
153return ((IComparable<ValidatedPartUri>)firstPartUri).CompareTo((ValidatedPartUri)secondPartUri);
System.Private.CoreLib (42)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (4)
183if (value.CompareTo(other) > 0) 194if (value.CompareTo(other) >= 0) 205if (value.CompareTo(other) < 0) 216if (value.CompareTo(other) <= 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (5)
366order = array[i].CompareTo(value); 586return left.CompareTo(right) < 0 ? true : false; 605return left.CompareTo(right) > 0 ? true : false; 1083return left.CompareTo(right) < 0 ? true : false; 1102return left.CompareTo(right) > 0 ? true : false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (1)
62if (y != null) return x.CompareTo(y);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2285if (values[i - 1].CompareTo(values[i]) > 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
65/// <inheritdoc cref="IComparable{T}.CompareTo(T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (4)
1920if (lowInclusive.CompareTo(highInclusive) > 0) 1991if (lowInclusive.CompareTo(highInclusive) > 0) 2062if (lowInclusive.CompareTo(highInclusive) > 0) 2133if (lowInclusive.CompareTo(highInclusive) > 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (9)
1036int comparison = !TValue.IsZero(magnitudeHigh) ? 1 : magnitudeLow.CompareTo(loRetained); 1988discardedComparedToHalf = a.Significand.CompareTo(half); 1999discardedComparedToHalf = discarded.CompareTo(half); 2117discardedComparedToHalf = a.Significand.CompareTo(half); 2125discardedComparedToHalf = discarded.CompareTo(half); 2221discardedComparedToHalf = a.Significand.CompareTo(half); 2231discardedComparedToHalf = discarded.CompareTo(half); 2589int highComparison = leftHigh.CompareTo(rightHigh); 2590return highComparison != 0 ? highComparison : leftLow.CompareTo(rightLow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
240/// <inheritdoc cref="IComparable{T}.CompareTo(T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
238/// <inheritdoc cref="IComparable{T}.CompareTo(T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
241/// <inheritdoc cref="IComparable{T}.CompareTo(T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (3)
107return (TInteger.IsNegative(x) && TInteger.IsNegative(y)) ? y.CompareTo(x) : x.CompareTo(y); 355int payload = xKey.CompareTo(yKey);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.BinarySearch.cs (1)
40int c = comparable.CompareTo(Unsafe.Add(ref spanStart, i));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (9)
1451int result = (Unsafe.Add(ref first, i)?.CompareTo(lookUp) ?? (((object?)lookUp is null) ? 0 : -1)); 3832if ((lowInclusive.CompareTo(current) <= 0) && (highInclusive.CompareTo(current) >= 0)) 3847if ((lowInclusive.CompareTo(current) > 0) || (highInclusive.CompareTo(current) < 0)) 3998if ((lowInclusive.CompareTo(current) <= 0) && (highInclusive.CompareTo(current) >= 0)) 4013if ((lowInclusive.CompareTo(current) > 0) || (highInclusive.CompareTo(current) < 0))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
67/// <inheritdoc cref="IComparable{T}.CompareTo(T)" />
System.Private.CoreLib.Generators (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)
System.Text.RegularExpressions.Generator (4)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (4)
43if (value.CompareTo(other) < 0) 51if (value.CompareTo(other) <= 0) 59if (value.CompareTo(other) > 0) 67if (value.CompareTo(other) >= 0)