260 references to Default
Microsoft.AspNetCore.Routing (2)
Microsoft.Build (8)
BackEnd\Components\Scheduler\SchedulingPlan.cs (6)
114configurationsInOrder.Sort((KeyValuePair<int, double> l, KeyValuePair<int, double> 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.Build.Engine.UnitTests (1)
Microsoft.Build.Framework (6)
Microsoft.CodeAnalysis (11)
Microsoft.CodeAnalysis.CodeStyle (11)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.Collections.Package (6)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (10)
Microsoft.CodeAnalysis.Workspaces (12)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
Microsoft.Data.Analysis (4)
Microsoft.ML.Core (1)
Microsoft.ML.FastTree (1)
System.Collections (20)
System.Collections.Immutable (28)
System.Data.Common (1)
System.Diagnostics.DiagnosticSource (1)
System.IO.Packaging (1)
System.Linq (61)
System\Linq\Max.cs (21)
330comparer ??= Comparer<TSource>.Default;
333if (typeof(TSource) == typeof(byte) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<byte, MaxCalc<byte>>((IEnumerable<byte>)source);
334if (typeof(TSource) == typeof(sbyte) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<sbyte, MaxCalc<sbyte>>((IEnumerable<sbyte>)source);
335if (typeof(TSource) == typeof(ushort) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<ushort, MaxCalc<ushort>>((IEnumerable<ushort>)source);
336if (typeof(TSource) == typeof(short) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<short, MaxCalc<short>>((IEnumerable<short>)source);
337if (typeof(TSource) == typeof(char) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<char, MaxCalc<char>>((IEnumerable<char>)source);
338if (typeof(TSource) == typeof(uint) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<uint, MaxCalc<uint>>((IEnumerable<uint>)source);
339if (typeof(TSource) == typeof(int) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<int, MaxCalc<int>>((IEnumerable<int>)source);
340if (typeof(TSource) == typeof(ulong) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<ulong, MaxCalc<ulong>>((IEnumerable<ulong>)source);
341if (typeof(TSource) == typeof(long) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<long, MaxCalc<long>>((IEnumerable<long>)source);
342if (typeof(TSource) == typeof(nuint) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<nuint, MaxCalc<nuint>>((IEnumerable<nuint>)source);
343if (typeof(TSource) == typeof(nint) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<nint, MaxCalc<nint>>((IEnumerable<nint>)source);
344if (typeof(TSource) == typeof(Int128) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<Int128, MaxCalc<Int128>>((IEnumerable<Int128>)source);
345if (typeof(TSource) == typeof(UInt128) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<UInt128, MaxCalc<UInt128>>((IEnumerable<UInt128>)source);
380if (comparer == Comparer<TSource>.Default)
385if (Comparer<TSource>.Default.Compare(next, value) > 0)
445comparer ??= Comparer<TKey>.Default;
497if (comparer == Comparer<TKey>.Default)
503if (Comparer<TKey>.Default.Compare(nextKey, key) > 0)
852Comparer<TResult> comparer = Comparer<TResult>.Default;
873if (Comparer<TResult>.Default.Compare(x, value) > 0)
System\Linq\Min.cs (21)
308comparer ??= Comparer<TSource>.Default;
311if (typeof(TSource) == typeof(byte) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<byte, MinCalc<byte>>((IEnumerable<byte>)source);
312if (typeof(TSource) == typeof(sbyte) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<sbyte, MinCalc<sbyte>>((IEnumerable<sbyte>)source);
313if (typeof(TSource) == typeof(ushort) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<ushort, MinCalc<ushort>>((IEnumerable<ushort>)source);
314if (typeof(TSource) == typeof(short) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<short, MinCalc<short>>((IEnumerable<short>)source);
315if (typeof(TSource) == typeof(char) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<char, MinCalc<char>>((IEnumerable<char>)source);
316if (typeof(TSource) == typeof(uint) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<uint, MinCalc<uint>>((IEnumerable<uint>)source);
317if (typeof(TSource) == typeof(int) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<int, MinCalc<int>>((IEnumerable<int>)source);
318if (typeof(TSource) == typeof(ulong) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<ulong, MinCalc<ulong>>((IEnumerable<ulong>)source);
319if (typeof(TSource) == typeof(long) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<long, MinCalc<long>>((IEnumerable<long>)source);
320if (typeof(TSource) == typeof(nuint) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<nuint, MinCalc<nuint>>((IEnumerable<nuint>)source);
321if (typeof(TSource) == typeof(nint) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<nint, MinCalc<nint>>((IEnumerable<nint>)source);
322if (typeof(TSource) == typeof(Int128) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<Int128, MinCalc<Int128>>((IEnumerable<Int128>)source);
323if (typeof(TSource) == typeof(UInt128) && comparer == Comparer<TSource>.Default) return (TSource)(object)MinMaxInteger<UInt128, MinCalc<UInt128>>((IEnumerable<UInt128>)source);
358if (comparer == Comparer<TSource>.Default)
363if (Comparer<TSource>.Default.Compare(next, value) < 0)
423comparer ??= Comparer<TKey>.Default;
475if (comparer == Comparer<TKey>.Default)
481if (Comparer<TKey>.Default.Compare(nextKey, key) < 0)
815Comparer<TResult> comparer = Comparer<TResult>.Default;
836if (Comparer<TResult>.Default.Compare(x, value) < 0)
System\Linq\OrderedEnumerable.cs (11)
89_comparer = comparer ?? Comparer<TKey>.Default;
101if (typeof(TKey) == typeof(string) && comparer == Comparer<string>.Default)
189new CachingComparer<TElement, TElement>(EnumerableSorter<TElement>.IdentityFunc, Comparer<TElement>.Default, _descending) :
190new CachingComparerWithChild<TElement, TElement>(EnumerableSorter<TElement>.IdentityFunc, Comparer<TElement>.Default, _descending, childComparer);
193new EnumerableSorter<TElement, TElement>(EnumerableSorter<TElement>.IdentityFunc, Comparer<TElement>.Default, _descending, next);
240span.Sort(static (a, b) => Comparer<TElement>.Default.Compare(b, a));
449Debug.Assert(_comparer == Comparer<TKey>.Default);
456int c = Comparer<TKey>.Default.Compare(keys[index1], keys[index2]);
465Debug.Assert(_comparer == Comparer<TKey>.Default);
472int c = Comparer<TKey>.Default.Compare(keys[index2], keys[index1]);
484if (typeof(TKey).IsValueType && _next is null && _comparer == Comparer<TKey>.Default)
System.Linq.Parallel (2)
System.Private.CoreLib (54)
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)