20 lines
600 B
C#
20 lines
600 B
C#
namespace JD.PropertyService
|
|
{
|
|
/// <summary>
|
|
/// Interface for objects that can be serialized/deserialized from <see cref="IProperties"/> objects.
|
|
/// </summary>
|
|
public interface IMementoCapable
|
|
{
|
|
/// <summary>
|
|
/// Serializes the object to properties.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
void ToProperties(IProperties properties);
|
|
|
|
/// <summary>
|
|
/// Deserializes the object from properties.
|
|
/// </summary>
|
|
/// <param name="properties"></param>
|
|
void FromProperties(IProperties properties);
|
|
}
|
|
}
|