Changeset 1555 for trunk/sources/HeuristicLab.Persistence/3.3/Default
- Timestamp:
- 04/14/09 14:26:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Decomposers/StorableDecomposer.cs
r1553 r1555 15 15 public bool CanDecompose(Type type) { 16 16 return StorableAttribute.GetStorableMembers(type, false).Count() > 0 || 17 EmptyStorableClassAttribute.IsEmp yStorable(type);17 EmptyStorableClassAttribute.IsEmptyStorable(type); 18 18 19 19 } … … 24 24 25 25 public IEnumerable<Tag> Decompose(object obj) { 26 foreach (var mapping in StorableAttribute.Get AutostorableAccessors(obj)) {26 foreach (var mapping in StorableAttribute.GetStorableAccessors(obj)) { 27 27 yield return new Tag(mapping.Key, mapping.Value.Get()); 28 28 } … … 39 39 memberDict.Add(iter.Current.Name, iter.Current); 40 40 } 41 foreach (var mapping in StorableAttribute.Get AutostorableAccessors(instance)) {41 foreach (var mapping in StorableAttribute.GetStorableAccessors(instance)) { 42 42 if (memberDict.ContainsKey(mapping.Key)) { 43 43 mapping.Value.Set(memberDict[mapping.Key].Value);
Note: See TracChangeset
for help on using the changeset viewer.