3#include <system/scope_guard.h>
4#include <system/object_ext.h>
5#include <system/nullable.h>
6#include <system/exceptions.h>
7#include <system/diagnostics/debug.h>
8#include <system/details/pointer_collection_helpers.h>
9#include <system/details/patterns.h>
10#include <system/details/equality_helper.h>
13#include "system/text/json/serialization/json_converter.h"
14#include "system/text/json/nodes/json_node_options.h"
15#include "system/text/json/serialization/converter_strategy.h"
16#include "system/text/json/document/json_value_kind.h"
17#include "system/text/json/nodes/json_node.h"
18#include "system/text/json/nodes/json_value_of_t.h"
19#include "system/text/json/writer/utf8_json_writer.h"
20#include "system/text/json/serialization/json_serializer_options.h"
21#include "system/text/json/serialization/json_number_handling.h"
31template <
typename>
class JsonConverter;
45template<
typename TValue>
51 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
52 RTTI_INFO_TEMPLATE_CLASS(
ThisType, ThisTypeBaseTypesInfo);
61 System::Details::ThisProtector __local_self_ref(
this);
65 _converter = converter;
77 if (System::Is<JsonValueBase>(otherNode, otherValue) && otherValue->template TryGetValue<TValue>(v))
89 if (System::IsNull(writer))
91 throw System::ArgumentNullException(u
"writer");
97 if (converter->get_IsInternalConverterForNumberType())
113 System::Details::CollectionHelpers::SetWeakPointer(0, _converter);
121 #ifdef ASPOSE_GET_SHARED_MEMBERS
122 void GetSharedMembers(System::Object::shared_members_type& result)
const override
126 result.Add(
"System::Text::Json::Nodes::JsonValuePrimitive::_converter", this->_converter);
127 result.Add(
"System::Text::Json::Nodes::JsonValuePrimitive::_valueKind", this->_valueKind);
Forward declaration.
Definition: nullable.h:75
static auto CoalesceAssign(T0 &value, T1 func) -> T0 &
Implementation of '??=' operator translation.
Definition: object_ext.h:748
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
static String Format(const SharedPtr< IFormatProvider > &fp, const String &format, const Args &... args)
Formats string in C# style.
Definition: string.h:1449
Definition: json_node.h:54
Nullable< JsonNodeOptions > get_Options()
bool DeepEqualsCore(System::SharedPtr< JsonNode > otherNode) override
Definition: json_value_of_t.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: json_value_of_t.h:156
Definition: json_value_of_t_primitive.h:47
void WriteTo(System::SharedPtr< Utf8JsonWriter > writer, System::SharedPtr< JsonSerializerOptions > options=nullptr) override
Definition: json_value_of_t_primitive.h:87
System::SharedPtr< JsonNode > DeepCloneCore() override
Definition: json_value_of_t_primitive.h:69
void SetTemplateWeakPtr(uint32_t argument) override
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
Definition: json_value_of_t_primitive.h:107
JsonValuePrimitive(TValue value, System::SharedPtr< Serialization::JsonConverter< TValue > > converter, Nullable< JsonNodeOptions > options)
Definition: json_value_of_t_primitive.h:58
bool DeepEqualsCore(System::SharedPtr< JsonNode > otherNode) override
Definition: json_value_of_t_primitive.h:74
Definition: json_converter_of_t.h:80
@ Text
Defines color adjustment information for text.
JsonValueKind
Definition: json_value_kind.h:12
Definition: db_command.h:9