C# Class WebApiDemo.CsvMediaTypeFormatter

Inheritance: System.Net.Http.Formatting.BufferedMediaTypeFormatter
Datei anzeigen Open project: smichelotti/WebAPI-presentation

Public Methods

Method Description
CanReadType ( Type type ) : bool
CanWriteType ( Type type ) : bool
CsvMediaTypeFormatter ( ) : System
WriteToStream ( Type type, object value, Stream stream, HttpContentHeaders contentHeaders ) : void

Private Methods

Method Description
WriteItem ( object item, StreamWriter writer ) : void

Method Details

CanReadType() public method

public CanReadType ( Type type ) : bool
type System.Type
return bool

CanWriteType() public method

public CanWriteType ( Type type ) : bool
type System.Type
return bool

CsvMediaTypeFormatter() public method

public CsvMediaTypeFormatter ( ) : System
return System

WriteToStream() public method

public WriteToStream ( Type type, object value, Stream stream, HttpContentHeaders contentHeaders ) : void
type System.Type
value object
stream Stream
contentHeaders System.Net.Http.Headers.HttpContentHeaders
return void