System.Runtime.Remoting.RemotingServices.UnmarshalFromBuffer C# (CSharp) Méthode

UnmarshalFromBuffer() static private méthode

static private UnmarshalFromBuffer ( byte b ) : Object
b byte
Résultat Object
        internal static Object UnmarshalFromBuffer(byte [] b)
        {
            MemoryStream stm = new MemoryStream(b);
            BinaryFormatter fmt = new BinaryFormatter();                
            fmt.AssemblyFormat = System.Runtime.Serialization.Formatters.FormatterAssemblyStyle.Simple; //*******Add this line
            fmt.SurrogateSelector = null;
            fmt.Context = new StreamingContext(StreamingContextStates.Other);
            Object o = fmt.Deserialize(stm, null, false /* No Security check */);
            return o;
        }
RemotingServices