//
// System.Runtime.Serialization.ISerializationSurrogate
//
// Author:
// David Dawkins (david@dawkins.st)
//
// (C) David Dawkins
//
namespace System.Runtime.Serialization {
///
/// Interface for serialization surrogates
public interface ISerializationSurrogate {
///
/// Get the SerializationInfo necessary to serialize
/// the specified object
/// Object to be serialized
/// SerializationInfo to be populated
/// Destination for serialization
void GetObjectData(
object obj,
SerializationInfo info,
StreamingContext context
);
///
/// Populate an object using the specified SerializationInfo
/// Object to be populated
/// Data used for populating object
/// Source for deserialization of object
///