Memoize__2_3 - waf/Rx.NET GitHub Wiki
QueryableEx.Memoize<TSource, TResult> Method (IQueryable<TSource>, Expression<Func<IEnumerable<TSource>, IEnumerable<TResult>>>)
Memoizes the source sequence within a selector function where each enumerator can get access to all of the sequence's elements without causing multiple enumerations over the source.
Namespace: System.Linq
Assembly: System.Interactive.Providers (in System.Interactive.Providers.dll)
public static IQueryable<TResult> Memoize<TSource, TResult>(
this IQueryable<TSource> source,
Expression<Func<IEnumerable<TSource>, IEnumerable<TResult>>> selector
)
Type: System.Linq.IQueryable<TSource>
Source sequence.
Type: System.Linq.Expressions.Expression<Func<IEnumerable<TSource>, IEnumerable<TResult>>>
Selector function with memoized access to the source sequence for each enumerator.
Source sequence element type.
Result sequence element type.
Type: IQueryable<TResult>
Sequence resulting from applying the selector function to the memoized view over the source sequence.
In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<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).