C# Class Ballz.Utils.TypeInfoConverter

Inheritance: Newtonsoft.Json.JsonConverter
Show file Open project: SpagAachen/Ballz

Public Methods

Method Description
CanConvert ( Type objectType ) : bool
ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
TypeInfoConverter ( ) : System
TypeInfoConverter ( IEnumerable types ) : System
WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

Method Details

CanConvert() public method

public CanConvert ( Type objectType ) : bool
objectType System.Type
return bool

ReadJson() public method

public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader Newtonsoft.Json.JsonReader
objectType System.Type
existingValue object
serializer Newtonsoft.Json.JsonSerializer
return object

TypeInfoConverter() public method

public TypeInfoConverter ( ) : System
return System

TypeInfoConverter() public method

public TypeInfoConverter ( IEnumerable types ) : System
types IEnumerable
return System

WriteJson() public method

public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer Newtonsoft.Json.JsonWriter
value object
serializer Newtonsoft.Json.JsonSerializer
return void