Adds all of the information into the SerializationInfo that is needed to reconstruct the proxy during deserialization or to replace the proxy with the instantiated target.

Namespace:  NHibernate.Proxy
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Protected Overridable Sub AddSerializationInfo ( _
	info As SerializationInfo, _
	context As StreamingContext _
)
C#
protected virtual void AddSerializationInfo(
	SerializationInfo info,
	StreamingContext context
)
Visual C++
protected:
virtual void AddSerializationInfo(
	SerializationInfo^ info, 
	StreamingContext context
)
JavaScript
function addSerializationInfo(info, context);

Remarks

This will only be called if the Dynamic Proxy generator does not handle serialization itself or delegates calls to the method GetObjectData to the LazyInitializer.

See Also