Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/29/13 14:39:02 (11 years ago)
Author:
mkommend
Message:

#1427: Moved actual value caching and execution contexts from Paramater to LookupParameter.

File:
1 edited

Legend:

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

    r7259 r9195  
    2222using System;
    2323using System.Drawing;
     24using System.Linq;
    2425using System.Threading;
    2526using HeuristicLab.Common;
     
    119120        ExecutionContext = context;
    120121        this.cancellationToken = cancellationToken;
    121         foreach (IParameter param in Parameters)
     122        foreach (ILookupParameter param in Parameters.OfType<ILookupParameter>())
    122123          param.ExecutionContext = context;
    123124        IOperation next = Apply();
     
    126127      }
    127128      finally {
    128         foreach (IParameter param in Parameters)
     129        foreach (ILookupParameter param in Parameters.OfType<ILookupParameter>())
    129130          param.ExecutionContext = null;
    130131        ExecutionContext = null;
Note: See TracChangeset for help on using the changeset viewer.