Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/27/20 15:53:26 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • added error output for failed runner initialization
  • reorganised some final view models
  • TargetedJsonItemType (in JsonItemVMBase) now automatically returns the type of the defined JsonItem
  • code cleanup
  • refactored RegressionProblemDataConverter
  • added lots of comments
  • added new view for StringArrayJsonItem
  • added new UI component for concrete restricted items and used it in JsonItemConcreteItemArrayControl and JsonItemValidValuesControl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/JsonItem.cs

    r17485 r17519  
    1 using System;
    2 using System.Collections;
     1using System.Collections;
    32using System.Collections.Generic;
    43using System.Linq;
     
    7675      }
    7776    }
    78        
     77
    7978    // TODO jsonIgnore dataType?
    80 
    8179    [JsonIgnore]
    82     public virtual IList<IJsonItem> Children { get; protected set; }
     80    public virtual IEnumerable<IJsonItem> Children { get; protected set; }
    8381
    8482    [JsonIgnore]
     
    104102      if (Children == null)
    105103        Children = new List<IJsonItem>();
    106       foreach (var child in childs) {
    107         Children.Add(child);
    108         child.Parent = this;
     104      if(Children is IList<IJsonItem> list) {
     105        foreach (var child in childs) {
     106          list.Add(child);
     107          child.Parent = this;
     108        }
    109109      }
    110110    }
Note: See TracChangeset for help on using the changeset viewer.