Skip to content

,System.Int32)} ,System.Int32,System.Int32)}

LinqMixins.Buffer(IObservable, int) method

Defined in

Type: LinqMixins Namespace: Minimalist.Reactive Assembly: Minimalist.Reactive.dll

Applies to

netstandard2.0

Overloads

  • 1. public static IObservable<IList<TSource>> Buffer<TSource>(this IObservable<TSource> source, int count)
  • 2. public static IObservable<IList<TSource>> Buffer<TSource>(this IObservable<TSource> source, int count, int skip)

1. Overload

public static IObservable<IList<TSource>> Buffer<TSource>(this IObservable<TSource> source, int count)

View source

Summary: Buffers the specified count.

Type parameters

NameDescription
TSourceThe type of the source.

Parameters

NameTypeDescription
sourceIObservableThe source.
countintThe count of each buffer.

Returns: IObservable> -- An observable sequence of buffers.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource.
System.ArgumentOutOfRangeExceptioncount.

2. Overload

public static IObservable<IList<TSource>> Buffer<TSource>(this IObservable<TSource> source, int count, int skip)

View source

Summary: Buffers the specified count then skips the specified count, then repeats.

Type parameters

NameDescription
TSourceThe type of the source.

Parameters

NameTypeDescription
sourceIObservableThe source.
countintLength of each buffer before being skipped.
skipintNumber of elements to skip between creation of consecutive buffers.

Returns: IObservable> -- An observable sequence of buffers taking the count then skipping the skipped value, the sequecnce is then repeated.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource.
System.ArgumentOutOfRangeExceptioncount or skip.