- Timestamp:
- 05/07/20 17:41:18 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/Results
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/Results/IResultParameter.cs
r17522 r17525 28 28 public interface IResultDefinition { 29 29 string Name { get; set; } 30 IItem Get(ResultCollection results); 30 31 } 31 32 32 33 [StorableType("4c0c854b-676d-4ccd-96c4-b06a3d7f2fa1")] 33 34 public interface IResultDefinition<T> : IResultDefinition where T : class, IItem { 34 T Get(ResultCollection results);35 new T Get(ResultCollection results); 35 36 } 36 37 -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/Results/ResultParameter.cs
r17522 r17525 64 64 65 65 string IResultDefinition.Name { get => ActualName; set => ActualName = value; } 66 T IResultDefinition<T>.Get(ResultCollection results) => results[ActualName].Value as T; 66 T IResultDefinition<T>.Get(ResultCollection results) => ((IResultDefinition)this).Get(results) as T; 67 IItem IResultDefinition.Get(ResultCollection results) => results[ActualName].Value; 67 68 68 69 [StorableConstructor]
Note: See TracChangeset
for help on using the changeset viewer.