Table of Contents

Class ThenByDescending

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an operator that subsequently sorts the elements of all the ordered collections in an observable sequence in descending order according to the specified key.

Marble diagram

ThenByDescending operates on sequences returned by any of the OrderBy, OrderByDescending, ThenBy, or ThenByDescending operators. For each ordered collection emitted by the source sequence, the result sequence will emit a new ordered collection where elements in the collection are subsequently sorted in descending order of the keys specified in the KeySelector property.

Warning

The ordered collections returned in the result sequence are lazy. The ordering is not really evaluated until the collection is enumerated by a downstream operator such as Merge.

public class ThenByDescending : SingleArgumentExpressionBuilder, IExpressionBuilder
Inheritance
ThenByDescending
Implements
Inherited Members
Extension Methods

Properties

KeySelector

Gets or sets a value specifying the inner properties used as a key for further sorting the elements in the ordered collection.

public string KeySelector { get; set; }

Property Value

string

Methods

Build(IEnumerable<Expression>)

Constructs an Expression node from a collection of input arguments. The result can be chained with other builders in a workflow.

public override Expression Build(IEnumerable<Expression> arguments)

Parameters

arguments IEnumerable<Expression>

A collection of Expression nodes representing the input arguments.

Returns

Expression

The constructed Expression node.