18 lines
641 B
C#
18 lines
641 B
C#
|
//-----------------------------------------------------------------------------
|
||
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
//-----------------------------------------------------------------------------
|
||
|
|
||
|
namespace System.Activities.DurableInstancing
|
||
|
{
|
||
|
using System.Collections.Generic;
|
||
|
using System.Xml.Linq;
|
||
|
|
||
|
interface IObjectSerializer
|
||
|
{
|
||
|
object DeserializeValue(byte[] bytes);
|
||
|
Dictionary<XName, object> DeserializePropertyBag(byte[] bytes);
|
||
|
ArraySegment<byte> SerializeValue(object value);
|
||
|
ArraySegment<byte> SerializePropertyBag(Dictionary<XName, object> value);
|
||
|
}
|
||
|
}
|