Changeset 17828 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/UnsupportedJsonItem.cs
- Timestamp:
- 02/01/21 14:37:18 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/UnsupportedJsonItem.cs
r17519 r17828 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Linq; 3 4 using Newtonsoft.Json; 4 5 5 6 namespace HeuristicLab.JsonInterface { 6 7 public class UnsupportedJsonItem : JsonItem { 8 /* 7 9 public override string Name { 8 10 get => throw new NotSupportedException(); … … 10 12 } 11 13 12 public override string Description { 14 public override string Description { // TODO 13 15 get => throw new NotSupportedException(); 14 16 set => throw new NotSupportedException(); … … 18 20 get => throw new NotSupportedException(); 19 21 } 22 */ 20 23 21 24 [JsonIgnore] 22 25 public override IEnumerable<IJsonItem> Children { 23 get => throw new NotSupportedException();26 get => Enumerable.Empty<IJsonItem>(); 24 27 protected set => throw new NotSupportedException(); 25 28 } 26 29 /* 27 30 [JsonIgnore] 28 31 public override IJsonItem Parent { … … 30 33 set => throw new NotSupportedException(); 31 34 } 32 35 */ 33 36 protected override ValidationResult Validate() => ValidationResult.Successful(); 34 37 }
Note: See TracChangeset
for help on using the changeset viewer.