OrderedComparer<T> Class

Summary

Convenience class providing a starting point for chaining comparers.
Namespace
ReactiveUI
Base Types
  • object
graph BT Type-->Base0["object"] Type["OrderedComparer<T>"] class Type type-node

Syntax

[SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleType", Justification = "Classes with the same class names within.")]
public static class OrderedComparer<T>

Attributes

Type Description
SuppressMessageAttribute

Type Parameters

Name Description
T The comparison type.

Methods

Name Value Summary
OrderBy<TValue>(Func<T, TValue>) IComparer<T>
Creates a comparer that will sort elements in ascending order based on the values returned by the provided selector. The values will be compared using the default comparer for the return type of the selector.
static
OrderBy<TValue>(Func<T, TValue>, IComparer<TValue>) IComparer<T>
Creates a comparer that will sort elements in ascending order based on the values returned by the provided selector. The selector values will be compared using the provided comparer or the default comparer for the return type of the selector if no comparer is specified.
static
OrderByDescending<TValue>(Func<T, TValue>) IComparer<T>
Creates a comparer that will sort elements in descending order based on the values returned by the provided selector. The values will be compared using the default comparer for the return type of the selector.
static
OrderByDescending<TValue>(Func<T, TValue>, IComparer<TValue>) IComparer<T>
Creates a comparer that will sort elements in descending order based on the values returned by the provided selector. The selector values will be compared using the provided comparer or the default comparer for the return type of the selector if no comparer is specified.
static