Table of Contents

Class OrderByDescending

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

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

Marble diagram

The OrderByDescending operator requires the elements in the source sequence to be collections implementing the IEnumerable<T> interface. For each collection emitted by the source sequence, the result sequence will emit an ordered collection where elements are 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 OrderByDescending : SingleArgumentExpressionBuilder, IExpressionBuilder
Inheritance
OrderByDescending
Implements
Inherited Members
Extension Methods

Properties

KeySelector

Gets or sets a value specifying the inner properties used as a key for sorting the elements in the 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.