Namespace:
System.Linq
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function AsSequential(Of TSource) ( _
source As ParallelQuery(Of TSource) _
) As IEnumerable(Of TSource) |
| C# |
|---|
public static IEnumerable<TSource> AsSequential<TSource>(
ParallelQuery<TSource> source
)
|
Type Parameters
- TSource
- The type of elements of source.
Return Value
The source as an
IEnumerable<(Of <(T>)>)
to bind to sequential extension methods.
Exceptions
| Exception | Condition |
|---|
| System..::.ArgumentNullException |
source is a null reference (Nothing in Visual Basic).
|
See Also