public QuickSortSnapShotsXML(IEnumerable<SortAlgorithmSnapShot> shots) { int i = 0; SnapShots = new QuickSortSnapShotXML[shots.Count()]; foreach (SortAlgorithmSnapShot shot in shots) { SnapShots[i] = new QuickSortSnapShotXML(shot); i = i + 1; } }
public QuickSortSnapShotsXML(IEnumerable <SortAlgorithmSnapShot> shots) { int i = 0; SnapShots = new QuickSortSnapShotXML[shots.Count()]; foreach (SortAlgorithmSnapShot shot in shots) { SnapShots[i] = new QuickSortSnapShotXML(shot); i = i + 1; } }