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
Line 
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
10    public override bool CanConvertType(Type t) =>
11      t.GetInterfaces().Any(x => x == typeof(IResultParameter));
12
13    public override IJsonItem Extract(IItem value, IJsonItemConverter root) {
14      return new UnsupportedJsonItem();
15    }
16
17    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {}
18  }
19}
Note: See TracBrowser for help on using the repository browser.