Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13406


Ignore:
Timestamp:
11/26/15 12:31:36 (9 years ago)
Author:
pfleck
Message:

#2530 Instead of setting a new EnumValue in the parameter, the value of the EnumValue is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/CreateExperimentDialog.cs

    r12680 r13406  
    883883                && typeof(EnumValue<>).IsAssignableFrom(m.Key.Value.GetType().GetGenericTypeDefinition())) {
    884884              var valueParam = (IValueParameter)variant.Parameters[m.Key.Name];
    885               valueParam.Value = m.Value;
     885              dynamic targetEnumValue = valueParam.Value;
     886              dynamic sourceEnumValue = m.Value;
     887              targetEnumValue.Value = sourceEnumValue.Value;
    886888              variant.Name += m.Key.Name + "=" + m.Value + ", ";
    887889            } else {
Note: See TracChangeset for help on using the changeset viewer.