C# Class Rebel.Framework.Serialization.AbstractSerializationService

Exibir arquivo Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
FromStream ( Stream input, Type outputType, string intent = null ) : object

Finds an IFormatter with a matching intent , and deserializes the Stream to an object graph.

ToStream ( object input, string intent = null ) : IStreamedResult

Finds an IFormatter with a matching intent , and serializes the object graph to an IStreamedResult .

Method Details

FromStream() public abstract method

Finds an IFormatter with a matching intent , and deserializes the Stream to an object graph.
public abstract FromStream ( Stream input, Type outputType, string intent = null ) : object
input Stream
outputType System.Type
intent string
return object

ToStream() public abstract method

Finds an IFormatter with a matching intent , and serializes the object graph to an IStreamedResult .
public abstract ToStream ( object input, string intent = null ) : IStreamedResult
input object
intent string
return IStreamedResult