Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/12 15:21:28 (12 years ago)
Author:
sforsten
Message:

#1784: changes have been applied, according to the review comments of mkommend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Classification/3.4/RealWorld/RealWorldInstanceProvider.cs

    r7758 r7805  
    5252      if (!String.IsNullOrEmpty(solutionsArchiveName)) {
    5353        using (var solutionsZipFile = new ZipInputStream(GetType().Assembly.GetManifestResourceStream(solutionsArchiveName))) {
    54           foreach (var entry in GetZipContents(solutionsZipFile).OrderBy(x => x)) {
     54          IList<string> entries = new List<string>();
     55          ZipEntry curEntry;
     56          while ((curEntry = solutionsZipFile.GetNextEntry()) != null) {
     57            entries.Add(curEntry.Name);
     58          }
     59          foreach (var entry in entries.OrderBy(x => x)) {
    5560            string prettyName = Path.GetFileNameWithoutExtension(entry);
    5661            IDataDescriptor desc = descriptorList.Where(x => x.Name.Equals(prettyName)).FirstOrDefault();
Note: See TracChangeset for help on using the changeset viewer.