Skip to content

Instantly share code, notes, and snippets.

@layomia
Created January 15, 2020 21:59
Show Gist options
  • Save layomia/00dea6080b6680b0ee27f421fb56e117 to your computer and use it in GitHub Desktop.
Save layomia/00dea6080b6680b0ee27f421fb56e117 to your computer and use it in GitHub Desktop.

Converters

  • JsonDefaultArrayConverter<>
    • Single-dimentional arrays
  • JsonListOfTConverter<>
    • List
    • Types deriving from List
  • JsonDictionaryOfStringTValueConverter<,>
    • Dictionary<string, TValue>
    • Types deriving from Dictionary<string, TValue>
  • JsonImmutableDictionaryOfStringTValueConverter<,>
    • ImmutableDictionary<,>
    • ImmutableSortedDictionary<,>
    • IImmutableDictionary<,>
  • JsonIDictionaryOfStringTValueConverter<,>
    • Dictionary<string, TValue>
    • Types deriving from Dictionary<string, TValue>
  • JsonIReadOnlyDictionaryOfStringTValueConverter<,>
    • IReadOnlyDictionary<,>
    • Types deriving from IReadOnlyDictionary<,> that are assignable from Dictionary<,>
  • JsonImmutableEnumerableOfTConverter
    • Non-dictionary collections from System.Collections.Immutable
  • JsonIListOfTConverter<>
    • IList
    • Types deriving from IList
  • JsonICollectionOfTConverter<>
    • ICollection
    • Types deriving from ICollection (Hashset, LinkedList)
  • JsonStackOfTConverter<>
    • Stack
    • Types deriving from Stack
  • JsonQueueOfTConverter<>
    • Queue
    • Types deriving from Queue
  • JsonIEnumerableOfTConverter<>
    • IEnumerable
    • Types deriving from IEnumerable that are assignable from List
    • Types deriving from IEnumerable that have constructors that take List
  • JsonIDictionaryConverter
    • IDictionary
    • Types assignable to IDictionary
  • JsonIListConverter
    • IList
    • Types assignable to IList
  • JsonIEnumerableWithAddMethodConverter
    • // Non-generic collections that have "add" methods (Push, Enqueue) that have a return type of void specifically non-generic Stack, non-Generic Queue, and types that derive from these types.
  • JsonIEnumerableConverter
    • IEnumerable
    • Types assignable to IEnumerable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment