- Timestamp:
- 01/10/11 02:26:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurations/ParameterConfiguration.cs
r5231 r5262 209 209 if (IsSubclassOfRawGeneric(typeof(OptionalConstrainedValueParameter<>), parameter.GetType())) { 210 210 var x = (IEnumerable)parameter.GetType().GetProperty("ValidValues").GetValue(parameter, new object[] { }); 211 return new ItemSet<IItem>(x.Cast<IItem>() );211 return new ItemSet<IItem>(x.Cast<IItem>().Select(y => (IItem)y.Clone())); 212 212 } else { 213 213 return null;
Note: See TracChangeset
for help on using the changeset viewer.