/// <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(); }
/// <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(); }