- Timestamp:
- 05/06/10 23:34:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Parameters/3.3/ScopeTreeLookupParameter.cs
r3663 r3687 73 73 74 74 protected override IItem GetActualValue() { 75 string name = LookupParameter<ItemArray<T>>.TranslateName(Name, ExecutionContext);76 77 75 IEnumerable<IScope> scopes = new IScope[] { ExecutionContext.Scope }; 78 76 for (int i = 0; i < depth; i++) 79 77 scopes = scopes.Select(x => (IEnumerable<IScope>)x.SubScopes).Aggregate((a, b) => a.Concat(b)); 80 78 79 string name = TranslatedName; 81 80 List<T> values = new List<T>(); 82 81 IVariable var; … … 105 104 ); 106 105 107 string name = LookupParameter<ItemArray<T>>.TranslateName(Name, ExecutionContext);108 109 106 IEnumerable<IScope> scopes = new IScope[] { ExecutionContext.Scope }; 110 107 for (int i = 0; i < depth; i++) … … 113 110 if (scopes.Count() != values.Length) throw new InvalidOperationException("Number of values is not equal to number of scopes."); 114 111 112 string name = TranslatedName; 115 113 int j = 0; 116 114 IVariable var;
Note: See TracChangeset
for help on using the changeset viewer.