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/ValueParameterConverter.cs

    r17284 r17342  
    99  public class ValueParameterConverter : ParameterBaseConverter {
    1010
    11     public override void InjectData(IParameter parameter, JsonItem data) =>
     11    public override void InjectData(IParameter parameter, JsonItem data) {
     12      if (parameter.ActualValue == null && data.Value != null)
     13        parameter.ActualValue = Instantiate(parameter.DataType);
    1214      JsonItemConverter.Inject(parameter.ActualValue, data);
     15    }
    1316
    1417    public override JsonItem ExtractData(IParameter value) {
Note: See TracChangeset for help on using the changeset viewer.