Changeset 2980 for trunk/sources/HeuristicLab.Persistence/3.3/Default
- Timestamp:
- 03/09/10 18:14:05 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableSerializer.cs
r1960 r2980 29 29 30 30 public IEnumerable<Tag> CreateMetaInfo(object o) { 31 StorableHookAttribute.InvokeHook(HookType.BeforeSerialization, o); 31 32 return new Tag[] { }; 32 33 } … … 48 49 memberDict.Add(iter.Current.Name, iter.Current); 49 50 } 50 foreach (var accessor in StorableAttribute.GetStorableAccessors(instance)) { 51 foreach (var accessor in StorableAttribute.GetStorableAccessors(instance)) { 51 52 if (memberDict.ContainsKey(accessor.Name)) { 52 accessor.Set(memberDict[accessor.Name].Value); 53 accessor.Set(memberDict[accessor.Name].Value); 53 54 } else if (accessor.DefaultValue != null) { 54 accessor.Set(accessor.DefaultValue); 55 accessor.Set(accessor.DefaultValue); 55 56 } 56 57 } 58 StorableHookAttribute.InvokeHook(HookType.AfterDeserialization, instance); 57 59 } 58 60 }
Note: See TracChangeset
for help on using the changeset viewer.