Class CollectionConverter<T>
Converts a complex JSON object into .NET primitives, using List<T>
for arrays and Dictionary<TKey, TValue> for objects whose properties are
stored as KeyValuePair<TKey, TValue>s. Keys are always
Strings.
Inheritance
Newtonsoft.Json.JsonConverter
CollectionConverter<T>
Inherited Members
Namespace: XploRe.Json
Assembly: XploRe.Json.dll
Syntax
public class CollectionConverter<T> : CollectionConverter<T, List<T>, Dictionary<string, T>>
Type Parameters
Name | Description |
---|---|
T |
Type used for items. If a deserialised value cannot be converted into T , an
exception is thrown. Can be used to enforce a certain data type, e.g. string, for all primitives. To retain
the JSON type of a primitive, use Object.
|
Constructors
Name | Description |
---|---|
CollectionConverter() |