Beispiel #1
0
 /// <summary>
 /// Construct a enumerator with the parent object.
 /// </summary>
 /// <param name="source">The source Variations object.</param>
 public EnumeratorWithoutRepetition(Variations <T> source)
 {
     myParent = source;
     myPermutationsEnumerator = (Permutations <int> .Enumerator)myParent.myPermutations.GetEnumerator();
 }
Beispiel #2
0
 /// <summary>
 /// Construct a enumerator with the parent object.
 /// </summary>
 /// <param name="source">The source Variations object.</param>
 public EnumeratorWithRepetition(Variations <T> source)
 {
     myParent = source;
     Reset();
 }