Catch__1_4 - waf/Rx.NET GitHub Wiki
Creates a sequence that returns the elements of the first sequence, switching to the second in case of an error.
Namespace: System.Linq
Assembly: System.Interactive.Providers (in System.Interactive.Providers.dll)
public static IQueryable<TSource> Catch<TSource>(
this IQueryable<TSource> first,
IEnumerable<TSource> second
)
Type: System.Linq.IQueryable<TSource>
First sequence.
Type: System.Collections.Generic.IEnumerable<TSource>
Second sequence, concatenated to the result in case the first sequence completes exceptionally.
Source sequence element type.
Type: IQueryable<TSource>
The first sequence, followed by the second sequence in case an error is produced.
In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<TSource>. 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).