- Timestamp:
- 03/14/10 01:06:17 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableAttribute.cs
r3016 r3017 10 10 /// <summary> 11 11 /// Mark the member of a class to be considered by the <c>StorableSerializer</c>. 12 /// The class must be marked as <c>[StorableClass (StorableClassType.Empty)]</c> and the12 /// The class must be marked as <c>[StorableClass]</c> and the 13 13 /// <c>StorableClassType</c> should be set to <c>MarkedOnly</c> for 14 14 /// this attribute to kick in. -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableClassAttribute.cs
r3016 r3017 13 13 14 14 /// <summary> 15 /// Serialize the class completely empty16 /// (ignore further [Storable] attributes inside the class)17 /// </summary>18 Empty,19 20 /// <summary>21 15 /// Serialize only fields and properties that have been marked 22 /// with the [Storable] attribute 16 /// with the [Storable] attribute. This is the default value. 23 17 /// </summary> 24 18 MarkedOnly, … … 57 51 /// Specify how members are selected for serialization. 58 52 /// </summary> 59 public StorableClassType Type { get; set; } 53 public StorableClassType Type { get; set; } 60 54 61 55 /// <summary> 62 /// Mark a class to be serialize by the <c>StorableSerizlier</c> 63 /// </summary> 56 /// Mark a class to be serialize by the <c>StorableSerizlier</c> 57 /// </summary> 58 /// <param name="type">The storable class type.</param> 64 59 public StorableClassAttribute(StorableClassType type) { 65 60 Type = type; 61 } 62 63 /// <summary> 64 /// Initializes a new instance of the <see cref="StorableClassAttribute"/> class. 65 /// The default value for <see cref="StorableClassType"/> is 66 /// <see cref="StorableClassType.MarkedOnly"/>. 67 /// </summary> 68 public StorableClassAttribute() { 66 69 } 67 70 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableSerializer.cs
r3016 r3017 11 11 /// <summary> 12 12 /// 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. 14 14 /// Optionally selected fields and properties can be marked with the 15 15 /// <c>[Storable]</c> attribute. 16 16 /// </summary> 17 [StorableClass (StorableClassType.Empty)]17 [StorableClass] 18 18 public class StorableSerializer : ICompositeSerializer { 19 19 … … 33 33 StorableConstructorAttribute.GetStorableConstructor(type) == null) 34 34 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"; 36 36 } 37 37
Note: See TracChangeset
for help on using the changeset viewer.