Changeset 17406 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueLookupParameterConverter.cs
- Timestamp:
- 01/27/20 10:33:01 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueLookupParameterConverter.cs
r17394 r17406 11 11 public override Type ConvertableType => typeof(IValueLookupParameter); 12 12 13 public override void Populate(IParameter value, JsonItem item, IJsonItemConverter root) {13 public override void Populate(IParameter value, IJsonItem item, IJsonItemConverter root) { 14 14 IValueLookupParameter param = value as IValueLookupParameter; 15 15 … … 20 20 IEnumerable<object> actualRange = null; 21 21 if(param.Value != null) { 22 JsonItem tmp = root.Extract(param.Value, root);22 IJsonItem tmp = root.Extract(param.Value, root); 23 23 tmp.Parent = item; 24 24 actualValue = tmp.Value; … … 31 31 } 32 32 33 public override void InjectData(IParameter parameter, JsonItem data, IJsonItemConverter root) {33 public override void InjectData(IParameter parameter, IJsonItem data, IJsonItemConverter root) { 34 34 IValueLookupParameter param = parameter as IValueLookupParameter; 35 35 param.ActualName = CastValue<string>(data.ActualName);
Note: See TracChangeset
for help on using the changeset viewer.