Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ResultParameterConverter.cs

Last change on this file was 18059, checked in by dpiringe, 3 years ago

#3026

  • removed/renamed all interfaces, classes and views related to results (are replaced by RunCollectionModifiers)
  • fixed a bug in JsonTemplateInstantiator to prevent errors for opening templates without a defined property for RunCollectionModifiers
File size: 587 bytes
RevLine 
[17446]1using System;
2using System.Linq;
3using HeuristicLab.Core;
4using HeuristicLab.Optimization;
5
6namespace HeuristicLab.JsonInterface {
7  public class ResultParameterConverter : BaseConverter {
8    public override int Priority => 5;
9
[17828]10    public override bool CanConvertType(Type t) =>
[17843]11      t.GetInterfaces().Any(x => x == typeof(IResultParameter));
[17828]12
[17446]13    public override IJsonItem Extract(IItem value, IJsonItemConverter root) {
[18059]14      return new UnsupportedJsonItem();
[17446]15    }
16
[18059]17    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {}
[17446]18  }
19}
Note: See TracBrowser for help on using the repository browser.