Click or drag to resize
EnumerableExThrowTResult Method
Returns a sequence that throws an exception upon enumeration.

Namespace: System.Linq
Assembly: System.Interactive (in System.Interactive.dll) Version: 1.2.0.0
Syntax
C#
public 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: IEnumerableTResult
Sequence that throws the specified exception upon enumeration.
See Also