Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using Newtonsoft.Json;
|
---|
5 |
|
---|
6 | namespace 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.