Changeset 11689
- Timestamp:
- 12/16/14 18:35:39 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Classification-Extensions/HeuristicLab.Optimization/3.3/ResultCollection.cs
r11171 r11689 44 44 get { return HeuristicLab.Common.Resources.VSImageLibrary.Object; } 45 45 } 46 47 public void CollectResultValues(IDictionary<string, IItem> values) { 48 CollectResultsRecursively("", this, values); 49 } 50 public void CollectResultValues(IDictionary<string, IItem> values, string resultsRootName) { 51 CollectResultsRecursively(resultsRootName, this, values); 52 } 53 54 protected void CollectResultsRecursively(string path, ResultCollection results, IDictionary<string, IItem> values) { 55 foreach (IResult result in results) { 56 values.Add(path + result.Name, result.Value); 57 ResultCollection childCollection = result.Value as ResultCollection; 58 if (childCollection != null) { 59 CollectResultsRecursively(path + result.Name + ".", childCollection, values); 60 } 61 } 62 } 46 63 } 47 64 }
Note: See TracChangeset
for help on using the changeset viewer.