using System.IO;
namespace TBL.CSharp.Serialization.Marshal
{
///
/// Marshal 风格的序列化器
///
public interface IMarshalSerializer
{
///
/// 使用指定上下文序列化对象
///
public void Serialize(object self, Stream stream, IMarshalContext context);
///
/// 使用指定上下文和指定目标对象进行反序列化
/// 如果序列化结果如不匹配,将不会对目标对象进行操作
///
public object Deserialize(Stream stream, IMarshalContext context, object target);
}
}