C# Class WebApiConneg.Formatters.CarCsvMediaTypeFormatter

Inheritance: System.Net.Http.Formatting.BufferedMediaTypeFormatter
Datei anzeigen Open project: tugberkugurlu/ProWebAPI.Samples

Public Methods

Method Description
CanReadType ( Type type ) : bool
CanWriteType ( Type type ) : bool
CarCsvMediaTypeFormatter ( ) : System
WriteToStream ( Type type, object value, Stream stream, HttpContent content ) : void

Private Methods

Method Description
Escape ( object o ) : string
writeItem ( Car car, 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

CarCsvMediaTypeFormatter() public method

public CarCsvMediaTypeFormatter ( ) : System
return System

WriteToStream() public method

public WriteToStream ( Type type, object value, Stream stream, HttpContent content ) : void
type System.Type
value object
stream Stream
content System.Net.Http.HttpContent
return void