Show / Hide Table of Contents

    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, List<T>, Dictionary<String, T>>
    CollectionConverter<T>
    CollectionConverter
    Inherited Members
    CollectionConverter<T, List<T>, Dictionary<String, T>>.CanConvert(Type)
    CollectionConverter<T, List<T>, Dictionary<String, T>>.ReadJson(JsonReader, Type, Object, JsonSerializer)
    CollectionConverter<T, List<T>, Dictionary<String, T>>.ReadValue(JsonReader, JsonSerializer)
    CollectionConverter<T, List<T>, Dictionary<String, T>>.WriteJson(JsonWriter, Object, JsonSerializer)
    CollectionConverter<T, List<T>, Dictionary<String, T>>.ItemType
    CollectionConverter<T, List<T>, Dictionary<String, T>>.ListType
    CollectionConverter<T, List<T>, Dictionary<String, T>>.DictionaryType
    CollectionConverter<T, List<T>, Dictionary<String, T>>.CanRead
    CollectionConverter<T, List<T>, Dictionary<String, T>>.CanWrite
    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()
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.