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.PocoAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
protected virtual void AddSerializationInfo( SerializationInfo info, StreamingContext context ) |
Visual Basic |
---|
Protected Overridable Sub AddSerializationInfo ( _ info As SerializationInfo, _ context As StreamingContext _ ) |
Visual C++ |
---|
protected: virtual void AddSerializationInfo( SerializationInfo^ info, StreamingContext context ) |
Parameters
- info
- Type: System.Runtime.Serialization..::..SerializationInfo
[Missing <param name="info"/> documentation for "M:NHibernate.Proxy.Poco.BasicLazyInitializer.AddSerializationInfo(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"]
- context
- Type: System.Runtime.Serialization..::..StreamingContext
[Missing <param name="context"/> documentation for "M:NHibernate.Proxy.Poco.BasicLazyInitializer.AddSerializationInfo(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"]
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.