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/JsonItemConverter.cs

    r17828 r17843  
    88  /// </summary>
    99  public class JsonItemConverter : IJsonItemConverter {
    10    
     10
    1111    #region Properties
    12     private IDictionary<Type, IJsonItemConverter> Converters { get; set; }
    13       = new Dictionary<Type, IJsonItemConverter>();
     12    private IEnumerable<IJsonItemConverter> Converters { get; set; }
     13      = Enumerable.Empty<IJsonItemConverter>();
    1414
    1515    private IDictionary<int, IJsonItem> InjectCache { get; set; }
     
    3535     
    3636      foreach (var x in Converters) {
    37         if (x.Value.CanConvertType(type))
    38           possibleConverters.Add(x.Value);
     37        if (x.CanConvertType(type))
     38          possibleConverters.Add(x);
    3939      }
    40        
    4140
    4241      if(possibleConverters.Count > 0) {
     
    8685    /// Static constructor for default converter configuration.
    8786    /// </summary>
    88     internal JsonItemConverter(IDictionary<Type, IJsonItemConverter> converters) {
     87    internal JsonItemConverter(IEnumerable<IJsonItemConverter> converters) {
    8988      Converters = converters;
    9089    }
Note: See TracChangeset for help on using the changeset viewer.