Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/22/19 17:32:52 (5 years ago)
Author:
dpiringe
Message:

#3026

  • in JsonItem:
    • renamed property Default to Value
    • removed usage of Reference for ValueLookupParameter
    • created new property ActualName for the actual name and using property Value for the value of an ValueLookupParameter
  • fixed a bug in ValueTypeMatrixConverter -> now it correctly resizes ValueTypeMatrix<T>
  • fixed a bug in ValueParameterConverter -> when ActualValue is null, but there is data for it, a new instance will get created
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/EnumTypeConverter.cs

    r17284 r17342  
    1212      item.Cast<dynamic>().Value = Enum.Parse(
    1313        item.GetType().GenericTypeArguments.First(),
    14         CastValue<string>(data.Default));
     14        CastValue<string>(data.Value));
    1515
    1616    public override JsonItem ExtractData(IItem value) {
     
    1818      object val = ((dynamic)value).Value;
    1919      Type enumType = val.GetType();
    20       data.Default = Enum.GetName(enumType, val);
     20      data.Value = Enum.GetName(enumType, val);
    2121      data.Range = Enum.GetNames(enumType);
    2222      return data;
Note: See TracChangeset for help on using the changeset viewer.