Esempio n. 1
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;
     _myCurrentList = null;
     _myListIndexes = null;
 }
Esempio n. 2
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();
 }