3#include <system/type_info.h>
4#include <system/object_ext.h>
5#include <system/exceptions.h>
6#include <system/details/pointer_collection_helpers.h>
7#include <system/default.h>
10#include "system/text/json/serialization/json_converter.h"
11#include "system/text/json/serialization/json_converter_of_t.h"
12#include "system/text/json/reader/utf8_json_reader.h"
13#include "system/text/json/serialization/json_serializer_options.h"
14#include "system/text/json/serialization/read_stack.h"
15#include "system/text/json/writer/utf8_json_writer.h"
16#include "system/text/json/serialization/write_stack.h"
26template <
typename>
class JsonConverter;
46 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
47 RTTI_INFO_TEMPLATE_CLASS(
ThisType, ThisTypeBaseTypesInfo);
60 if (System::IsNull(options))
62 throw System::ArgumentNullException(u
"options");
67 ReadStack state = System::Default<System::Text::Json::ReadStack>();
78 if (System::IsNull(options))
80 throw System::ArgumentNullException(u
"options");
84 WriteStack state = System::Default<System::Text::Json::WriteStack>();
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:51
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: read_stack.h:35
void Initialize(System::SharedPtr< Serialization::Metadata::JsonTypeInfoBase > jsonTypeInfo, bool supportContinuation=false)
Definition: json_converter.h:76
Definition: json_converter_of_t.h:80
void SetTemplateWeakPtr(uint32_t argument) override
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
Definition: json_converter_of_t.h:151
bool TryWrite(System::SharedPtr< Utf8JsonWriter > writer, const T &value, System::SharedPtr< JsonSerializerOptions > options, WriteStack &state)
Definition: json_converter_of_t.h:378
bool TryRead(Utf8JsonReader &reader, const System::TypeInfo &typeToConvert, System::SharedPtr< JsonSerializerOptions > options, ReadStack &state, T &value, bool &isPopulatedValue)
Definition: json_converter_of_t.h:241
Definition: json_resumable_converter_of_t.h:42
void SetTemplateWeakPtr(uint32_t argument) override
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
Definition: json_resumable_converter_of_t.h:99
bool get_HandleNull() override
Definition: json_resumable_converter_of_t.h:53
void Write(System::SharedPtr< Utf8JsonWriter > writer, T value, System::SharedPtr< JsonSerializerOptions > options) override
Definition: json_resumable_converter_of_t.h:76
T Read(Utf8JsonReader &reader, const System::TypeInfo &typeToConvert, System::SharedPtr< JsonSerializerOptions > options) override
Definition: json_resumable_converter_of_t.h:58
Definition: utf8_json_reader.h:78
Definition: write_stack.h:34
void Initialize(System::SharedPtr< Serialization::Metadata::JsonTypeInfoBase > jsonTypeInfo, System::SharedPtr< Object > rootValueBoxed=nullptr, bool supportContinuation=false)
void DisposePendingDisposablesOnException()
Represents a particular type and provides information about it.
Definition: type_info.h:109
@ 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