File: System\Activities\DurableInstancing\IObjectSerializer.cs
Project: ndp\cdf\src\NetFx40\System.Activities.DurableInstancing\System.Activities.DurableInstancing.csproj (System.Activities.DurableInstancing)
//-----------------------------------------------------------------------------
// 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);
    }
}