Changeset 14711 for branches/PersistenceOverhaul/HeuristicLab.Persistence/4.0/Transformers/StorableClassTransformer.cs
- Timestamp:
- 03/03/17 11:41:43 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceOverhaul/HeuristicLab.Persistence/4.0/Transformers/StorableClassTransformer.cs
r14594 r14711 30 30 internal sealed class StorableClassBoxTransformer : BoxTransformer<object> { 31 31 public override bool CanTransformType(Type type) { 32 return StorableClassAttribute.IsStorableClass(type) || type.BaseType != null && CanTransformType(type.BaseType); 32 return StorableTypeAttribute.IsStorableType(type) && !type.IsValueType || // don't transform structs 33 type.BaseType != null && CanTransformType(type.BaseType); 33 34 } 34 35
Note: See TracChangeset
for help on using the changeset viewer.