3 interfaces inheriting from IComparable
Microsoft.ML.AutoML (1)
Microsoft.ML.Sweeper (1)
System.Private.CoreLib (1)
106 implementations of IComparable
Aspire.Dashboard (1)
dotnet-svcutil-lib (3)
illink (3)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.Build (1)
Microsoft.Build.Tasks.Core (1)
Microsoft.CodeAnalysis (6)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.UnitTests (6)
Microsoft.CodeAnalysis.Workspaces (8)
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)
RunTests (1)
Shared (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)
237 references to IComparable
Aspire.Confluent.Kafka (1)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.StackExchange.Redis (1)
Metrics (1)
Metrics.Legacy (1)
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.BuildCheck.UnitTests (1)
Microsoft.Build.Framework (2)
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.Collections.Package (4)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.InteractiveHost (4)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.Threading.Package (4)
Microsoft.CodeAnalysis.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.XUnitAssert.Tests (5)
Microsoft.Extensions.Features (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 (1)
System.Collections.Immutable (15)
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)
438public static bool ContainsAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
444public static bool ContainsAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
676public static bool ContainsAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
690public static bool ContainsAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
1894public static int IndexOfAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
1907public static int IndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
1959public static int IndexOfAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
1972public static int IndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2024public static int LastIndexOfAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
2037public static int LastIndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2089public static int LastIndexOfAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
2102public static int LastIndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2172public static int SequenceCompareTo<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IComparable<T>? =>
3504public static int SequenceCompareTo<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IComparable<T>?
4137/// using the specified <see cref="IComparable{T}"/> generic interface.
4141/// <param name="comparable">The <see cref="IComparable{T}"/> to use when comparing.</param>
4153public static int BinarySearch<T>(this Span<T> span, IComparable<T> comparable) =>
4161/// <typeparam name="TComparable">The specific type of <see cref="IComparable{T}"/>.</typeparam>
4177where TComparable : IComparable<T>, allows ref struct =>
4207/// using the specified <see cref="IComparable{T}"/> generic interface.
4211/// <param name="comparable">The <see cref="IComparable{T}"/> to use when comparing.</param>
4223this ReadOnlySpan<T> span, IComparable<T> comparable) =>
4224BinarySearch<T, IComparable<T>>(span, comparable);
4231/// <typeparam name="TComparable">The specific type of <see cref="IComparable{T}"/>.</typeparam>
4246where TComparable : IComparable<T>, allows ref struct
4283/// Sorts the elements in the entire <see cref="Span{T}" /> using the <see cref="IComparable{T}" /> implementation
4289/// One or more elements in <paramref name="span"/> do not implement the <see cref="IComparable{T}" /> interface.
4302/// use the <see cref="IComparable{T}"/> interface implementation of each element.
4306/// implement the <see cref="IComparable{T}" /> interface.
4339/// based on the keys in the first <see cref="Span{TKey}" /> using the <see cref="IComparable{T}" />
4350/// One or more elements in <paramref name="keys"/> do not implement the <see cref="IComparable{T}" /> interface.
4366/// use the <see cref="IComparable{T}"/> interface implementation of each element.
4373/// 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 (1)
Text.Analyzers (1)
xunit.assert (4)