63 implementations of IComparer
mscorlib (7)
PresentationCore (3)
PresentationFramework (1)
System (1)
System.Activities (2)
System.Activities.Core.Presentation (1)
System.Activities.Presentation (4)
System.Configuration (1)
System.Core (5)
System.Data (4)
System.Data.DataSetExtensions (1)
System.Data.Entity (2)
System.Data.Services.Client (1)
System.Data.SqlXml (3)
System.Runtime.Serialization (2)
System.ServiceModel (11)
System.ServiceModel.Web (1)
System.Web (1)
System.Web.DataVisualization (1)
System.Web.Extensions (4)
System.Windows.Forms.DataVisualization (1)
System.Workflow.ComponentModel (1)
System.Workflow.Runtime (1)
System.Xml (2)
System.Xml.Linq (1)
WindowsBase (1)
209 references to IComparer
mscorlib (40)
system\array.cs (7)
996public static int BinarySearch<T>(T[] array, T value, System.Collections.Generic.IComparer<T> comparer) {
1011public static int BinarySearch<T>(T[] array, int index, int length, T value, System.Collections.Generic.IComparer<T> comparer) {
1805public static void Sort<T>(T[] array, System.Collections.Generic.IComparer<T> comparer) {
1813public static void Sort<TKey, TValue>(TKey[] keys, TValue[] items, System.Collections.Generic.IComparer<TKey> comparer) {
1822public static void Sort<T>(T[] array, int index, int length, System.Collections.Generic.IComparer<T> comparer) {
1855public static void Sort<TKey, TValue>(TKey[] keys, TValue[] items, int index, int length, System.Collections.Generic.IComparer<TKey> comparer) {
1899IComparer<T> comparer = new FunctorComparer<T>(comparison);
system\collections\generic\arraysorthelper.cs (26)
32void Sort(TKey[] keys, int index, int length, IComparer<TKey> comparer);
33int BinarySearch(TKey[] keys, int index, int length, TKey value, IComparer<TKey> comparer);
128public void Sort(T[] keys, int index, int length, IComparer<T> comparer)
169public int BinarySearch(T[] array, int index, int length, T value, IComparer<T> comparer)
188internal static int InternalBinarySearch(T[] array, int index, int length, T value, IComparer<T> comparer)
214private static void SwapIfGreater(T[] keys, IComparer<T> comparer, int a, int b)
237internal static void DepthLimitedQuickSort(T[] keys, int left, int right, IComparer<T> comparer, int depthLimit)
293internal static void IntrospectiveSort(T[] keys, int left, int length, IComparer<T> comparer)
308private static void IntroSort(T[] keys, int lo, int hi, int depthLimit, IComparer<T> comparer)
355private static int PickPivotAndPartition(T[] keys, int lo, int hi, IComparer<T> comparer)
392private static void Heapsort(T[] keys, int lo, int hi, IComparer<T> comparer)
412private static void DownHeap(T[] keys, int i, int n, int lo, IComparer<T> comparer)
436private static void InsertionSort(T[] keys, int lo, int hi, IComparer<T> comparer)
468public void Sort(T[] keys, int index, int length, IComparer<T> comparer)
533public int BinarySearch(T[] array, int index, int length, T value, IComparer<T> comparer)
869void Sort(TKey[] keys, TValue[] values, int index, int length, IComparer<TKey> comparer);
904public void Sort(TKey[] keys, TValue[] values, int index, int length, IComparer<TKey> comparer)
945private static void SwapIfGreaterWithItems(TKey[] keys, TValue[] values, IComparer<TKey> comparer, int a, int b)
986internal static void DepthLimitedQuickSort(TKey[] keys, TValue[] values, int left, int right, IComparer<TKey> comparer, int depthLimit)
1048internal static void IntrospectiveSort(TKey[] keys, TValue[] values, int left, int length, IComparer<TKey> comparer)
1065private static void IntroSort(TKey[] keys, TValue[] values, int lo, int hi, int depthLimit, IComparer<TKey> comparer)
1113private static int PickPivotAndPartition(TKey[] keys, TValue[] values, int lo, int hi, IComparer<TKey> comparer)
1151private static void Heapsort(TKey[] keys, TValue[] values, int lo, int hi, IComparer<TKey> comparer)
1172private static void DownHeap(TKey[] keys, TValue[] values, int i, int n, int lo, IComparer<TKey> comparer)
1201private static void InsertionSort(TKey[] keys, TValue[] values, int lo, int hi, IComparer<TKey> comparer)
1236public void Sort(TKey[] keys, TValue[] values, int index, int length, IComparer<TKey> comparer)
PresentationCore (7)
System (26)
System.Activities (5)
System\Activities\Validation\ExtensionMethods.cs (4)
39public static int BinarySearch<T>(this IList<T> items, T value, IComparer<T> comparer)
44public static void QuickSort<T>(this IList<T> items, IComparer<T> comparer)
49static int BinarySearch<T>(IList<T> items, int startIndex, int length, T value, IComparer<T> comparer)
73static void QuickSort<T>(IList<T> items, int startIndex, int endIndex, IComparer<T> comparer)
System.Activities.Presentation (8)
System.Configuration (1)
System.Core (83)
System\Linq\Enumerable.cs (10)
736public static IOrderedEnumerable<TSource> OrderBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer) {
744public static IOrderedEnumerable<TSource> OrderByDescending<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer) {
753public static IOrderedEnumerable<TSource> ThenBy<TSource, TKey>(this IOrderedEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer) {
763public static IOrderedEnumerable<TSource> ThenByDescending<TSource, TKey>(this IOrderedEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer) {
2161IOrderedEnumerable<TElement> CreateOrderedEnumerable<TKey>(Func<TElement, TKey> keySelector, IComparer<TKey> comparer, bool descending);
2559IOrderedEnumerable<TElement> IOrderedEnumerable<TElement>.CreateOrderedEnumerable<TKey>(Func<TElement, TKey> keySelector, IComparer<TKey> comparer, bool descending) {
2570internal IComparer<TKey> comparer;
2573internal OrderedEnumerable(IEnumerable<TElement> source, Func<TElement, TKey> keySelector, IComparer<TKey> comparer, bool descending) {
2636internal IComparer<TKey> comparer;
2641internal EnumerableSorter(Func<TElement, TKey> keySelector, IComparer<TKey> comparer, bool descending, EnumerableSorter<TElement> next) {
System\Linq\IQueryable.cs (8)
340public static IOrderedQueryable<TSource> OrderBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey> comparer) {
349new Expression[] { source.Expression, Expression.Quote(keySelector), Expression.Constant(comparer, typeof(IComparer<TKey>)) }
366public static IOrderedQueryable<TSource> OrderByDescending<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey> comparer) {
375new Expression[] { source.Expression, Expression.Quote(keySelector), Expression.Constant(comparer, typeof(IComparer<TKey>)) }
392public static IOrderedQueryable<TSource> ThenBy<TSource, TKey>(this IOrderedQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey> comparer) {
401new Expression[] { source.Expression, Expression.Quote(keySelector), Expression.Constant(comparer, typeof(IComparer<TKey>)) }
418public static IOrderedQueryable<TSource> ThenByDescending<TSource, TKey>(this IOrderedQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey> comparer) {
427new Expression[] { source.Expression, Expression.Quote(keySelector), Expression.Constant(comparer, typeof(IComparer<TKey>)) }
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (8)
153IComparer<TKey> orderComparer = hashStream.KeyComparer;
439protected readonly IComparer<TOrderKey> m_orderComparer; // The comparison routine for order keys.
454Func<TSource, TGroupKey> keySelector, IEqualityComparer<TGroupKey> keyComparer, IComparer<TOrderKey> orderComparer,
528internal GroupKeyData(TOrderKey orderKey, TGroupKey hashKey, IComparer<TOrderKey> orderComparer)
551Func<TSource, TGroupKey> keySelector, IEqualityComparer<TGroupKey> keyComparer, IComparer<TOrderKey> orderComparer,
625Func<TSource, TGroupKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TGroupKey> keyComparer, IComparer<TOrderKey> orderComparer,
745private IComparer<TOrderKey> m_orderComparer; // Comparer for order keys
753IComparer<TOrderKey> orderComparer)
System\Linq\ParallelEnumerable.cs (4)
1150this ParallelQuery<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer)
1204this ParallelQuery<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer)
1263this OrderedParallelQuery<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer)
1322this OrderedParallelQuery<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer)
System.Data (8)
System.Data.DataSetExtensions (7)
System.Data.Entity (3)
System.Data.Linq (1)
System.Data.Services.Client (1)
System.Data.SqlXml (1)
System.Runtime.Serialization (1)
System.ServiceModel (3)
System.Web.DataVisualization (4)
System.Windows.Forms.DataVisualization (4)
System.Workflow.ComponentModel (1)
System.Workflow.Runtime (1)
System.Xml (3)
WindowsBase (1)