- Timestamp:
- 08/06/10 16:59:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableSerializer.cs
r4068 r4175 40 40 [StorableClass] 41 41 public sealed class StorableSerializer : ICompositeSerializer { 42 43 public StorableSerializer() { 44 accessorListCache = new AccessorListCache(); 45 accessorCache = new AccessorCache(); 46 constructorCache = new Dictionary<Type, Constructor>(); 47 hookCache = new Dictionary<HookDesignator, List<StorableReflection.Hook>>(); 48 } 42 49 43 50 #region ICompositeSerializer implementation … … 122 129 try { 123 130 return GetConstructor(type)(); 124 } 125 catch (TargetInvocationException x) { 131 } catch (TargetInvocationException x) { 126 132 throw new PersistenceException( 127 133 "Could not instantiate storable object: Encountered exception during constructor call", … … 174 180 private sealed class AccessorListCache : Dictionary<Type, IEnumerable<DataMemberAccessor>> { } 175 181 private sealed class AccessorCache : Dictionary<MemberInfo, DataMemberAccessor> { } 182 private delegate object Constructor(); 176 183 177 184 #endregion … … 179 186 #region caches 180 187 181 private AccessorListCache accessorListCache = new AccessorListCache(); 182 private AccessorCache accessorCache = new AccessorCache(); 183 184 private delegate object Constructor(); 185 186 private Dictionary<Type, Constructor> constructorCache = 187 new Dictionary<Type, Constructor>(); 188 189 private Dictionary<HookDesignator, List<StorableReflection.Hook>> hookCache = 190 new Dictionary<HookDesignator, List<StorableReflection.Hook>>(); 188 private AccessorListCache accessorListCache; 189 private AccessorCache accessorCache; 190 private Dictionary<Type, Constructor> constructorCache; 191 private Dictionary<HookDesignator, List<StorableReflection.Hook>> hookCache; 191 192 192 193 #endregion
Note: See TracChangeset
for help on using the changeset viewer.