,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)
Summary: Buffers the specified count.
Type parameters
| Name | Description |
|---|---|
TSource | The type of the source. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
count | int | The count of each buffer. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
| System.ArgumentOutOfRangeException | count. |
2. Overload¶
public static IObservable<IList<TSource>> Buffer<TSource>(this IObservable<TSource> source, int count, int skip)
Summary: Buffers the specified count then skips the specified count, then repeats.
Type parameters
| Name | Description |
|---|---|
TSource | The type of the source. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
count | int | Length of each buffer before being skipped. |
skip | int | Number of elements to skip between creation of consecutive buffers. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
| System.ArgumentOutOfRangeException | count or skip. |