- Timestamp:
- 09/16/19 23:48:36 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Operators/3.3/Operator.cs
r17226 r17254 24 24 using System.Linq; 25 25 using System.Threading; 26 using HEAL.Attic; 26 27 using HeuristicLab.Common; 27 28 using HeuristicLab.Core; 28 using HEAL.Attic;29 29 30 30 namespace HeuristicLab.Operators { … … 119 119 ExecutionContext = context; 120 120 this.cancellationToken = cancellationToken; 121 foreach (ILookupParameter param in Parameters.OfType<ILookupParameter>()) 121 foreach (var param in Parameters.OfType<ILookupParameter>()) 122 param.ExecutionContext = context; 123 foreach (var param in Parameters.OfType<IContextLookupParameter>()) 122 124 param.ExecutionContext = context; 123 125 IOperation next = Apply(); … … 126 128 } 127 129 finally { 128 foreach (ILookupParameter param in Parameters.OfType<ILookupParameter>()) 130 foreach (var param in Parameters.OfType<ILookupParameter>()) 131 param.ExecutionContext = null; 132 foreach (var param in Parameters.OfType<IContextLookupParameter>()) 129 133 param.ExecutionContext = null; 130 134 ExecutionContext = null;
Note: See TracChangeset
for help on using the changeset viewer.