Class ParallelEnumerator<T1, T2, T3, T4>
- Namespace
- Garyon.Objects.Enumerators
- Assembly
- Garyon.dll
Provides a mechanism for parallelly enumerating 4 IEnumerable<T> objects.
public sealed class ParallelEnumerator<T1, T2, T3, T4> : BaseParallelEnumerator<T1, T2, T3, T4>, IEnumerator<(T1?, T2?, T3?, T4?)>, IEnumerator, IDisposable
Type Parameters
T1T2T3T4
- Inheritance
-
BaseParallelEnumerator<T1, T2>BaseParallelEnumerator<T1, T2, T3>BaseParallelEnumerator<T1, T2, T3, T4>ParallelEnumerator<T1, T2, T3, T4>
- Implements
-
IEnumerator<(T1, T2, T3, T4)>
- Inherited Members
- Extension Methods
Constructors
ParallelEnumerator(IEnumerable<T1>, IEnumerable<T2>, IEnumerable<T3>, IEnumerable<T4>)
Initializes a new instance of the ParallelEnumerator<T1, T2, T3> class from 4 IEnumerable<T> objects.
public ParallelEnumerator(IEnumerable<T1> enumerable1, IEnumerable<T2> enumerable2, IEnumerable<T3> enumerable3, IEnumerable<T4> enumerable4)
Parameters
enumerable1IEnumerable<T1>The first enumerable.
enumerable2IEnumerable<T2>The second enumerable.
enumerable3IEnumerable<T3>The third enumerable.
enumerable4IEnumerable<T4>The fourth enumerable.
Properties
Current
Gets a tuple containing the current values of all enumerators. If any enumerator is beyond the end of the collection, the respective value is equal to default.
public (T1?, T2?, T3?, T4?) Current { get; }
Property Value
- (T1, T2, T3, T4)