Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Persistence/3.3/Interfaces/IPrimitiveSerializer.cs @ 2219

Last change on this file since 2219 was 1823, checked in by epitzer, 16 years ago

Namespace refactoring: rename formatters & decomposers -> primitive and composite serializers. (#603)

File size: 950 bytes
RevLine 
[1454]1using System;
2
3namespace HeuristicLab.Persistence.Interfaces {
4
[1564]5  /// <summary>
[1823]6  /// Marker interface primitive serializers. Transform data of type SourceType
7  /// into the serialization format SerialDataType. Derive from PrimitiveSerializerBase instead
[1564]8  /// of implementing this interface.
9  /// </summary>
[1823]10  public interface IPrimitiveSerializer {
[1564]11    Type SerialDataType { get; }
12    Type SourceType { get; }
13    ISerialData Format(object o);
[1566]14    object Parse(ISerialData o);
[1454]15  }
16
[1564]17  /// <summary>
[1823]18  /// Marker interface primitive serializers. Transform data of type SourceType
19  /// into the serialization format SerialDataType. Derive from PrimitiveSerializerBase instead
[1564]20  /// of implementing this interface.
[1823]21  /// </summary>
22  public interface IPrimitiveSerializer<Source, SerialData> : IPrimitiveSerializer where SerialData : ISerialData {
[1564]23    SerialData Format(Source o);
24    Source Parse(SerialData t);
[1566]25  }
26
[1454]27}
Note: See TracBrowser for help on using the repository browser.