ActiveReports 12
Memoize<TSource> Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.DataEngine.Extensions Namespace > EnumerableExtensions Class : Memoize<TSource> Method
Source sequence element type.
Source sequence.
Creates a buffer with a view over the source sequence, causing each enumerator to obtain access to all of the sequence's elements without causing multiple enumerations over the source.
Syntax
'Declaration
 
Public Shared Function Memoize(Of TSource)( _
   ByVal source As IEnumerable(Of TSource) _
) As IBuffer(Of TSource)
public static IBuffer<TSource> Memoize<TSource>( 
   IEnumerable<TSource> source
)

Parameters

source
Source sequence.

Type Parameters

TSource
Source sequence element type.

Return Value

Buffer enabling each enumerator to retrieve all elements from the shared source sequence, without duplicating source enumeration side-effects.
See Also

Reference

EnumerableExtensions Class
EnumerableExtensions Members