//-----------------------------------------------------------------------
//
// Copyright (c) Outercurve Foundation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.Messaging {
using System;
using System.IO;
///
/// An interface implemented by -derived types that support binary serialization.
///
internal interface IStreamSerializingDataBag {
///
/// Serializes the instance to the specified stream.
///
/// The stream.
void Serialize(Stream stream);
///
/// Initializes the fields on this instance from the specified stream.
///
/// The stream.
void Deserialize(Stream stream);
}
}