Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/18/11 17:47:49 (13 years ago)
Author:
cneumuel
Message:

#1215

  • minor fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/ConstrainedTypeValue.cs

    r5313 r5328  
    1616
    1717    [Storable]
    18     IEnumerable<Type> validTypes;
     18    private IEnumerable<Type> validTypes;
    1919    public IEnumerable<Type> ValidTypes {
    2020      get { return validTypes; }
     
    4949
    5050    public ConstrainedTypeValue() : base() {
    51       this.ValidTypes = ApplicationManager.Manager.GetTypes(typeof(T), true);
     51      this.ValidTypes = ApplicationManager.Manager.GetTypes(typeof(T), true).ToList();
    5252      this.Value = ValidTypes.First();
    5353    }
    5454    public ConstrainedTypeValue(Type value) : base() {
    55       this.ValidTypes = ApplicationManager.Manager.GetTypes(typeof(T), true);
     55      this.ValidTypes = ApplicationManager.Manager.GetTypes(typeof(T), true).ToList();
    5656      this.Value = value;
    5757    }
Note: See TracChangeset for help on using the changeset viewer.