Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/07/10 02:21:01 (14 years ago)
Author:
swagner
Message:

Fixed bug in DataTableValuesCollector and ResultsCollector (#999)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Operators/3.3/ResultsCollector.cs

    r3687 r3690  
    2020#endregion
    2121
     22using System.Collections;
    2223using HeuristicLab.Common;
    2324using HeuristicLab.Core;
     
    6263          string name = lookupParam != null ? lookupParam.TranslatedName : param.Name;
    6364
     65          IScopeTreeLookupParameter scopeTreeLookupParam = param as IScopeTreeLookupParameter;
     66          if ((scopeTreeLookupParam != null) && (scopeTreeLookupParam.Depth == 0)) {
     67            IEnumerator enumerator = ((IEnumerable)value).GetEnumerator();
     68            if (enumerator.MoveNext())
     69              value = (IItem)enumerator.Current;
     70          }
     71
    6472          results.TryGetValue(name, out result);
    6573          if (result != null)
Note: See TracChangeset for help on using the changeset viewer.