Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/14/10 01:06:17 (14 years ago)
Author:
epitzer
Message:

Merge StorableClassType.Empty into StorableClassType.MarkedOnly and make it the default if not specified (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableSerializer.cs

    r3016 r3017  
    1111  /// <summary>
    1212  /// Intended for serialization of all custom classes. Classes should have the
    13   /// <c>[StorableClass(StorableClassType.Empty)]</c> attribute set and a serialization mode set.
     13  /// <c>[StorableClass]</c> attribute set and a serialization mode set.
    1414  /// Optionally selected fields and properties can be marked with the
    1515  /// <c>[Storable]</c> attribute.
    1616  /// </summary>
    17   [StorableClass(StorableClassType.Empty)]   
     17  [StorableClass]   
    1818  public class StorableSerializer : ICompositeSerializer {
    1919
     
    3333        StorableConstructorAttribute.GetStorableConstructor(type) == null)
    3434        return "no default constructor and no storable constructor";
    35       return "class or one of its base classes is not empty and has no [StorableClass(StorableClassType.Empty)] attribute";
     35      return "class or one of its base classes is not empty and has no [StorableClass] attribute";
    3636    }
    3737
Note: See TracChangeset for help on using the changeset viewer.