RiotNet  8.0.0
A C#/.NET client for the Riot Games API.
Public Member Functions | List of all members
RiotNet.Converters.KeyedCollectionConverter Class Reference

Reads and writes KeyedCollections as JSON objects instead of arrays. Any KeyedCollection deserialized by this converter must have a parameterless constructor. More...

Inheritance diagram for RiotNet.Converters.KeyedCollectionConverter:

Public Member Functions

override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type. More...
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the KeyedCollection as a JSON object. More...
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the KeyedCollection as a JSON object. More...
 

Detailed Description

Reads and writes KeyedCollections as JSON objects instead of arrays. Any KeyedCollection deserialized by this converter must have a parameterless constructor.

Member Function Documentation

override bool RiotNet.Converters.KeyedCollectionConverter.CanConvert ( Type  objectType)
inline

Determines whether this instance can convert the specified object type.

Parameters
objectTypeThe type to convert.
Returns
true

if this converter can convert the specified type; otherwise

false

.

override object RiotNet.Converters.KeyedCollectionConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)
inline

Reads the KeyedCollection as a JSON object.

Parameters
readerThe JsonReader to read from.
objectTypeType of the object.
existingValueThe existing value of object being read.
serializerThe calling serializer.
Returns
The object value.
override void RiotNet.Converters.KeyedCollectionConverter.WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)
inline

Writes the KeyedCollection as a JSON object.

Parameters
writerThe JsonWriter to write to.
valueThe date to write.
serializerThe calling serializer.

The documentation for this class was generated from the following file: