RandomEnumerator<T> Class

Iterates over the items of a collection in a random manner. Every member of the collection is used exactly once.

Definition

Namespace: Extreme.Mathematics.Random
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public class RandomEnumerator<T> : IEnumerator<T>, 
	IEnumerator, IDisposable
Inheritance
Object  →  RandomEnumerator<T>
Implements
IEnumerator<T>, IEnumerator, IDisposable

Type Parameters

T

Constructors

RandomEnumerator<T>(IList<T>) Constructs a new RandomEnumerator<T> object.
RandomEnumerator<T>(IList<T>, Random) Constructs a new RandomEnumerator<T> object.

Properties

Current Gets the current value of the enumerator.

Methods

DisposeReleases all resources used by the RandomEnumerator<T>
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
MoveNext Advances the enumerator.
Reset Resets the enumerator.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also