146 implementations of CompareTo
Aspire.Dashboard (1)
Otlp\Storage\ApplicationKey.cs (1)
40public int CompareTo(ApplicationKey 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 (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
illink (3)
Metrics (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Metrics.Legacy (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\VirtualChars\VirtualChar.cs (2)
164public int CompareTo(VirtualChar other) 179public int CompareTo(char other)
Microsoft.AspNetCore.Routing (2)
Matching\HostMatcherPolicy.cs (1)
424public int CompareTo(EdgeKey other)
Matching\HttpMethodMatcherPolicy.cs (1)
456public int CompareTo(EdgeKey other)
Microsoft.AspNetCore.Shared.Tests (1)
ClosedGenericMatcherTest.cs (1)
350public int CompareTo(DerivedClassWithComparable 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 (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Utilities\VirtualTreePoint.cs (1)
51public int CompareTo(VirtualTreePoint other)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrMethodId.cs (1)
18public int CompareTo(DkmClrMethodId 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.LanguageServer.Protocol (1)
Protocol\SemanticTokens\SemanticTokensEdit.cs (1)
50public int CompareTo(SemanticTokensEdit? other)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Microsoft.CodeAnalysis.UnitTests (6)
Collections\HashSet\TestingTypes.cs (6)
56public int CompareTo(EquatableBackwardsOrder? other) //backwards from the usual integer ordering 190public int CompareTo(SimpleInt other) 271public int CompareTo(GenericComparable? other) => _value.CompareTo(other?._value); 289public int CompareTo(BadlyBehavingComparable? other) => 1; 307public int CompareTo(MutatingComparable? other) => _state++; 328public int CompareTo(ValueComparable<T> other) =>
Microsoft.CodeAnalysis.Workspaces (9)
FindSymbols\ReferenceLocation.cs (1)
132public int CompareTo(ReferenceLocation other)
PatternMatching\PatternMatch.cs (1)
62public int CompareTo(PatternMatch other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
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)
1137public int CompareTo(ProjectState? other)
Microsoft.DotNet.XUnitAssert.Tests (6)
EqualityAssertsTests.cs (6)
4413 public int CompareTo(ComparableBaseClass? other) => Value.CompareTo(other!.Value); 4437 public int CompareTo(ComparableThrower? other) 4518 public int CompareTo(IntWrapper? other) => Value.CompareTo(other!.Value); 4530 int IComparable<IntWrapper>.CompareTo(IntWrapper? other) => Value.CompareTo(other!.Value); 4542 public int CompareTo(IntWrapper? other) 4591 public int CompareTo(SpyComparable_Generic? other)
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 (4)
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)
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 (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
RunTests (1)
AssemblyInfo.cs (1)
15public int CompareTo(AssemblyInfo other)
System.IO.Packaging (3)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (1)
98int IComparable<PieceStreamInfo>.CompareTo(PieceStreamInfo? pieceStreamInfo)
System\IO\Packaging\PackUriHelper.cs (1)
640int IComparable<ValidatedPartUri>.CompareTo(ValidatedPartUri? otherPartUri)
System\IO\Packaging\ZipPackagePartPiece.cs (1)
183int IComparable<ZipPackagePartPiece>.CompareTo(ZipPackagePartPiece? other)
System.Private.CoreLib (38)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
165public int CompareTo(bool value)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
69public int CompareTo(byte value)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
152public int CompareTo(char value)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
239public int CompareTo(DateOnly value) => _dayNumber.CompareTo(value._dayNumber);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1075public int CompareTo(DateTime value)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
557public int CompareTo(DateTimeOffset other) =>
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
430public int CompareTo(decimal value)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
273public int CompareTo(double value)
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
1110public int CompareTo(Guid value)
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
443public int CompareTo(Half other)
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
66public int CompareTo(Int128 value)
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
71public int CompareTo(short value)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
84public int CompareTo(int value)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
81public int CompareTo(long value)
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
196public int CompareTo(nint value)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
816public int CompareTo(NFloat other) => _value.CompareTo(other._value);
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
72public int CompareTo(sbyte value)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
272public int CompareTo(float value)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.BinarySearch.cs (1)
75public int CompareTo(T? other) => _comparer.Compare(_value, other);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
522public int CompareTo(string? strB)
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
295public int CompareTo(Rune other) => this.Value - other.Value; // values don't span entire 32-bit domain; won't integer overflow
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
398public int CompareTo(TimeOnly value) => _ticks.CompareTo(value._ticks);
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
418public int CompareTo(TimeSpan value) => Compare(this, value);
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
68public int CompareTo(UInt128 value)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
66public int CompareTo(ushort value)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
78public int CompareTo(uint value)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
78public int CompareTo(ulong value)
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
192public int CompareTo(nuint value)
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\libraries\System.Private.CoreLib\src\System\Version.cs (1)
126public int CompareTo(Version? value)
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (1)
24public int CompareTo(RowCounts other)
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
1178public int CompareTo(BigInteger other)
System.Security.Principal.Windows (1)
artifacts\obj\System.Security.Principal.Windows\Debug\net10.0\System.Security.Principal.Windows.notsupported.cs (1)
83public int CompareTo(System.Security.Principal.SecurityIdentifier? sid) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); }
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
514public int CompareTo(BDD? other)
System\Text\RegularExpressions\Symbolic\BitVector.cs (1)
193public int CompareTo(BitVector other) =>
Test.Utilities (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
Text.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
140public int CompareTo(VirtualChar other) 155public int CompareTo(char other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59public int CompareTo(TokenData other)
192 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.Microsoft.Data.SqlClient (2)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (2)
188if (value.CompareTo(min) < 0 || value.CompareTo(max) > 0)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (2)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (2)
188if (value.CompareTo(min) < 0 || value.CompareTo(max) > 0)
Aspire.StackExchange.Redis (2)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (2)
196if (value.CompareTo(min) < 0 || value.CompareTo(max) > 0)
GenerateDocumentationAndConfigFiles (5)
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;
Metrics (5)
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;
Metrics.Legacy (5)
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.Arcade.Test.Common (1)
AssertEx.cs (1)
78return comparableT.CompareTo(y) == 0;
Microsoft.Build.Framework (5)
ArraySortHelper.cs (5)
375order = array[i].CompareTo(value!); 625return left.CompareTo(right) < 0 ? true : false; 659return left.CompareTo(right) > 0 ? true : false; 1182return left.CompareTo(right) < 0 ? true : false; 1216return left.CompareTo(right) > 0 ? true : false;
Microsoft.CodeAnalysis (5)
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\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\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.BannedApiAnalyzers (5)
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\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.Collections.Package (5)
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\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.InteractiveHost (5)
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.PerformanceSensitiveAnalyzers (5)
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.PublicApiAnalyzers (5)
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.ResxSourceGenerator (5)
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.Test.Utilities (1)
Assert\AssertEx.cs (1)
87return comparableT.CompareTo(y) == 0;
Microsoft.CodeAnalysis.Threading.Package (5)
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.UnitTests (1)
Collections\HashSet\TestingTypes.cs (1)
329Value.CompareTo(other.Value);
Microsoft.CodeAnalysis.Workspaces (5)
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.MSBuild.BuildHost (5)
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.DotNet.NuGetRepack.Tests (1)
TestHelpers\AssertEx.cs (1)
78return comparableT.CompareTo(y) == 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)
27if (_data[ci].CompareTo(_data[pi]) >= 0) break; // child item is larger than (or equal) parent so we're done 48if (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 50if (_data[pi].CompareTo(_data[ci]) <= 0) break; // parent is smaller than (or equal to) smallest child so done 86if (lci <= li && _data[pi].CompareTo(_data[lci]) > 0) return false; // if lc exists and it's greater than parent then bad. 87if (rci <= li && _data[pi].CompareTo(_data[rci]) > 0) return false; // check the right child too.
Roslyn.Diagnostics.Analyzers (5)
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)
152return ((IComparable<ValidatedPartUri>)firstPartUri).CompareTo((ValidatedPartUri)secondPartUri);
System.Private.CoreLib (25)
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\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\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (1)
62if (y != null) return x.CompareTo(y);
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2284if (values[i - 1].CompareTo(values[i]) > 0)
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
65/// <inheritdoc cref="IComparable{T}.CompareTo(T)" />
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (2)
84return (TInteger.IsNegative(x) && TInteger.IsNegative(y)) ? y.CompareTo(x) : x.CompareTo(y);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.BinarySearch.cs (1)
40int c = comparable.CompareTo(Unsafe.Add(ref spanStart, i));
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (9)
1298int result = (Unsafe.Add(ref first, i)?.CompareTo(lookUp) ?? (((object?)lookUp is null) ? 0 : -1)); 3444if ((lowInclusive.CompareTo(current) <= 0) && (highInclusive.CompareTo(current) >= 0)) 3459if ((lowInclusive.CompareTo(current) > 0) || (highInclusive.CompareTo(current) < 0)) 3610if ((lowInclusive.CompareTo(current) <= 0) && (highInclusive.CompareTo(current) >= 0)) 3625if ((lowInclusive.CompareTo(current) > 0) || (highInclusive.CompareTo(current) < 0))
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
67/// <inheritdoc cref="IComparable{T}.CompareTo(T)" />
Test.Utilities (5)
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;
Text.Analyzers (5)
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;
xunit.assert (2)
Sdk\AssertEqualityComparer.cs (1)
264 return comparableGeneric.CompareTo(y) == 0;
Sdk\AssertRangeComparer.cs (1)
53 return comparable1.CompareTo(y);