3#include <system/type_info.h>
4#include <system/object_ext.h>
5#include <system/func.h>
6#include <system/details/pointer_collection_helpers.h>
7#include <system/constraints.h>
8#include <system/collections/idictionary.h>
9#include <system/collections/dictionary.h>
10#include <system/collections/collection_extensions.h>
14#include "system/text/json/json_collection_extensions.h"
15#include "system/text/json/serialization/converters/collection/dictionary_default_converter.h"
16#include "system/text/json/serialization/json_serializer_options.h"
17#include "system/text/json/serialization/read_stack.h"
18#include "system/text/json/serialization/read_stack_frame.h"
19#include "system/text/json/throw_helper.h"
20#include "system/text/json/reader/utf8_json_reader.h"
32template<
typename TDictionary,
typename TKey,
typename TValue>
41 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
42 RTTI_INFO_TEMPLATE_CLASS(
ThisType, ThisTypeBaseTypesInfo);
55 ASPOSE_UNUSED(options);
62 return System::MakeObject<Collections::Generic::Dictionary<TKey, TValue>>();
92 collection->idx_set(key,
value);
103 TDictionary returnValue = System::ExplicitCast<TDictionary>(state.
Current.
ReturnValue);
104 if (returnValue->get_IsReadOnly())
Forward declaration of Dictionary class.
Definition: dictionary.h:96
Interface for dictionary-alike containers. Objects of this class should only be allocated using Syste...
Definition: idictionary.h:21
Function delegate. This type should be allocated on stack and passed to functions by value or by refe...
Definition: func.h:82
static std::enable_if< std::is_fundamental< T >::value &&!std::is_enum< T >::value, constSystem::TypeInfo & >::type GetType()
Implements typeof() translation. Overload for primitive types.
Definition: object_type.h:94
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
System::SharedPtr< Object > ReturnValue
Definition: read_stack_frame.h:59
Definition: read_stack.h:35
ReadStackFrame Current
Definition: read_stack.h:44
Definition: dictionary_default_converter.h:32
void SetTemplateWeakPtr(uint32_t argument) override
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
Definition: dictionary_default_converter.h:100
Definition: i_dictionary_of_t_key_t_value_converter.h:34
void CreateCollection(Utf8JsonReader &reader, ReadStack &state) override
Definition: i_dictionary_of_t_key_t_value_converter.h:100
bool get_CanPopulate() override
Definition: i_dictionary_of_t_key_t_value_converter.h:48
void ConfigureJsonTypeInfo(System::SharedPtr< Metadata::JsonTypeInfoBase > jsonTypeInfo, System::SharedPtr< JsonSerializerOptions > options) override
Definition: i_dictionary_of_t_key_t_value_converter.h:53
void SetTemplateWeakPtr(uint32_t argument) override
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
Definition: i_dictionary_of_t_key_t_value_converter.h:67
void Add(TKey key, const TValue &value, System::SharedPtr< JsonSerializerOptions > options, ReadStack &state) override
Definition: i_dictionary_of_t_key_t_value_converter.h:88
Definition: json_converter_of_t.h:80
Definition: json_dictionary_converter.h:107
Definition: json_converter.h:45
static void ThrowNotSupportedException_CannotPopulateCollection(const TypeInfo &type, Utf8JsonReader &reader, ReadStack &state)
Definition: utf8_json_reader.h:78
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9
decltype(Ref(std::declval< T & >())) Ref(const std::reference_wrapper< T > &wrapper)
Wrapper to make sure Ref(std::ref(DynamicWeakPtr)) works.
Definition: dynamic_weak_ptr.h:207