Memoize__1_1 - waf/Rx.NET GitHub Wiki
Creates a buffer with a view over the source sequence, causing a specified number of enumerators to obtain access to all of the sequence's elements without causing multiple enumerations over the source.
Namespace: System.Linq
Assembly: System.Interactive (in System.Interactive.dll)
public static IBuffer<TSource> Memoize<TSource>(
this IEnumerable<TSource> source,
int readerCount
)
Type: System.Collections.Generic.IEnumerable<TSource>
Source sequence.
Type: System.Int32
Number of enumerators that can access the underlying buffer. Once every enumerator has obtained an element from the buffer, the element is removed from the buffer.
Source sequence element type.
Type: IBuffer<TSource>
Buffer enabling a specified number of enumerators to retrieve all elements from the shared source sequence, without duplicating source enumeration side-effects.
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).