Defer the evaluation of the specified expression.
Assembly: Epic.Query.Object
Declaration Syntax
| C# |
TDeferred Defer<TDeferred, TResult>( Expression<TResult> expression ) where TDeferred : Object, IDeferred<TResult>
Generic Template Parameters
- TDeferred
- The type of the IDeferred<(Of <(<'TResult>)>)> to create.
- TResult
- The result to defer.
Parameters
- expression (Expression<(Of <(<'TResult>)>)>)
- Expression to defer.
Return Value
A TDeferred representing a computation that will produce a TResult.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | expression is nullNothingnullptr. |
| DeferringException | This deferrer can not build a TDeferred
producing a TResult on evaluation. |
