Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/JsonItems.cs @ 17417

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

#3026:

  • added initial VM (ArrayValueVM) and control for array values (JsonItemArrayValueControl)
  • new types of JsonItems for better type safety:
    • for arrays: DoubleArrayJsonItem, IntArrayJsonItem, BoolArrayJsonItem
    • for matrix: DoubleMatrixJsonItem, IntMatrixJsonItem, BoolMatrixJsonItem
  • refactored ValueTypeArrayConverter and ValueTypeMatrixConverter -> better type safety with new JsonItems
  • enhanced StringValueVM and implemented JsonItemValidValuesControl with MVVM architecture
  • the VM of JsonItemBaseControl is now protected (was private)
  • improved JsonItem<V,R> -> now handles JTokens correctly
File size: 824 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace HeuristicLab.JsonInterface {
8  public class IntJsonItem : JsonItem<int> {}
9  public class IntArrayJsonItem: JsonItem<int[], int> { }
10  public class IntMatrixJsonItem : JsonItem<int[][], int> { }
11
12  public class DoubleJsonItem: JsonItem<double> {}
13  public class DoubleArrayJsonItem: JsonItem<double[], double> { }
14  public class DoubleMatrixJsonItem : JsonItem<double[][], double> { }
15
16  public class BoolJsonItem: JsonItem<bool> { }
17  public class BoolArrayJsonItem : JsonItem<bool[], bool> { }
18  public class BoolMatrixJsonItem : JsonItem<bool[][], bool> { }
19
20  public class StringJsonItem: JsonItem<string> {}
21
22  public class DateTimeJsonItem: JsonItem<DateTime> {}
23}
Note: See TracBrowser for help on using the repository browser.