Ignore:
Timestamp:
02/23/21 16:36:44 (8 weeks ago)
Author:
dpiringe
Message:

#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:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/EnumTypeConverter.cs

    r17828 r17843  
    1010  public class EnumTypeConverter : BaseConverter {
    1111    public override int Priority => 1;
    12     public override Type ConvertableType => typeof(EnumValue<>);
    1312
    1413    public override bool CanConvertType(Type t) =>
    1514      typeof(EnumValue<>).IsAssignableFrom(t) ||
    16       (t.IsGenericType && t.GetGenericTypeDefinition() == ConvertableType);
     15      (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(EnumValue<>));
    1716
    1817    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) =>
Note: See TracChangeset for help on using the changeset viewer.