August 2003
Intermediate to advanced
928 pages
32h 1m
English
ISerializationSurrogate
Objects that implement this
interface can be
delegated to perform the serialization and deserialization of another
object by providing customized methods for GetObjectData( ) and SetObjectData( ).
GetObjectData( ) gets the member information to
create a SerializationInfo instance, while
SetObjectData( ) uses information from a
SerializationInfo instance to recreate an object.
public interface ISerializationSurrogate { // Public Instance Methods public void GetObjectData(objectobj, SerializationInfoinfo, StreamingContextcontext); public object SetObjectData(objectobj, SerializationInfoinfo, StreamingContextcontext, ISurrogateSelectorselector); }
ISurrogateSelector.GetSurrogate( ),
SurrogateSelector.GetSurrogate( )
SurrogateSelector.AddSurrogate( )