CollectionExtensionsAllParallelTSource Method
Determines whether all elements of a sequence satisfy a condition with each item being tested in parallel.
Namespace: Gemstone.Collections.CollectionExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static bool AllParallel<TSource>(
this IEnumerable<TSource>? source,
Func<TSource, bool> predicate,
ParallelOptions? options = null
)
<ExtensionAttribute>
Public Shared Function AllParallel(Of TSource) (
source As IEnumerable(Of TSource),
predicate As Func(Of TSource, Boolean),
Optional options As ParallelOptions = Nothing
) As Boolean
public:
[ExtensionAttribute]
generic<typename TSource>
static bool AllParallel(
IEnumerable<TSource>^ source,
Func<TSource, bool>^ predicate,
ParallelOptions^ options = nullptr
)
JavaScript does not support generic types or methods.
- source IEnumerableTSource
- An IEnumerableT that contains the elements to apply the predicate to.
- predicate FuncTSource, Boolean
- A function to test each element for a condition.
- options ParallelOptions (Optional)
- Any ParallelOptions to apply.
- TSource
- The type of the elements of source.
Booleantrue if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise,
false.
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).
ArgumentNullException | source or predicate is null. |