3#include <system/type_info.h>
4#include <system/span.h>
5#include <system/object_ext.h>
6#include <system/nullable.h>
7#include <system/guid.h>
8#include <system/diagnostics/debug.h>
9#include <system/default.h>
10#include <system/decimal.h>
11#include <system/date_time_offset.h>
12#include <system/date_time.h>
13#include <system/array.h>
14#include <system/buffers/text/utf8_parser.h>
18#include "system/text/json/nodes/json_node_options.h"
19#include "system/text/json/nodes/json_value.h"
20#include "system/text/json/throw_helper.h"
21#include "system/text/json/document/json_value_kind.h"
22#include "system/text/json/document/json_element.h"
23#include "system/text/json/writer/json_writer_helper.h"
24#include "system/text/json/reader/json_reader_helper.h"
25#include "system/text/json/json_constants.h"
33class JsonSerializerOptions;
69 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
82 if (!TryGetValue<T>(
value))
98 return System::Text::Json::JsonElement::Parse(serialized);
107 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result));
117 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result));
125 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result2));
133 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result3));
143 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result[0]));
148 value = System::Default<T>();
154 #ifdef ASPOSE_GET_SHARED_MEMBERS
155 void GetSharedMembers(System::Object::shared_members_type& result)
const override;
171 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
184 if (!TryGetValue<T>(
value))
204 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(_value));
208 value = System::Default<T>();
227 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
239 if (!TryGetValue<T>(
value))
261 int32_t result, consumed;
264 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result));
270 int64_t result2; int32_t consumed2;
273 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result2));
279 double result3; int32_t consumed3;
282 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result3));
288 int16_t result4; int32_t consumed4;
291 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result4));
297 Decimal result5; int32_t consumed5;
300 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result5));
306 uint8_t result6; int32_t consumed6;
309 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result6));
315 float result7; int32_t consumed7;
318 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result7));
324 uint32_t result8; int32_t consumed8;
327 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result8));
333 uint16_t result9; int32_t consumed9;
336 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result9));
342 uint64_t result10; int32_t consumed10;
345 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result10));
351 int8_t result11; int32_t consumed11;
354 value = System::ExplicitCast<T>(System::ExplicitCast<System::Object>(result11));
358 value = System::Default<T>();
366 #ifdef ASPOSE_GET_SHARED_MEMBERS
367 void GetSharedMembers(System::Object::shared_members_type& result)
const override;
Class that represents an array data structure. Objects of this class should only be allocated using S...
Definition: array.h:296
static bool TryParse(const ReadOnlySpan< uint8_t > &source, bool &value, int32_t &bytesConsumed)
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
Contains the date and time of day relative to Coordinated Universal Time. Objects of this class shoul...
Definition: date_time_offset.h:16
Represents a decimal number. This type should be allocated on stack and passed to functions by value ...
Definition: decimal.h:107
Represents a Globally Unique IDentifier This type should be allocated on stack and passed to function...
Definition: guid.h:34
Forward declaration.
Definition: nullable.h:75
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:51
ReadOnlySpan< T > get_Span() const
Gets a read-only span that represents the current memory.
Definition: memory.h:243
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:126
int get_Length() const
Gets string length.
static ReadOnlySpan< uint8_t > get_FalseValue()
static ReadOnlySpan< uint8_t > get_TrueValue()
Definition: json_element.h:59
static JsonElement Parse(ReadOnlySpan< uint8_t > utf8Json, JsonDocumentOptions options=System::Default< System::Text::Json::JsonDocumentOptions >())
static bool TryGetValue(ReadOnlySpan< uint8_t > segment, bool isEscaped, DateTime &value)
static String TranscodeHelper(ReadOnlySpan< uint8_t > utf8Unescaped)
T(*)(System::ReadOnlySpan< uint8_t >) WriteCallback
Definition: json_writer_helper.h:48
Definition: json_node.h:54
Definition: json_node_options.h:14
Definition: json_value.h:60
Definition: json_value_of_json_primitive.h:167
void WriteTo(System::SharedPtr< Utf8JsonWriter > writer, System::SharedPtr< JsonSerializerOptions > options=nullptr) override
System::SharedPtr< JsonNode > DeepCloneCore() override
T GetValue()
Definition: json_value_of_json_primitive.h:181
JsonValueOfJsonBool(bool value, Nullable< JsonNodeOptions > options)
bool TryGetValue(T &value)
Definition: json_value_of_json_primitive.h:193
Definition: json_value_of_json_primitive.h:223
JsonValueOfJsonNumber(System::SharedPtr< Array< uint8_t > > number, Nullable< JsonNodeOptions > options)
bool TryGetValue(T &value)
Definition: json_value_of_json_primitive.h:248
T GetValue()
Definition: json_value_of_json_primitive.h:236
void WriteTo(System::SharedPtr< Utf8JsonWriter > writer, System::SharedPtr< JsonSerializerOptions > options=nullptr) override
System::SharedPtr< JsonNode > DeepCloneCore() override
Definition: json_value_of_json_primitive.h:53
static System::SharedPtr< JsonValueBase > CreatePrimitiveValue(Utf8JsonReader &reader, JsonNodeOptions options)
JsonValueOfJsonPrimitive()=delete
Definition: json_value_of_json_primitive.h:65
bool TryGetValue(T &value)
Definition: json_value_of_json_primitive.h:91
JsonValueOfJsonString(ReadOnlyMemory< uint8_t > utf8String, Nullable< JsonNodeOptions > options)
void WriteTo(System::SharedPtr< Utf8JsonWriter > writer, System::SharedPtr< JsonSerializerOptions > options=nullptr) override
T GetValue()
Definition: json_value_of_json_primitive.h:79
System::SharedPtr< JsonNode > DeepCloneCore() override
static void ThrowInvalidOperationException_NodeUnableToConvertElement(JsonValueKind valueKind, const TypeInfo &destinationType)
Definition: utf8_json_reader.h:78
Represents a particular type and provides information about it.
Definition: type_info.h:109
bool Equals(const TypeInfo &other) const
Definition: type_info.h:244
@ Text
Defines color adjustment information for text.
JsonValueKind
Definition: json_value_kind.h:12
Definition: db_command.h:9