C# Class Domain.Design.JsonSerializationHelper

Mostra file Open project: Lokad/lokad-cqrs-samples

Public Methods

Method Description
Deserialize ( Type type, Stream stream ) : object
Serialize ( object value, Stream stream ) : void
SerializeAndFormat ( object value, Type type, Stream stream ) : void

Private Methods

Method Description
ReadText ( Stream stream ) : string
WriteText ( Stream stream, string text ) : void

Method Details

Deserialize() public static method

public static Deserialize ( Type type, Stream stream ) : object
type System.Type
stream Stream
return object

Serialize() public static method

public static Serialize ( object value, Stream stream ) : void
value object
stream Stream
return void

SerializeAndFormat() public static method

public static SerializeAndFormat ( object value, Type type, Stream stream ) : void
value object
type System.Type
stream Stream
return void