- Timestamp:
- 03/14/10 01:06:17 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/ArraySerializer.cs
r2994 r3017 8 8 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 9 9 10 [StorableClass (StorableClassType.Empty)]10 [StorableClass] 11 11 public class ArraySerializer : ICompositeSerializer { 12 12 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/CompactNumberArray2StringSerializer.cs
r2994 r3017 10 10 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 11 11 12 [StorableClass (StorableClassType.Empty)]12 [StorableClass] 13 13 public class CompactNumberArray2StringSerializer : ICompositeSerializer { 14 14 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/DictionarySerializer.cs
r2994 r3017 9 9 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 10 10 11 [StorableClass (StorableClassType.Empty)]11 [StorableClass] 12 12 public class DictionarySerializer : ICompositeSerializer { 13 13 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/EnumSerializer.cs
r2994 r3017 7 7 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 8 8 9 [StorableClass (StorableClassType.Empty)]9 [StorableClass] 10 10 public class EnumSerializer : ICompositeSerializer { 11 11 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/EnumerableSerializer.cs
r2994 r3017 10 10 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 11 11 12 [StorableClass (StorableClassType.Empty)]12 [StorableClass] 13 13 public class EnumerableSerializer : ICompositeSerializer { 14 14 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/KeyValuePairSerializer.cs
r2994 r3017 9 9 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 10 10 11 [StorableClass (StorableClassType.Empty)]11 [StorableClass] 12 12 public class KeyValuePairSerializer : ICompositeSerializer { 13 13 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Number2StringSerializer.cs
r2994 r3017 12 12 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 13 13 14 [StorableClass (StorableClassType.Empty)]14 [StorableClass] 15 15 public class Number2StringSerializer : ICompositeSerializer { 16 16 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/NumberEnumerable2StringSerializer.cs
r2994 r3017 11 11 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 12 12 13 [StorableClass (StorableClassType.Empty)]13 [StorableClass] 14 14 public class NumberEnumerable2StringSerializer : ICompositeSerializer { 15 15 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/StackSerializer.cs
r2994 r3017 10 10 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 11 11 12 [StorableClass (StorableClassType.Empty)]12 [StorableClass] 13 13 public class StackSerializer : ICompositeSerializer { 14 14 -
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 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/StructSerializer.cs
r2994 r3017 10 10 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 11 11 12 [StorableClass (StorableClassType.Empty)]12 [StorableClass] 13 13 public class StructSerializer : ICompositeSerializer { 14 14 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/TypeSerializer.cs
r2994 r3017 8 8 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 9 9 10 [StorableClass (StorableClassType.Empty)]10 [StorableClass] 11 11 public class TypeSerializer : ICompositeSerializer { 12 12
Note: See TracChangeset
for help on using the changeset viewer.