49 references to Default
mscorlib (21)
system\array.cs (2)
1836
if ( comparer == null || comparer == Comparer<T>.
Default
) {
1865
if ( comparer == null || comparer == Comparer<TKey>.
Default
) {
system\collections\generic\arraysorthelper.cs (7)
139
comparer = Comparer<T>.
Default
;
175
comparer = Comparer<T>.
Default
;
482
if (comparer == null || comparer == Comparer<T>.
Default
) {
540
if (comparer == null || comparer == Comparer<T>.
Default
)
913
if (comparer == null || comparer == Comparer<TKey>.
Default
)
915
comparer = Comparer<TKey>.
Default
;
1245
if (comparer == null || comparer == Comparer<TKey>.
Default
)
system\diagnostics\eventing\eventsource.cs (2)
6335
sortedChannels.Sort((p1, p2) => -Comparer<ulong>.
Default
.Compare(p1.Value.Keywords, p2.Value.Keywords));
6520
ArraySortHelper<string>.IntrospectiveSort(sortedStrings, 0, sortedStrings.Length, Comparer<string>.
Default
);
system\nullable.cs (1)
112
if (n2.HasValue) return Comparer<T>.
Default
.Compare(n1.value, n2.value);
system\runtime\interopservices\windowsruntime\constantsplittablemap.cs (1)
35
private static readonly IComparer<TKey> keyComparator = Comparer<TKey>.
Default
;
system\tuple.cs (8)
110
return ((IStructuralComparable) this).CompareTo(obj, Comparer<Object>.
Default
);
200
return ((IStructuralComparable) this).CompareTo(obj, Comparer<Object>.
Default
);
305
return ((IStructuralComparable) this).CompareTo(obj, Comparer<Object>.
Default
);
421
return ((IStructuralComparable) this).CompareTo(obj, Comparer<Object>.
Default
);
548
return ((IStructuralComparable) this).CompareTo(obj, Comparer<Object>.
Default
);
686
return ((IStructuralComparable) this).CompareTo(obj, Comparer<Object>.
Default
);
835
return ((IStructuralComparable) this).CompareTo(obj, Comparer<Object>.
Default
);
999
return ((IStructuralComparable) this).CompareTo(obj, Comparer<Object>.
Default
);
System (8)
compmod\system\collections\generic\sorteddictionary.cs (1)
760
this.keyComparer = Comparer<TKey>.
Default
;
compmod\system\collections\generic\sortedlist.cs (2)
96
comparer = Comparer<TKey>.
Default
;
111
comparer = Comparer<TKey>.
Default
;
compmod\system\collections\generic\sortedset.cs (4)
94
this.comparer = Comparer<T>.
Default
;
100
this.comparer = Comparer<T>.
Default
;
107
public SortedSet(IEnumerable<T> collection) : this(collection, Comparer<T>.
Default
) { }
2427
this.comparer = Comparer<T>.
Default
;
regex\system\text\regularexpressions\RegexParser.cs (1)
1683
System.Array.Sort(_capnumlist, Comparer<Int32>.
Default
);
System.Core (4)
System\Linq\Enumerable.cs (3)
1677
Comparer<TSource> comparer = Comparer<TSource>.
Default
;
1881
Comparer<TSource> comparer = Comparer<TSource>.
Default
;
2579
this.comparer = comparer != null ? comparer : Comparer<TKey>.
Default
;
System\Linq\Parallel\Utils\Util.cs (1)
66
return Comparer<TKey>.
Default
;
System.Data.DataSetExtensions (1)
System\Data\EnumerableRowCollection.cs (1)
325
AddSortExpression<TKey>(keySelector, Comparer<TKey>.
Default
, isDescending, isOrderBy);
System.Data.Entity (3)
System\Data\Common\Utils\ByValueEqualityComparer.cs (1)
110
internal static readonly IComparer Default = new ByValueComparer(Comparer<object>.
Default
);
System\Data\Mapping\Update\Internal\Graph.cs (1)
148
var rootsPriorityQueue = new SortedSet<TVertex>(Comparer<TVertex>.
Default
);
System\Data\Mapping\ViewGeneration\Structures\ErrorLog.cs (1)
175
var orderedCells = sourceCells.OrderBy<Cell, int>(cell => cell.CellLabel.StartLineNumber, Comparer<int>.
Default
);
System.Data.Services (10)
System\Data\Services\Parsing\RequestQueryParser.cs (5)
1016
return Comparer<string>.
Default
.Compare(left, right);
1032
return Comparer<bool>.
Default
.Compare(left, right);
1048
return Comparer<bool?>.
Default
.Compare(left, right);
1064
return Comparer<Guid>.
Default
.Compare(left, right);
1080
return Comparer<Guid?>.
Default
.Compare(left, right);
System\Data\Services\Providers\DataServiceProviderMethods.cs (5)
119
return Comparer<string>.
Default
.Compare(left, right);
135
return Comparer<bool>.
Default
.Compare(left, right);
151
return Comparer<bool?>.
Default
.Compare(left, right);
167
return Comparer<Guid>.
Default
.Compare(left, right);
183
return Comparer<Guid?>.
Default
.Compare(left, right);
System.ServiceModel (1)
System\UriTemplateHelpers.cs (1)
369
return Comparer<int>.
Default
.Compare(x.queries.Count, y.queries.Count);
System.Workflow.Runtime (1)
KeyedPriorityQueue.cs (1)
38
private Comparer<P> priorityComparer = Comparer<P>.
Default
;