EnumerableExThrowTResult Method |
Returns a sequence that throws an exception upon enumeration.
Namespace: System.LinqAssembly: System.Interactive (in System.Interactive.dll) Version: 1.2.0.0
Syntaxpublic static IEnumerable<TResult> Throw<TResult>(
Exception exception
)
Parameters
- exception
- Type: SystemException
Exception to throw upon enumerating the resulting sequence.
Type Parameters
- TResult
- Result sequence element type.
Return Value
Type:
IEnumerableTResultSequence that throws the specified exception upon enumeration.
See Also