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