ImpromptuInterface/src/EmitProxy/ActLikeProxySerializationHelper.cs
/// <summary>
/// Returns the real object that should be deserialized, rather than the object that the serialized stream specifies.
/// </summary>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> from which the current object is deserialized.</param>
/// <returns>
/// Returns the actual object that is put into the graph.
/// </returns>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission. The call will not work on a medium trusted server.</exception>
Returns the real object that should be deserialized, rather than the object that the serialized stream specifies.
Returns the real object that should be deserialized rather than the object that the serialized stream specifies .
public object GetRealObject(StreamingContext context)
        {
		   var tInterfaces = Interfaces ?? MonoInterfaces.Select(it=>Type.GetType(it)).ToArray();
           var tType =BuildProxy.BuildType(Context, tInterfaces.First(), tInterfaces.Skip(1).ToArray());
           return Impromptu.InitializeProxy(tType, Original, tInterfaces);
        }
public object GetRealObject ( StreamingContext context ) { var tInterfaces = Interfaces ?? MonoInterfaces . Select ( it => Type . GetType ( it ) ) . ToArray ( ) ; var tType = BuildProxy . BuildType ( Context , tInterfaces . First ( ) , tInterfaces . Skip ( 1 ) . ToArray ( ) ) ; return Impromptu . InitializeProxy ( tType , Original , tInterfaces ) ; }
Returns the real object that should be deserialized, rather than the object that the serialized stream specifies.
Returns the real object that should be deserialized rather than the object that the serialized stream specifies .
Returns the actual object that is put into the graph.
Returns the actual object that is put into the graph .
The caller does not have the required permission. The call will not work on a medium trusted server.
The caller does not have the required permission . The call will not work on a medium trusted server .
context
StreamingContext
The  from which the current object is deserialized.
The from which the current object is deserialized .