Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/17 18:41:01 (8 years ago)
Author:
gkronber
Message:

#2520 work in progress to support loading/saving of all samples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceOverhaul/HeuristicLab.Persistence/4.0/Transformers/StorableClassTransformer.cs

    r14711 r14713  
    3030  internal sealed class StorableClassBoxTransformer : BoxTransformer<object> {
    3131    public override bool CanTransformType(Type type) {
    32       return StorableTypeAttribute.IsStorableType(type) && !type.IsValueType || // don't transform structs
     32      return StorableTypeAttribute.IsStorableType(type) && !type.IsValueType && !type.IsEnum || // don't transform structs or enums
    3333        type.BaseType != null && CanTransformType(type.BaseType);
    3434    }
Note: See TracChangeset for help on using the changeset viewer.