- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Core/DeSerializer.cs
r3743 r4068 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 using System; 24 using HeuristicLab.Persistence.Auxiliary; 25 using HeuristicLab.Persistence.Core.Tokens; 24 26 using HeuristicLab.Persistence.Interfaces; 25 using HeuristicLab.Persistence.Core.Tokens;26 using HeuristicLab.Persistence.Auxiliary;27 using HeuristicLab.Tracing;28 using System.Reflection;29 27 30 28 namespace HeuristicLab.Persistence.Core { … … 82 80 } 83 81 } 84 82 85 83 private readonly Dictionary<int, object> id2obj; 86 84 private readonly Dictionary<Type, object> serializerMapping; … … 124 122 serializer = Activator.CreateInstance(serializerType, true); 125 123 serializerMapping.Add(type, serializer); 126 } catch (PersistenceException) { 124 } 125 catch (PersistenceException) { 127 126 throw; 128 } catch (Exception e) { 127 } 128 catch (Exception e) { 129 129 throw new PersistenceException(string.Format( 130 130 "Could not add type info for {0} ({1})", … … 181 181 try { 182 182 parentStack.Push(new Midwife(type, (ICompositeSerializer)serializerMapping[type], token.Id)); 183 } catch (Exception e) { 183 } 184 catch (Exception e) { 184 185 if (e is InvalidCastException || e is KeyNotFoundException) { 185 186 throw new PersistenceException(String.Format( … … 210 211 id2obj[(int)token.Id] = value; 211 212 SetValue(token.Name, value); 212 } catch (Exception e) { 213 } 214 catch (Exception e) { 213 215 if (e is InvalidCastException || e is KeyNotFoundException) { 214 216 throw new PersistenceException(String.Format(
Note: See TracChangeset
for help on using the changeset viewer.