Class SkipLast
Represents an operator that bypasses the specified number of elements at the end of an observable sequence.
The SkipLast
operator modifies the source sequence to remove the specified number of elements from the end of the sequence. Because SkipLast
does not know beforehand which values are the last, it will not emit any notifications until at least the specified number of subsequent elements is received. This means that SkipLast
has the practical effect of delaying notifications from the source sequence by the specified number of values to skip.
Tip
SkipLast
can often be used when you need to impose a delay in the source sequence using number of elements, rather than a time interval.
public class SkipLast : Combinator
- Inheritance
-
SkipLast
- Inherited Members
Properties
Count
Gets or sets the number of elements to skip at the end of the sequence.
public int Count { get; set; }
Property Value
Methods
Process<TSource>(IObservable<TSource>)
Bypasses the specified number of elements at the end of an observable sequence.
public override IObservable<TSource> Process<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence to skip elements from.
Returns
- IObservable<TSource>
An observable sequence containing the elements in the
source
sequence excluding the ones which are bypassed at the end.
Type Parameters
TSource
The type of the elements in the
source
sequence.