Changeset 17374 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/BaseConverter.cs
- Timestamp:
- 12/06/19 14:39:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/BaseConverter.cs
r17371 r17374 20 20 public JsonItem Extract(IItem value) { 21 21 JsonItem data = ExtractData(value); 22 data.Name = String.IsNullOrEmpty(data.Name) ? value.ItemName : data.Name; 22 data.Name = string.IsNullOrEmpty(data.Name) ? value.ItemName : data.Name; 23 data.Type = string.IsNullOrEmpty(data.Type) ? value.GetType().AssemblyQualifiedName : data.Type; 23 24 return data; 24 25 } … … 87 88 protected object GetDefaultValue(Type t) => t.IsValueType ? Activator.CreateInstance(t) : null; 88 89 89 90 91 90 #endregion 92 91 }
Note: See TracChangeset
for help on using the changeset viewer.