Click or drag to resize
QueryableExDeferTResult Method (IQueryProvider, ExpressionFuncIEnumerableTResult)
Creates an enumerable sequence based on an enumerable factory function.

Namespace: System.Linq
Assembly: System.Interactive.Providers (in System.Interactive.Providers.dll) Version: 1.2.0.0
Syntax
C#
public static IQueryable<TResult> Defer<TResult>(
	this IQueryProvider provider,
	Expression<Func<IEnumerable<TResult>>> enumerableFactory
)

Parameters

provider
Type: System.LinqIQueryProvider
Query provider.
enumerableFactory
Type: System.Linq.ExpressionsExpressionFuncIEnumerableTResult
Enumerable factory function.

Type Parameters

TResult
Result sequence element type.

Return Value

Type: IQueryableTResult
Sequence that will invoke the enumerable factory upon a call to GetEnumerator.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryProvider. 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).
See Also