Returns the real object that should be deserialized, rather than object that the serialized stream specifies.
[Visual Basic] Function GetRealObject( _ ByVal context As StreamingContext _ ) As Object [C#] object GetRealObject( StreamingContext context ); [C++] Object* GetRealObject( StreamingContext context ) = 0; [JScript] function GetRealObject( context : StreamingContext ) : Object;
Returns the actual object to be put into the graph.
Typically, this method is useful in a remoting situation. We serialize (not an actual object, A), but a proxy-creator object, C. When C is deserialized, deserialization calls its GetRealObject method. At this point, C instantiates a proxy object, P, that refers back to the original object A, perhaps on a remote computer. Object C is typically discarded and reclaimed later by the garbage collector.
IObjectReference Interface | IObjectReference Members | System.Runtime.Serialization Namespace