The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

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

Extension Methods

Name Value Summary
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.