Changeset 4068 for trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/DictionarySerializer.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/DictionarySerializer.cs
r3742 r4068 22 22 using System; 23 23 using System.Collections; 24 using System.Collections.Generic; 25 using HeuristicLab.Persistence.Auxiliary; 24 26 using HeuristicLab.Persistence.Core; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 28 using HeuristicLab.Persistence.Interfaces; 26 using System.Collections.Generic;27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence.Auxiliary;29 29 30 30 namespace HeuristicLab.Persistence.Default.CompositeSerializers { … … 75 75 dict.Add(key.Value, value.Value); 76 76 } 77 } catch (InvalidOperationException e) { 77 } 78 catch (InvalidOperationException e) { 78 79 throw new PersistenceException("Dictionaries must contain an even number of elements (key+value).", e); 79 } catch (NotSupportedException e) { 80 } 81 catch (NotSupportedException e) { 80 82 throw new PersistenceException("The serialized dictionary type was read-only or had a fixed size and cannot be deserialized.", e); 81 } catch (ArgumentNullException e) { 83 } 84 catch (ArgumentNullException e) { 82 85 throw new PersistenceException("Dictionary key was null.", e); 83 } catch (ArgumentException e) { 86 } 87 catch (ArgumentException e) { 84 88 throw new PersistenceException("Duplicate dictionary key.", e); 85 89 }
Note: See TracChangeset
for help on using the changeset viewer.