System.Runtime.Remoting.RemotingServices.UnmarshalReturnMessageFromBuffer C# (CSharp) Method

UnmarshalReturnMessageFromBuffer() static private method

static private UnmarshalReturnMessageFromBuffer ( byte b, IMethodCallMessage msg ) : Object
b byte
msg IMethodCallMessage
return Object
        internal static Object UnmarshalReturnMessageFromBuffer(byte [] b, IMethodCallMessage msg)
        {
            MemoryStream stm = new MemoryStream(b);
            BinaryFormatter fmt = new BinaryFormatter();                
            fmt.SurrogateSelector = null;
            fmt.Context = new StreamingContext(StreamingContextStates.Other);
            Object o = fmt.DeserializeMethodResponse(stm, null, (IMethodCallMessage)msg);
             //= fmt.Deserialize(stm, null, false /* No Security check */);
            return o;
        }
RemotingServices