- Timestamp:
- 11/19/21 15:35:05 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Parameters/3.3/ContextLookupParameter.cs
r17257 r18085 7 7 [Item("ContextLookupParameter", "A parameter that looks up contexts by type.")] 8 8 [StorableType("4ac189c8-6cf3-48fd-bf79-392d35a872db")] 9 public class ContextLookupParameter<T> : ContextParameter, IContextLookupParameter<T>9 public abstract class ContextLookupParameter<T> : ContextParameter, IContextLookupParameter<T> 10 10 where T : class, IParameterizedItem { 11 11 … … 17 17 protected ContextLookupParameter(StorableConstructorFlag _) : base(_) { } 18 18 protected ContextLookupParameter(ContextLookupParameter<T> original, Cloner cloner) : base(original, cloner) { } 19 public ContextLookupParameter() : base("ContextLookup." + typeof(T).Name, string.Empty, typeof(T)) { 19 protected ContextLookupParameter() : this("ContextLookup." + typeof(T).Name) { } 20 protected ContextLookupParameter(string name) : this(name, string.Empty) { } 21 protected ContextLookupParameter(string name, string description) : base(name, description, typeof(T)) { 20 22 Hidden = true; 21 }22 23 public override IDeepCloneable Clone(Cloner cloner) {24 return new ContextLookupParameter<T>(this, cloner);25 23 } 26 24
Note: See TracChangeset
for help on using the changeset viewer.