3 interfaces inheriting from IComparable
Microsoft.ML.AutoML (1)
Microsoft.ML.Sweeper (1)
System.Private.CoreLib (1)
120 implementations of IComparable
Aspire.Dashboard (1)
CSharpSyntaxGenerator (1)
dotnet-svcutil-lib (3)
GenerateDocumentationAndConfigFiles (1)
illink (3)
Metrics (1)
Metrics.Legacy (1)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.CodeAnalysis (6)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.UnitTests (6)
Microsoft.CodeAnalysis.Workspaces (7)
Microsoft.DotNet.XUnitAssert.Tests (6)
Microsoft.Maui.Graphics (1)
Microsoft.ML.Core (2)
Microsoft.ML.DataView (1)
Microsoft.ML.FastTree (2)
Microsoft.ML.Tokenizers (5)
PresentationCore (2)
Roslyn.Diagnostics.Analyzers (1)
RunTests (1)
Shared (1)
System.IO.Packaging (3)
System.Private.CoreLib (36)
src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (9)
35: IEquatable<ValueTuple>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable<ValueTuple>, IValueTupleInternal, ITuple
264: IEquatable<ValueTuple<T1>>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable<ValueTuple<T1>>, IValueTupleInternal, ITuple
428: IEquatable<ValueTuple<T1, T2>>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable<ValueTuple<T1, T2>>, IValueTupleInternal, ITuple
630: IEquatable<ValueTuple<T1, T2, T3>>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable<ValueTuple<T1, T2, T3>>, IValueTupleInternal, ITuple
829: IEquatable<ValueTuple<T1, T2, T3, T4>>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable<ValueTuple<T1, T2, T3, T4>>, IValueTupleInternal, ITuple
1046: IEquatable<ValueTuple<T1, T2, T3, T4, T5>>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable<ValueTuple<T1, T2, T3, T4, T5>>, IValueTupleInternal, ITuple
1281: IEquatable<ValueTuple<T1, T2, T3, T4, T5, T6>>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable<ValueTuple<T1, T2, T3, T4, T5, T6>>, IValueTupleInternal, ITuple
1534: IEquatable<ValueTuple<T1, T2, T3, T4, T5, T6, T7>>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable<ValueTuple<T1, T2, T3, T4, T5, T6, T7>>, IValueTupleInternal, ITuple
1805: IEquatable<ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable<ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>>, IValueTupleInternal, ITuple
System.Reflection.Metadata (1)
System.Runtime.Numerics (1)
System.Security.Principal.Windows (1)
System.ServiceModel.Primitives (1)
System.Text.RegularExpressions (2)
Test.Utilities (1)
Text.Analyzers (1)
278 references to IComparable
Aspire.Confluent.Kafka (1)
Aspire.StackExchange.Redis (1)
GenerateDocumentationAndConfigFiles (3)
Metrics (3)
Metrics.Legacy (3)
Microsoft.Arcade.Test.Common (2)
Microsoft.AspNetCore.Antiforgery (4)
Microsoft.AspNetCore.Cryptography.KeyDerivation (4)
Microsoft.AspNetCore.DataProtection.Abstractions (4)
Microsoft.AspNetCore.Http.Connections (4)
Microsoft.AspNetCore.Http.Connections.Client (4)
Microsoft.AspNetCore.Shared.Tests (6)
Microsoft.AspNetCore.WebUtilities (4)
Microsoft.Build.Framework (4)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.Collections.Package (3)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.Extensions.Package (3)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.InteractiveHost (3)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.Threading.Package (3)
Microsoft.CodeAnalysis.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.XUnitAssert.Tests (5)
Microsoft.Extensions.Features (4)
Microsoft.Extensions.Identity.Core (4)
Microsoft.Maui (1)
Microsoft.ML.AutoML (1)
Microsoft.ML.Core (2)
Microsoft.ML.Data (8)
Microsoft.ML.FastTree (11)
Utils\LinqExtensions.cs (11)
13public static int ArgMin<T>(this T[] arr) where T : IComparable<T>
26public static int ArgMax<T>(this ReadOnlySpan<T> span) where T : IComparable<T>
39public static int ArgMin<T>(this T[] arr, int prefix) where T : IComparable<T>
53public static int ArgMax<T>(this T[] arr, int prefix) where T : IComparable<T>
67public static int ArgMax<T>(this IEnumerable<T> e) where T : IComparable<T>
84public static int ArgMaxRand<T>(this IEnumerable<T> e, Random rnd, double fraction) where T : IComparable<T>
101public static int ArgMax<T>(this IEnumerable<T> e, int prefix) where T : IComparable<T>
124public static int ArgMaxRand<T>(this IEnumerable<T> e, int prefix, Random rnd, double fraction) where T : IComparable<T>
147public static int ArgMin<T>(this IEnumerable<T> e) where T : IComparable<T>
164public static int ArgMin<T>(this IEnumerable<T> e, int prefix) where T : IComparable<T>
218public static IEnumerable<T> MergeSortedList<T>(this IEnumerable<T> s1, IEnumerable<T> s2) where T : IComparable<T>
Microsoft.ML.Sweeper (1)
Microsoft.ML.Tokenizers (2)
mscorlib (1)
netstandard (1)
Roslyn.Diagnostics.Analyzers (3)
System.Collections.Immutable (27)
System.Configuration.ConfigurationManager (3)
System.IO.Packaging (4)
System.Linq (8)
System.Linq.AsyncEnumerable (8)
System.Linq.Queryable (7)
System.Private.CoreLib (56)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (33)
439public static bool ContainsAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
445public static bool ContainsAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
681public static bool ContainsAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
695public static bool ContainsAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
1899public static int IndexOfAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
1912public static int IndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
1970public static int IndexOfAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
1983public static int IndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2041public static int LastIndexOfAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
2054public static int LastIndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2112public static int LastIndexOfAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
2125public static int LastIndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2201public static int SequenceCompareTo<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IComparable<T>? =>
3533public static int SequenceCompareTo<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IComparable<T>?
4170/// using the specified <see cref="IComparable{T}"/> generic interface.
4174/// <param name="comparable">The <see cref="IComparable{T}"/> to use when comparing.</param>
4186public static int BinarySearch<T>(this Span<T> span, IComparable<T> comparable) =>
4194/// <typeparam name="TComparable">The specific type of <see cref="IComparable{T}"/>.</typeparam>
4210where TComparable : IComparable<T>, allows ref struct =>
4240/// using the specified <see cref="IComparable{T}"/> generic interface.
4244/// <param name="comparable">The <see cref="IComparable{T}"/> to use when comparing.</param>
4256this ReadOnlySpan<T> span, IComparable<T> comparable) =>
4257BinarySearch<T, IComparable<T>>(span, comparable);
4264/// <typeparam name="TComparable">The specific type of <see cref="IComparable{T}"/>.</typeparam>
4279where TComparable : IComparable<T>, allows ref struct
4316/// Sorts the elements in the entire <see cref="Span{T}" /> using the <see cref="IComparable{T}" /> implementation
4322/// One or more elements in <paramref name="span"/> do not implement the <see cref="IComparable{T}" /> interface.
4335/// use the <see cref="IComparable{T}"/> interface implementation of each element.
4339/// implement the <see cref="IComparable{T}" /> interface.
4381/// based on the keys in the first <see cref="Span{TKey}" /> using the <see cref="IComparable{T}" />
4392/// One or more elements in <paramref name="keys"/> do not implement the <see cref="IComparable{T}" /> interface.
4408/// use the <see cref="IComparable{T}"/> interface implementation of each element.
4415/// implement the <see cref="IComparable{T}" /> interface.
System.Runtime (1)
System.Text.Json (1)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (8)
Test.Utilities (3)
Text.Analyzers (3)
xunit.assert (4)