Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/14/09 13:23:08 (16 years ago)
Author:
epitzer
Message:

Replace final fixes for broken parent references with separation of instance creation with meta information. (#548)

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  
    2222
    2323    /// <summary>
     24    /// Generate MetaInfo necessary for instance creation. (i.e.
     25    /// array dimensions).
     26    /// </summary>   
     27    IEnumerable<Tag> CreateMetaInfo(object obj);
     28
     29    /// <summary>
    2430    /// Decompose an object into KeyValuePairs, the Key can be null,
    2531    /// 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.
    2733    /// </summary>   
    2834    IEnumerable<Tag> Decompose(object obj);
    2935
    3036    /// <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.
    3338    /// </summary>
    3439    /// <param name="type"></param>
    3540    /// <returns></returns>
    36     object CreateInstance(Type type);
     41    object CreateInstance(Type type, IEnumerable<Tag> metaInfo);
    3742
    3843    /// <summary>
     
    4146    /// the same as they where generated. Keys might be null.
    4247    /// </summary>   
    43     object Populate(object instance, IEnumerable<Tag> tags, Type type);
     48    void Populate(object instance, IEnumerable<Tag> tags, Type type);
    4449  } 
    4550
Note: See TracChangeset for help on using the changeset viewer.