Changeset 6228 for branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Default/CompositeSerializers
- Timestamp:
- 05/17/11 17:16:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableClassAnalyzer.cs
r6224 r6228 139 139 if (methodInfo.ReturnType != typeof(void) || methodInfo.GetParameters().Length > 0) 140 140 return; 141 var attribute = (StorableHookAttribute)methodInfo.GetCustomAttributes(typeof(StorableHookAttribute), false).SingleOrDefault(); 142 if (attribute != null) 143 typeDescriptor.Hooks.Add(new HookDescriptor(typeDescriptor, methodInfo, attribute.HookType)); 141 switch (methodInfo.Name) { 142 case "AfterDeserialization": 143 typeDescriptor.Hooks.Add(new HookDescriptor(typeDescriptor, methodInfo, HookType.AfterDeserialization)); 144 break; 145 case "BeforeSerialization": 146 typeDescriptor.Hooks.Add(new HookDescriptor(typeDescriptor, methodInfo, HookType.BeforeSerialization)); 147 break; 148 default: break; 149 } 144 150 } 145 151 }
Note: See TracChangeset
for help on using the changeset viewer.