13 types derived from Comparer
mscorlib (4)
system\collections\generic\comparer.cs (4)
86
internal class GenericComparer<T> :
Comparer
<T> where T: IComparable<T>
109
internal class NullableComparer<T> :
Comparer
<Nullable<T>> where T : struct, IComparable<T>
133
internal class ObjectComparer<T> :
Comparer
<T>
151
internal class ComparisonComparer<T> :
Comparer
<T>
System (1)
compmod\system\collections\generic\sorteddictionary.cs (1)
755
internal class KeyValuePairComparer :
Comparer
<KeyValuePair<TKey, TValue>> {
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (1)
306
private class AlphabeticalCategoryEditorComparer :
Comparer
<CategoryEditor>
System.Core (5)
System\Linq\Parallel\Utils\Util.cs (5)
71
class FastIntComparer :
Comparer
<int>
81
class FastLongComparer :
Comparer
<long>
91
class FastFloatComparer :
Comparer
<float>
101
class FastDoubleComparer :
Comparer
<double>
111
class FastDateTimeComparer :
Comparer
<DateTime>
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (1)
306
private class AlphabeticalCategoryEditorComparer :
Comparer
<CategoryEditor>
System.Data.Linq (1)
SortableBindingList.cs (1)
57
internal class PropertyComparer :
Comparer
<T> {
69 references to Comparer
mscorlib (29)
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\collections\generic\comparer.cs (8)
22
static readonly
Comparer
<T> defaultComparer = CreateComparer();
24
public static
Comparer
<T> Default {
26
Contract.Ensures(Contract.Result<
Comparer
<T>>() != null);
31
public static
Comparer
<T> Create(Comparison<T> comparison)
33
Contract.Ensures(Contract.Result<
Comparer
<T>>() != null);
46
private static
Comparer
<T> CreateComparer() {
60
return (
Comparer
<T>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(GenericComparer<int>), t);
67
return (
Comparer
<T>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(NullableComparer<int>), u);
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 (14)
System\Linq\Enumerable.cs (5)
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\Enumerables\AggregationMinMaxHelpers.cs (2)
67
Comparer
<T> comparer = Util.GetDefaultComparer<T>();
91
Comparer
<T> comparer = Util.GetDefaultComparer<T>();
System\Linq\Parallel\Utils\Util.cs (7)
43
internal static
Comparer
<TKey> GetDefaultComparer<TKey>()
47
return (
Comparer
<TKey>)(object)s_fastIntComparer;
51
return (
Comparer
<TKey>)(object)s_fastLongComparer;
55
return (
Comparer
<TKey>)(object)s_fastFloatComparer;
59
return (
Comparer
<TKey>)(object)s_fastDoubleComparer;
63
return (
Comparer
<TKey>)(object)s_fastDateTimeComparer;
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.Linq (1)
SortableBindingList.cs (1)
71
Type comparerType = typeof(
Comparer
<>).MakeGenericType(prop.PropertyType);
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 (2)
KeyedPriorityQueue.cs (2)
38
private
Comparer
<P> priorityComparer =
Comparer
<P>.Default;