Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/UnsupportedJsonItem.cs @ 17433

Last change on this file since 17433 was 17433, checked in by dpiringe, 4 years ago

#3026:

  • added property Description in IJsonItem and updated all construction calls
  • updated UnsupportedJsonItem with unsupported property Description
  • updated JsonItemBaseControl and JsonItemVMBase for new property Description
File size: 1.4 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using Newtonsoft.Json;
7
8namespace HeuristicLab.JsonInterface {
9  public class UnsupportedJsonItem : JsonItem {
10    public override string Name {
11      get => throw new NotSupportedException();
12      set => throw new NotSupportedException();
13    }
14
15    public override string Description {
16      get => throw new NotSupportedException();
17      set => throw new NotSupportedException();
18    }
19
20    public override string Path {
21      get => throw new NotSupportedException();
22    }
23
24    [JsonIgnore]
25    public override IList<IJsonItem> Children {
26      get => throw new NotSupportedException();
27      protected set => throw new NotSupportedException();
28    }
29
30    [JsonIgnore]
31    public override IJsonItem Parent {
32      get => throw new NotSupportedException();
33      set => throw new NotSupportedException();
34    }
35
36    public override object Value {
37      get => throw new NotSupportedException();
38      set => throw new NotSupportedException();
39    }
40
41    public override IEnumerable<object> Range {
42      get => throw new NotSupportedException();
43      set => throw new NotSupportedException();
44    }
45
46    public override string ActualName {
47      get => throw new NotSupportedException();
48      set => throw new NotSupportedException();
49    }
50  }
51}
Note: See TracBrowser for help on using the repository browser.