Click or drag to resize
EnumerableExCatchTSource Method (IEnumerableIEnumerableTSource)
Creates a sequence by concatenating source sequences until a source sequence completes successfully.

Namespace: System.Linq
Assembly: System.Interactive (in System.Interactive.dll) Version: 1.2.0.0
Syntax
C#
public static IEnumerable<TSource> Catch<TSource>(
	this IEnumerable<IEnumerable<TSource>> sources
)

Parameters

sources
Type: System.Collections.GenericIEnumerableIEnumerableTSource
Source sequences.

Type Parameters

TSource
Source sequence element type.

Return Value

Type: IEnumerableTSource
Sequence that continues to concatenate source sequences while errors occur.

Usage Note

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