Table of Contents

Class ParallelEnumerator<T1, T2>

Namespace
Garyon.Objects.Enumerators
Assembly
Garyon.dll

Provides a mechanism for parallelly enumerating 2 IEnumerable<T> objects.

public sealed class ParallelEnumerator<T1, T2> : BaseParallelEnumerator<T1, T2>, IEnumerator<(T1?, T2?)>, IEnumerator, IDisposable

Type Parameters

T1
T2
Inheritance
ParallelEnumerator<T1, T2>
Implements
IEnumerator<(T1, T2)>
Inherited Members
Extension Methods

Constructors

ParallelEnumerator(IEnumerable<T1>, IEnumerable<T2>)

Initializes a new instance of the ParallelEnumerator<T1, T2> class from 2 IEnumerable<T> objects.

public ParallelEnumerator(IEnumerable<T1> enumerable1, IEnumerable<T2> enumerable2)

Parameters

enumerable1 IEnumerable<T1>

The first enumerable.

enumerable2 IEnumerable<T2>

The second enumerable.

Properties

Current

Gets a tuple containing the current values of both enumerators. If any enumerator is beyond the end of the collection, the respective value is equal to default.

public (T1?, T2?) Current { get; }

Property Value

(T1, T2)