3 interfaces inheriting from IComparable
Microsoft.ML.AutoML (1)
Microsoft.ML.Sweeper (1)
System.Private.CoreLib (1)
141 implementations of IComparable
Aspire.Dashboard (1)
dotnet-svcutil-lib (3)
GenerateDocumentationAndConfigFiles (3)
illink (3)
Metrics (3)
Metrics.Legacy (3)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.CodeAnalysis (6)
Microsoft.CodeAnalysis.Analyzers (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.UnitTests (6)
Microsoft.CodeAnalysis.Workspaces (9)
Microsoft.DotNet.XUnitAssert.Tests (6)
Microsoft.Maui.Graphics (1)
Microsoft.ML.Core (2)
Microsoft.ML.DataView (1)
Microsoft.ML.FastTree (2)
Microsoft.ML.Tokenizers (4)
PresentationCore (2)
Roslyn.Diagnostics.Analyzers (3)
RunTests (1)
System.IO.Packaging (3)
System.Private.CoreLib (35)
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.Text.RegularExpressions (2)
Test.Utilities (3)
Text.Analyzers (3)
273 references to IComparable
Aspire.Confluent.Kafka (1)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.StackExchange.Redis (1)
GenerateDocumentationAndConfigFiles (3)
Metrics (3)
Metrics.Legacy (3)
Microsoft.Arcade.Test.Common (2)
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 (2)
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.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> =>
677public static bool ContainsAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
691public static bool ContainsAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
1895public static int IndexOfAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
1908public static int IndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
1960public static int IndexOfAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
1973public static int IndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2025public static int LastIndexOfAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
2038public static int LastIndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2090public static int LastIndexOfAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
2103public static int LastIndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2173public static int SequenceCompareTo<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IComparable<T>? =>
3505public static int SequenceCompareTo<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IComparable<T>?
4138/// using the specified <see cref="IComparable{T}"/> generic interface.
4142/// <param name="comparable">The <see cref="IComparable{T}"/> to use when comparing.</param>
4154public static int BinarySearch<T>(this Span<T> span, IComparable<T> comparable) =>
4162/// <typeparam name="TComparable">The specific type of <see cref="IComparable{T}"/>.</typeparam>
4178where TComparable : IComparable<T>, allows ref struct =>
4208/// using the specified <see cref="IComparable{T}"/> generic interface.
4212/// <param name="comparable">The <see cref="IComparable{T}"/> to use when comparing.</param>
4224this ReadOnlySpan<T> span, IComparable<T> comparable) =>
4225BinarySearch<T, IComparable<T>>(span, comparable);
4232/// <typeparam name="TComparable">The specific type of <see cref="IComparable{T}"/>.</typeparam>
4247where TComparable : IComparable<T>, allows ref struct
4284/// Sorts the elements in the entire <see cref="Span{T}" /> using the <see cref="IComparable{T}" /> implementation
4290/// One or more elements in <paramref name="span"/> do not implement the <see cref="IComparable{T}" /> interface.
4303/// use the <see cref="IComparable{T}"/> interface implementation of each element.
4307/// implement the <see cref="IComparable{T}" /> interface.
4340/// based on the keys in the first <see cref="Span{TKey}" /> using the <see cref="IComparable{T}" />
4351/// One or more elements in <paramref name="keys"/> do not implement the <see cref="IComparable{T}" /> interface.
4367/// use the <see cref="IComparable{T}"/> interface implementation of each element.
4374/// 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)