Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItems/UnsupportedJsonItem.cs @ 18043

Last change on this file since 18043 was 18043, checked in by dpiringe, 3 years ago

#3026

  • code cleanup
File size: 470 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using Newtonsoft.Json;
5
6namespace HeuristicLab.JsonInterface {
7  public class UnsupportedJsonItem : JsonItem {
8
9    [JsonIgnore]
10    public override IEnumerable<IJsonItem> Children {
11      get => Enumerable.Empty<IJsonItem>();
12      protected set => throw new NotSupportedException();
13    }
14
15    protected override ValidationResult Validate() => ValidationResult.Successful();
16  }
17}
Note: See TracBrowser for help on using the repository browser.