C# Class LightNode.Formatter.TextContentFormatter

Inheritance: ContentFormatterBase
Exibir arquivo Open project: neuecc/LightNode

Public Methods

Method Description
Deserialize ( Type type, Stream stream ) : object
Serialize ( Stream stream, object obj ) : void
TextContentFormatter ( Encoding encoding, string mediaType = "text/plain", string ext = "txt" ) : LightNode.Core
TextContentFormatter ( string mediaType = "text/plain", string ext = "txt" ) : LightNode.Core

Method Details

Deserialize() public method

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

Serialize() public method

public Serialize ( Stream stream, object obj ) : void
stream Stream
obj object
return void

TextContentFormatter() public method

public TextContentFormatter ( Encoding encoding, string mediaType = "text/plain", string ext = "txt" ) : LightNode.Core
encoding System.Text.Encoding
mediaType string
ext string
return LightNode.Core

TextContentFormatter() public method

public TextContentFormatter ( string mediaType = "text/plain", string ext = "txt" ) : LightNode.Core
mediaType string
ext string
return LightNode.Core