13 types derived from Comparer
System.Collections (1)
System.IO.Compression (1)
System.Linq.Parallel (5)
System.Private.CoreLib (6)
461 references to Comparer
GenerateDocumentationAndConfigFiles (18)
ILCompiler.Compiler (5)
ILCompiler.ReadyToRun (3)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (6)
Microsoft.AspNetCore.Routing (6)
Microsoft.Build (25)
BackEnd\Components\Scheduler\SchedulingPlan.cs (6)
114configurationsInOrder.Sort((l, r) => Comparer<int>.Default.Compare(l.Key, r.Key));
237projectsInOrderOfTotalPlanTime.Sort((left, right) => Comparer<double>.Default.Compare(right.Value.TotalPlanTime, left.Value.TotalPlanTime));
260projectsInOrderOfImmediateChildCount.Sort((left, right) => Comparer<int>.Default.Compare(right.Value.ReferencesCount, left.Value.ReferencesCount));
276projectsInOrderOfReference.Sort(delegate (int left, int right) { return -Comparer<int>.Default.Compare(_configIdToPaths[left].Count, _configIdToPaths[right].Count); });
337projectsByExpense.Sort(delegate (PlanConfigData left, PlanConfigData right) { return -Comparer<double>.Default.Compare(left.AccumulatedTime, right.AccumulatedTime); });
345pathsByLength.Sort(delegate (Stack<PlanConfigData> left, Stack<PlanConfigData> right) { return Comparer<int>.Default.Compare(left.Count, right.Count); });
Microsoft.CodeAnalysis (19)
Microsoft.CodeAnalysis.Analyzers (18)
Microsoft.CodeAnalysis.AnalyzerUtilities (19)
Microsoft.CodeAnalysis.CodeStyle (17)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.Extensions.Package (16)
Microsoft.CodeAnalysis.Features (7)
Microsoft.CodeAnalysis.Razor.Compiler (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (17)
Microsoft.CodeAnalysis.Workspaces (18)
Microsoft.Data.Analysis (8)
Microsoft.Extensions.AI (4)
Microsoft.Extensions.AI.Evaluation.Reporting (2)
Microsoft.ML.Core (2)
Microsoft.ML.Data (3)
Microsoft.ML.FastTree (2)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
mscorlib (1)
netstandard (1)
NuGet.Commands (1)
NuGet.Common (1)
NuGet.Configuration (1)
NuGet.LibraryModel (1)
NuGet.PackageManagement (1)
NuGet.Packaging (1)
NuGet.ProjectModel (1)
NuGet.Protocol (1)
NuGet.Versioning (1)
Roslyn.Diagnostics.Analyzers (18)
System.Collections (21)
System.Collections.Immutable (29)
System.Data.Common (1)
System.Diagnostics.DiagnosticSource (2)
System.IO.Packaging (3)
System.Linq (37)
System\Linq\OrderedEnumerable.cs (11)
87_comparer = comparer ?? Comparer<TKey>.Default;
99if (typeof(TKey) == typeof(string) && comparer == Comparer<string>.Default)
187new CachingComparer<TElement, TElement>(EnumerableSorter<TElement>.IdentityFunc, Comparer<TElement>.Default, _descending) :
188new CachingComparerWithChild<TElement, TElement>(EnumerableSorter<TElement>.IdentityFunc, Comparer<TElement>.Default, _descending, childComparer);
191new EnumerableSorter<TElement, TElement>(EnumerableSorter<TElement>.IdentityFunc, Comparer<TElement>.Default, _descending, next);
238span.Sort(static (a, b) => Comparer<TElement>.Default.Compare(b, a));
447Debug.Assert(_comparer == Comparer<TKey>.Default);
454int c = Comparer<TKey>.Default.Compare(keys[index1], keys[index2]);
463Debug.Assert(_comparer == Comparer<TKey>.Default);
470int c = Comparer<TKey>.Default.Compare(keys[index2], keys[index1]);
482if (typeof(TKey).IsValueType && _next is null && _comparer == Comparer<TKey>.Default)
System.Linq.AsyncEnumerable (33)
System.Linq.Parallel (10)
System.Private.CoreLib (67)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (37)
323return Comparer<T1>.Default.Compare(Item1, objTuple.Item1);
342return Comparer<T1>.Default.Compare(Item1, other.Item1);
533int c = Comparer<T1>.Default.Compare(Item1, other.Item1);
536return Comparer<T2>.Default.Compare(Item2, other.Item2);
724int c = Comparer<T1>.Default.Compare(Item1, other.Item1);
727c = Comparer<T2>.Default.Compare(Item2, other.Item2);
730return Comparer<T3>.Default.Compare(Item3, other.Item3);
931int c = Comparer<T1>.Default.Compare(Item1, other.Item1);
934c = Comparer<T2>.Default.Compare(Item2, other.Item2);
937c = Comparer<T3>.Default.Compare(Item3, other.Item3);
940return Comparer<T4>.Default.Compare(Item4, other.Item4);
1156int c = Comparer<T1>.Default.Compare(Item1, other.Item1);
1159c = Comparer<T2>.Default.Compare(Item2, other.Item2);
1162c = Comparer<T3>.Default.Compare(Item3, other.Item3);
1165c = Comparer<T4>.Default.Compare(Item4, other.Item4);
1168return Comparer<T5>.Default.Compare(Item5, other.Item5);
1399int c = Comparer<T1>.Default.Compare(Item1, other.Item1);
1402c = Comparer<T2>.Default.Compare(Item2, other.Item2);
1405c = Comparer<T3>.Default.Compare(Item3, other.Item3);
1408c = Comparer<T4>.Default.Compare(Item4, other.Item4);
1411c = Comparer<T5>.Default.Compare(Item5, other.Item5);
1414return Comparer<T6>.Default.Compare(Item6, other.Item6);
1660int c = Comparer<T1>.Default.Compare(Item1, other.Item1);
1663c = Comparer<T2>.Default.Compare(Item2, other.Item2);
1666c = Comparer<T3>.Default.Compare(Item3, other.Item3);
1669c = Comparer<T4>.Default.Compare(Item4, other.Item4);
1672c = Comparer<T5>.Default.Compare(Item5, other.Item5);
1675c = Comparer<T6>.Default.Compare(Item6, other.Item6);
1678return Comparer<T7>.Default.Compare(Item7, other.Item7);
1945int c = Comparer<T1>.Default.Compare(Item1, other.Item1);
1948c = Comparer<T2>.Default.Compare(Item2, other.Item2);
1951c = Comparer<T3>.Default.Compare(Item3, other.Item3);
1954c = Comparer<T4>.Default.Compare(Item4, other.Item4);
1957c = Comparer<T5>.Default.Compare(Item5, other.Item5);
1960c = Comparer<T6>.Default.Compare(Item6, other.Item6);
1963c = Comparer<T7>.Default.Compare(Item7, other.Item7);
1966return Comparer<TRest>.Default.Compare(Rest, other.Rest);
System.Threading.Channels (2)
System.Windows.Forms (1)
vstest.console (2)
vstest.console.arm64 (2)