- Timestamp:
- 07/07/19 23:40:10 (5 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
-
stable/HeuristicLab.Persistence
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Persistence/3.3/Core/Configuration.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System; 23 23 using System.Collections.Generic; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Attic; 25 25 using HeuristicLab.Persistence.Interfaces; 26 26 … … 32 32 /// <c>ConfigurationService</c>. 33 33 /// </summary> 34 [Storable Class]34 [StorableType("72F8B3EA-0BC3-43A8-9B58-EF798C154CF3")] 35 35 public class Configuration { 36 36 … … 50 50 51 51 [StorableConstructor] 52 protected Configuration( bool isDeserializing) {52 protected Configuration(StorableConstructorFlag _) { 53 53 compositeSerializerCache = new Dictionary<Type, ICompositeSerializer>(); 54 if (isDeserializing) 55 return; 54 } 55 56 public Configuration() { 57 compositeSerializerCache = new Dictionary<Type, ICompositeSerializer>(); 56 58 primitiveSerializers = new Dictionary<Type, IPrimitiveSerializer>(); 57 59 compositeSerializers = new List<ICompositeSerializer>(); 58 60 } 61 59 62 60 63 /// <summary> … … 67 70 IEnumerable<IPrimitiveSerializer> primitiveSerializers, 68 71 IEnumerable<ICompositeSerializer> compositeSerializers) 69 : this( false) {72 : this() { 70 73 this.Format = format; 71 74 this.compositeSerializers.AddRange(compositeSerializers); … … 131 134 /// <returns>A new <see cref="Configuration"/></returns> 132 135 public Configuration Copy() { 133 var config = new Configuration( false);136 var config = new Configuration(); 134 137 config.Format = Format; 135 138 foreach (var ps in primitiveSerializers)
Note: See TracChangeset
for help on using the changeset viewer.