- Timestamp:
- 10/02/19 12:44:44 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/LookupParameterConverter.cs
r17284 r17287 8 8 namespace HeuristicLab.JsonInterface { 9 9 public class LookupParameterConverter : ParameterBaseConverter { 10 public override JsonItem ExtractData(IParameter value) { 11 return new JsonItem() { Name = value.Name }; 12 } 10 public override JsonItem ExtractData(IParameter value) => 11 new JsonItem() { 12 Name = value.Name, 13 Default = value.Cast<ILookupParameter>().ActualName 14 }; 13 15 14 public override void InjectData(IParameter parameter, JsonItem data) {15 16 }16 public override void InjectData(IParameter parameter, JsonItem data) => 17 parameter.Cast<ILookupParameter>().ActualName = data.Default.Cast<string>(); 18 17 19 } 18 20 }
Note: See TracChangeset
for help on using the changeset viewer.