source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItems/ResultJsonItem.cs @ 17843

Last change on this file since 17843 was 17843, checked in by dpiringe, 7 weeks ago

#3026

  • removed property ConvertableType from all converters
  • removed the option to fixate or loosen the path of JsonItems (obsolete)
  • added a abstract formatter SymbolicRegressionSolutionFormatterBase as base formatter for ISymbolicRegressionSolution
  • unified the construction of exporter controls
  • code cleanup
File size: 547 bytes
Line 
1using System;
2using Newtonsoft.Json.Linq;
3
4namespace HeuristicLab.JsonInterface {
5  public class ResultJsonItem : JsonItem, IResultJsonItem {
6    public string ResultFormatterType { get; set; }
7
8    public Type ValueType { get; set; }
9
10    protected override ValidationResult Validate() => ValidationResult.Successful();
11
12    public override void SetJObject(JObject jObject) {
13      base.SetJObject(jObject);
14      ResultFormatterType = (jObject[nameof(IResultJsonItem.ResultFormatterType)]?.ToObject<string>());
15    }
16
17  }
18}
Note: See TracBrowser for help on using the repository browser.