Last change
on this file since 17342 was
17342,
checked in by dpiringe, 5 years ago
|
#3026
- in JsonItem:
- renamed property Default to Value
- removed usage of Reference for ValueLookupParameter
- created new property ActualName for the actual name and using property Value for the value of an ValueLookupParameter
- fixed a bug in ValueTypeMatrixConverter -> now it correctly resizes ValueTypeMatrix<T>
- fixed a bug in ValueParameterConverter -> when ActualValue is null, but there is data for it, a new instance will get created
|
File size:
541 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Threading.Tasks;
|
---|
6 | using HeuristicLab.Core;
|
---|
7 |
|
---|
8 | namespace HeuristicLab.JsonInterface {
|
---|
9 | public class DummyConverter : BaseConverter {
|
---|
10 | public override void InjectData(IItem item, JsonItem data) {
|
---|
11 | // do nothing because the instance already exists and
|
---|
12 | // there are no values to inject
|
---|
13 | }
|
---|
14 |
|
---|
15 | public override JsonItem ExtractData(IItem value) =>
|
---|
16 | new JsonItem() { Value = value.GetType().Name };
|
---|
17 | }
|
---|
18 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.