3#include <system/type_info.h>
4#include <system/object_ext.h>
5#include <system/details/pointer_collection_helpers.h>
6#include <system/constraints.h>
7#include <system/collections/list.h>
8#include <system/collections/ienumerable.h>
11#include "system/text/json/serialization/converters/collection/i_enumerable_default_converter.h"
12#include "system/text/json/serialization/read_stack.h"
13#include "system/text/json/serialization/read_stack_frame.h"
14#include "system/text/json/reader/utf8_json_reader.h"
15#include "system/text/json/throw_helper.h"
23class JsonSerializerOptions;
38template<
typename TCollection,
typename TElement>
47 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
48 RTTI_INFO_TEMPLATE_CLASS(
ThisType, ThisTypeBaseTypesInfo);
88 ASPOSE_UNUSED(options);
89 if (!_isDeserializable)
94 state.
Current.
ReturnValue = System::MakeObject<Collections::Generic::List<TElement>>();
99 bool _isDeserializable;
Interface of object providing enumerator on contained elements.
Definition: ienumerable.h:26
Provides static methods that emulate C# Object methods called for non-Object C++ types (strings,...
Definition: object_ext.h:23
virtual const TypeInfo & GetType() const
Gets actual type of object. Analog of C# System.Object.GetType() call.
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: i_enumerable_default_converter.h:30
void SetTemplateWeakPtr(uint32_t argument) override
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
Definition: i_enumerable_default_converter.h:49
Definition: i_enumerable_of_t_converter.h:40
void SetTemplateWeakPtr(uint32_t argument) override
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
Definition: i_enumerable_of_t_converter.h:64
void Add(const TElement &value, ReadStack &state) override
Definition: i_enumerable_of_t_converter.h:81
bool get_SupportsCreateObjectDelegate() override
Definition: i_enumerable_of_t_converter.h:54
IEnumerableOfTConverter()
Definition: i_enumerable_of_t_converter.h:59
void CreateCollection(Utf8JsonReader &reader, ReadStack &state, System::SharedPtr< JsonSerializerOptions > options) override
Definition: i_enumerable_of_t_converter.h:86
Definition: json_collection_converter.h:43
Definition: json_converter_of_t.h:80
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