Class ParallellyEnumerable<T1, T2, T3, T4>
- Namespace
- Garyon.Objects.Enumerators
- Assembly
- Garyon.dll
A container object allowing for 4 IEnumerable<T> objects to be parallelly enumerated.
public sealed class ParallellyEnumerable<T1, T2, T3, T4> : BaseParallellyEnumerable<(T1?, T2?, T3?, T4?)>, IEnumerable<(T1?, T2?, T3?, T4?)>, IEnumerable
Type Parameters
T1The type of the elements stored in the first IEnumerable<T>.
T2The type of the elements stored in the second IEnumerable<T>.
T3The type of the elements stored in the third IEnumerable<T>.
T4The type of the elements stored in the fourth IEnumerable<T>.
- Inheritance
-
BaseParallellyEnumerable<(T1, T2, T3, T4)>ParallellyEnumerable<T1, T2, T3, T4>
- Implements
-
IEnumerable<(T1, T2, T3, T4)>
- Inherited Members
- Extension Methods
Constructors
ParallellyEnumerable(IEnumerable<T1>, IEnumerable<T2>, IEnumerable<T3>, IEnumerable<T4>)
Initializes a new instance of the ParallellyEnumerable<T1, T2, T3, T4> class from 4 IEnumerable<T> objects.
public ParallellyEnumerable(IEnumerable<T1> enumerable1, IEnumerable<T2> enumerable2, IEnumerable<T3> enumerable3, IEnumerable<T4> enumerable4)
Parameters
enumerable1IEnumerable<T1>The first IEnumerable<T>.
enumerable2IEnumerable<T2>The second IEnumerable<T>.
enumerable3IEnumerable<T3>The third IEnumerable<T>.
enumerable4IEnumerable<T4>The fourth IEnumerable<T>.
Fields
Enumerable1
The first IEnumerable<T>.
public IEnumerable<T1> Enumerable1
Field Value
- IEnumerable<T1>
Enumerable2
The second IEnumerable<T>.
public IEnumerable<T2> Enumerable2
Field Value
- IEnumerable<T2>
Enumerable3
The third IEnumerable<T>.
public IEnumerable<T3> Enumerable3
Field Value
- IEnumerable<T3>
Enumerable4
The fourth IEnumerable<T>.
public IEnumerable<T4> Enumerable4
Field Value
- IEnumerable<T4>
Methods
GetEnumerator()
Gets the ParallelEnumerator<T1, T2, T3, T4> object that enumerates through the 4 collections.
public override IEnumerator<(T1?, T2?, T3?, T4?)> GetEnumerator()
Returns
- IEnumerator<(T1, T2, T3, T4)>
The ParallelEnumerator<T1, T2, T3, T4> object that enumerates through the 4 collections.