Changeset 4068 for trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/EnumerableSerializer.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/EnumerableSerializer.cs
r3742 r4068 22 22 using System; 23 23 using System.Collections; 24 using System.Collections.Generic; 24 25 using System.Reflection; 26 using HeuristicLab.Persistence.Auxiliary; 25 27 using HeuristicLab.Persistence.Core; 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 29 using HeuristicLab.Persistence.Interfaces; 27 using System.Collections.Generic;28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HeuristicLab.Persistence.Auxiliary;30 30 31 31 namespace HeuristicLab.Persistence.Default.CompositeSerializers { … … 53 53 return "interface IEnumerable not implemented"; 54 54 if (type.GetMethod("Add") == null) 55 return "no 'Add()' method"; 55 return "no 'Add()' method"; 56 56 return "no 'Add()' method with one argument"; 57 57 } … … 76 76 foreach (var tag in tags) 77 77 addMethod.Invoke(instance, new[] { tag.Value }); 78 } catch (Exception e) { 78 } 79 catch (Exception e) { 79 80 throw new PersistenceException("Exception caught while trying to populate enumerable.", e); 80 81 }
Note: See TracChangeset
for help on using the changeset viewer.