Click or drag to resize
EnumerableExOnErrorResumeNextTSource Method (IEnumerableTSource, IEnumerableTSource)
Creates a sequence that concatenates both given sequences, regardless of whether an error occurs.

Namespace: System.Linq
Assembly: System.Interactive (in System.Interactive.dll) Version: 1.2.0.0
Syntax
C#
public static IEnumerable<TSource> OnErrorResumeNext<TSource>(
	this IEnumerable<TSource> first,
	IEnumerable<TSource> second
)

Parameters

first
Type: System.Collections.GenericIEnumerableTSource
First sequence.
second
Type: System.Collections.GenericIEnumerableTSource
Second sequence.

Type Parameters

TSource
Source sequence element type.

Return Value

Type: IEnumerableTSource
Sequence concatenating the elements of both sequences, ignoring errors.

Usage Note

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