Changeset 5328 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/ConstrainedTypeValue.cs
- Timestamp:
- 01/18/11 17:47:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/ConstrainedTypeValue.cs
r5313 r5328 16 16 17 17 [Storable] 18 IEnumerable<Type> validTypes;18 private IEnumerable<Type> validTypes; 19 19 public IEnumerable<Type> ValidTypes { 20 20 get { return validTypes; } … … 49 49 50 50 public ConstrainedTypeValue() : base() { 51 this.ValidTypes = ApplicationManager.Manager.GetTypes(typeof(T), true) ;51 this.ValidTypes = ApplicationManager.Manager.GetTypes(typeof(T), true).ToList(); 52 52 this.Value = ValidTypes.First(); 53 53 } 54 54 public ConstrainedTypeValue(Type value) : base() { 55 this.ValidTypes = ApplicationManager.Manager.GetTypes(typeof(T), true) ;55 this.ValidTypes = ApplicationManager.Manager.GetTypes(typeof(T), true).ToList(); 56 56 this.Value = value; 57 57 }
Note: See TracChangeset
for help on using the changeset viewer.