Changeset 1553 for trunk/sources/HeuristicLab.Persistence/3.3/Interfaces
- Timestamp:
- 04/14/09 13:23:08 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Interfaces
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Interfaces/IDecomposer.cs
r1542 r1553 22 22 23 23 /// <summary> 24 /// Generate MetaInfo necessary for instance creation. (i.e. 25 /// array dimensions). 26 /// </summary> 27 IEnumerable<Tag> CreateMetaInfo(object obj); 28 29 /// <summary> 24 30 /// Decompose an object into KeyValuePairs, the Key can be null, 25 31 /// the order in which elements are generated is guaranteed to be 26 /// the same as they are supplied in the Compose method.32 /// the same as they will be supplied to the Populate method. 27 33 /// </summary> 28 34 IEnumerable<Tag> Decompose(object obj); 29 35 30 36 /// <summary> 31 /// Create an instance of the object if possible. May return null 32 /// in which case the Populate method must create the instance. 37 /// Create an instance of the object using the provided meta information. 33 38 /// </summary> 34 39 /// <param name="type"></param> 35 40 /// <returns></returns> 36 object CreateInstance(Type type );41 object CreateInstance(Type type, IEnumerable<Tag> metaInfo); 37 42 38 43 /// <summary> … … 41 46 /// the same as they where generated. Keys might be null. 42 47 /// </summary> 43 objectPopulate(object instance, IEnumerable<Tag> tags, Type type);48 void Populate(object instance, IEnumerable<Tag> tags, Type type); 44 49 } 45 50
Note: See TracChangeset
for help on using the changeset viewer.