Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/14/10 00:42:28 (15 years ago)
Author:
epitzer
Message:

Update API docs. (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Interfaces/IPrimitiveSerializer.cs

    r1823 r3016  
    99  /// </summary>
    1010  public interface IPrimitiveSerializer {
     11
     12    /// <summary>
     13    /// Gets the type of the serial data.
     14    /// </summary>
     15    /// <value>The type of the serial data.</value>
    1116    Type SerialDataType { get; }
     17
     18    /// <summary>
     19    /// Gets the source type.
     20    /// </summary>
     21    /// <value>The type of the source.</value>
    1222    Type SourceType { get; }
     23
     24    /// <summary>
     25    /// Creates a serialized representation of the provided object.
     26    /// </summary>
     27    /// <param name="o">The object.</param>
     28    /// <returns>A serialized version of the object.</returns>
    1329    ISerialData Format(object o);
    14     object Parse(ISerialData o);
     30
     31
     32    /// <summary>
     33    /// Creates a fresh object instance using the serializes data..
     34    /// </summary>
     35    /// <param name="data">The data.</param>
     36    /// <returns>A fresh object instance.</returns>
     37    object Parse(ISerialData data);
    1538  }
    1639
     
    2043  /// of implementing this interface.
    2144  /// </summary>
     45  /// <typeparam name="Source">The source type.</typeparam>
     46  /// <typeparam name="SerialData">The serialized data type.</typeparam>
    2247  public interface IPrimitiveSerializer<Source, SerialData> : IPrimitiveSerializer where SerialData : ISerialData {
     48
     49    /// <summary>
     50    /// Creates a serialized version of the provided object.
     51    /// </summary>
     52    /// <param name="o">The object.</param>
     53    /// <returns>A serialized version of the object.</returns>
    2354    SerialData Format(Source o);
    24     Source Parse(SerialData t);
     55
     56
     57    /// <summary>
     58    /// Creates a fresh object instance from the serialized data
     59    /// </summary>
     60    /// <param name="data">The data.</param>
     61    /// <returns>A fresh object instance.</returns>
     62    Source Parse(SerialData data);
    2563  }
    2664
Note: See TracChangeset for help on using the changeset viewer.