3#include <system/version.h>
4#include <system/value_tuple.h>
6#include <system/type_info.h>
7#include <system/timespan.h>
8#include <system/reflection/member_types.h>
9#include <system/object_ext.h>
10#include <system/nullable.h>
11#include <system/guid.h>
12#include <system/func.h>
13#include <system/exceptions.h>
14#include <system/details/patterns.h>
15#include <system/decimal.h>
16#include <system/date_time_offset.h>
17#include <system/date_time.h>
18#include <system/constraints.h>
19#include <system/collections/stack.h>
20#include <system/collections/queue.h>
21#include <system/collections/list.h>
22#include <system/collections/iset.h>
23#include <system/collections/ilist_ng.h>
24#include <system/collections/ilist.h>
25#include <system/collections/ienumerator.h>
26#include <system/collections/ienumerable_ng.h>
27#include <system/collections/ienumerable.h>
28#include <system/collections/idictionary.h>
29#include <system/collections/icollection.h>
30#include <system/collections/dictionary.h>
31#include <system/array.h>
32#include <system/action.h>
36#include "system/text/json/serialization/json_converter.h"
37#include "system/text/json/serialization/converters/value/enum_converter.h"
38#include "system/text/json/serialization/converters/casting_converter.h"
39#include "system/text/json/nodes/json_array.h"
40#include "system/text/json/document/json_element.h"
41#include "system/text/json/nodes/json_node.h"
42#include "system/text/json/nodes/json_object.h"
43#include "system/text/json/document/json_document.h"
44#include "system/text/json/serialization/json_serializer_options.h"
45#include "system/text/json/serialization/metadata/json_collection_info_values_of_t_collection.h"
46#include "system/text/json/serialization/converters/collection/array_converter.h"
47#include "system/text/json/serialization/converters/collection/list_of_t_converter.h"
48#include "system/text/json/serialization/converters/collection/dictionary_of_t_key_t_value_converter.h"
49#include "system/text/json/serialization/converters/collection/i_dictionary_of_t_key_t_value_converter.h"
50#include "system/text/json/serialization/converters/collection/i_list_converter.h"
51#include "system/text/json/serialization/converters/collection/i_list_of_t_converter.h"
52#include "system/text/json/serialization/converters/collection/i_set_of_t_converter.h"
53#include "system/text/json/serialization/converters/collection/i_collection_of_t_converter.h"
54#include "system/text/json/serialization/converters/collection/stack_of_t_converter.h"
55#include "system/text/json/serialization/converters/collection/queue_of_t_converter.h"
56#include "system/text/json/serialization/converters/collection/i_enumerable_of_t_converter.h"
57#include "system/text/json/serialization/converters/collection/i_dictionary_converter.h"
58#include "system/text/json/serialization/converters/collection/i_enumerable_converter.h"
59#include "system/text/json/serialization/converters/value/unsupported_type_converter.h"
60#include "system/text/json/serialization/converters/value/nullable_converter.h"
61#include "system/text/json/serialization/metadata/json_property_info_values_of_t.h"
62#include "system/text/json/serialization/metadata/json_type_info.h"
63#include "system/text/json/serialization/metadata/json_object_info_values_of_t.h"
64#include "system/text/json/serialization/json_type_classifier.h"
65#include "system/text/json/serialization/json_serializer_context.h"
66#include "system/text/json/serialization/converters/collection/stack_or_queue_converter.h"
67#include "system/text/json/writer/utf8_json_writer.h"
68#include "system/text/json/serialization/json_number_handling.h"
69#include "system/text/json/serialization/metadata/json_polymorphism_options.h"
70#include "system/text/json/serialization/json_type_classifier_factory.h"
71#include "system/text/json/serialization/converters/json_metadata_services_converter.h"
72#include "system/text/json/serialization/converters/object/object_default_converter.h"
73#include "system/text/json/serialization/converters/object/object_with_parameterized_constructor_converter_large.h"
74#include "system/text/json/serialization/json_ignore_condition.h"
75#include "system/text/json/serialization/i_json_on_serializing.h"
76#include "system/text/json/serialization/i_json_on_serialized.h"
77#include "system/text/json/serialization/i_json_on_deserializing.h"
78#include "system/text/json/serialization/i_json_on_deserialized.h"
79#include "system/text/json/serialization/metadata/json_type_info_kind.h"
87template <
typename,
typename>
class KeyValuePair;
96template <
typename>
class JsonConverter;
99class JsonParameterInfoValues;
155 template<
typename TElement>
158 return CreateCore<System::SharedPtr<Array<TElement>>>(options, collectionInfo, System::MakeObject<Converters::ArrayConverter<System::SharedPtr<Array<TElement>>, TElement>>());
161 template<
typename TCollection,
typename TElement>
165 assert_is_base_of(BaseT_List, TCollection);
170 template<
typename TCollection,
typename TKey,
typename TValue>
174 assert_is_base_of(BaseT_Dictionary, TCollection);
179 template<
typename TCollection,
typename TKey,
typename TValue>
183 assert_is_base_of(BaseT_IDictionary, TCollection);
188 template<
typename TCollection>
192 assert_is_base_of(BaseT_IList, TCollection);
197 template<
typename TCollection,
typename TElement>
201 assert_is_base_of(BaseT_IList, TCollection);
206 template<
typename TCollection,
typename TElement>
210 assert_is_base_of(BaseT_ISet, TCollection);
215 template<
typename TCollection,
typename TElement>
219 assert_is_base_of(BaseT_ICollection, TCollection);
224 template<
typename TCollection,
typename TElement>
228 assert_is_base_of(BaseT_Stack, TCollection);
233 template<
typename TCollection,
typename TElement>
237 assert_is_base_of(BaseT_Queue, TCollection);
242 template<
typename TCollection,
typename TElement>
246 assert_is_base_of(BaseT_IEnumerable, TCollection);
251 template<
typename TCollection>
255 assert_is_base_of(BaseT_IDictionary, TCollection);
260 template<
typename TCollection>
264 assert_is_base_of(BaseT_IEnumerable, TCollection);
266 return CreateStackOrQueueInfo<TCollection>(options, collectionInfo, addFunc);
269 template<
typename TCollection>
273 assert_is_base_of(BaseT_IEnumerable, TCollection);
275 return CreateStackOrQueueInfo<TCollection>(options, collectionInfo, addFunc);
278 template<
typename TCollection>
282 assert_is_base_of(BaseT_IEnumerable, TCollection);
290 return System::MakeObject<Converters::UnsupportedTypeConverter<T>>();
303 assert_is_cs_struct(T);
305 if (System::IsNull(underlyingTypeInfo))
307 throw System::ArgumentNullException(u
"underlyingTypeInfo");
312 return System::MakeObject<Converters::NullableConverter<T>>(underlyingConverter);
319 if (System::IsNull(underlyingTypeInfo))
321 throw System::ArgumentNullException(u
"underlyingTypeInfo");
324 return System::MakeObject<Converters::CastingConverter<Nullable<T>>>(underlyingTypeInfo->get_Converter());
331 assert_is_cs_struct(T);
333 if (System::IsNull(options))
335 throw System::ArgumentNullException(u
"options");
340 return System::MakeObject<Converters::NullableConverter<T>>(underlyingConverter);
347 if (System::IsNull(options))
349 throw System::ArgumentNullException(u
"options");
352 return System::MakeObject<Converters::CastingConverter<Nullable<T>>>(options->GetTypeInfo(System::ObjectExt::GetType<T>())->get_Converter());
358 if (System::IsNull(options))
360 throw System::ArgumentNullException(u
"options");
362 if (System::IsNull(propertyInfo))
364 throw System::ArgumentNullException(u
"propertyInfo");
367 TypeInfo declaringType = propertyInfo->get_DeclaringType();
368 if (declaringType ==
nullptr)
373 String propertyName = propertyInfo->get_PropertyName();
374 if (propertyName ==
nullptr)
379 if (!propertyInfo->get_IsProperty() && propertyInfo->get_IsVirtual())
384 return CreatePropertyInfoCore<T>(propertyInfo, options);
390 if (System::IsNull(options))
392 throw System::ArgumentNullException(u
"options");
394 if (System::IsNull(objectInfo))
396 throw System::ArgumentNullException(u
"objectInfo");
399 return CreateCore<T>(options, objectInfo);
405 if (System::IsNull(options))
407 throw System::ArgumentNullException(u
"options");
409 if (System::IsNull(converter))
411 throw System::ArgumentNullException(u
"converter");
424 if (System::IsNull(typedConverter))
426 throw InvalidOperationException(
System::String::Format(u
"The converter '{0}' is not compatible with the type '{1}'.", typedConverter, System::ExplicitCast<System::Object>(System::ObjectExt::GetType<T>())));
429 return typedConverter;
468 template<
typename TCollection>
472 assert_is_base_of(BaseT_IEnumerable, TCollection);
474 if (System::Is(System::ExplicitCast<System::Object>(addFunc),
nullptr))
476 throw System::ArgumentNullException(u
"addFunc");
500 (System::ExplicitCast<System::Text::Json::Serialization::IJsonOnSerializing>(obj))->OnSerializing();
508 (System::ExplicitCast<System::Text::Json::Serialization::IJsonOnSerialized>(obj))->OnSerialized();
516 (System::ExplicitCast<System::Text::Json::Serialization::IJsonOnDeserializing>(obj))->OnDeserializing();
524 (System::ExplicitCast<System::Text::Json::Serialization::IJsonOnDeserialized>(obj))->OnDeserialized();
532 auto typeInfo = JsonTypeInfo<T>::MakeObject(converter, options);
533 PopulatePolymorphismMetadata(typeInfo,
nullptr,
nullptr);
534 typeInfo->MapInterfaceTypesToCallbacks();
535 SetInterfaceCallbacks(typeInfo);
538 converter->ConfigureJsonTypeInfo(typeInfo, options);
539 typeInfo->set_IsCustomized(
false);
547 auto typeInfo = JsonTypeInfo<T>::MakeObject(converter, options);
548 if (System::Is(objectInfo->get_ObjectWithParameterizedConstructorCreator(), !(_==
nullptr)))
552 typeInfo->set_CreateObjectWithArgs(System::ExplicitCast<System::Object>(objectInfo->get_ObjectWithParameterizedConstructorCreator()));
553 PopulateParameterInfoValues(typeInfo, objectInfo->get_ConstructorParameterMetadataInitializer());
557 if (objectInfo->get_FastObjectCreator() !=
nullptr)
559 typeInfo->set_FastCreateObject(objectInfo->get_FastObjectCreator());
563 typeInfo->SetCreateObjectIfCompatible(objectInfo->get_ObjectCreator());
566 if (objectInfo->get_FastObjectCreator() ==
nullptr)
568 typeInfo->set_CreateObjectForExtensionDataProperty((System::ExplicitCast<System::Text::Json::Serialization::Metadata::JsonTypeInfoBase>(typeInfo))->get_CreateObject());
572 if (objectInfo->get_FastPropertyMetadataInitializer() !=
nullptr)
574 typeInfo->set_FastSourceGenDelayedPropertyInitializer(objectInfo->get_FastPropertyMetadataInitializer());
576 else if (System::Is(objectInfo->get_PropertyMetadataInitializer(), !(_==
nullptr)))
578 typeInfo->set_SourceGenDelayedPropertyInitializer(objectInfo->get_PropertyMetadataInitializer());
582 typeInfo->set_PropertyMetadataSerializationNotSupported(
true);
585 typeInfo->set_SerializeHandler(objectInfo->get_SerializeHandler());
586 typeInfo->set_FastSerializeHandler(objectInfo->get_FastSerializeHandler(), objectInfo->get_FastSerializeContext());
587 typeInfo->set_NumberHandling(objectInfo->get_NumberHandling());
589 PopulatePolymorphismMetadata(typeInfo, objectInfo->get_PolymorphismOptions(), objectInfo->get_TypeClassifierFactory());
591 typeInfo->MapInterfaceTypesToCallbacks();
592 SetInterfaceCallbacks(typeInfo);
595 converter->ConfigureJsonTypeInfo(typeInfo, options);
596 typeInfo->set_IsCustomized(
false);
603 if (System::IsNull(collectionInfo))
605 throw System::ArgumentNullException(u
"collectionInfo");
608 converter = (System::Is(collectionInfo->get_SerializeHandler(), !(_==
nullptr)) || collectionInfo->get_FastSerializeHandler() !=
nullptr) ?
System::MakeObject<Converters::JsonMetadataServicesConverter<T>>(converter) : converter;
612 typeInfo->set_KeyTypeInfo(collectionInfo->get_KeyInfo());
613 typeInfo->set_ElementTypeInfo(collectionInfo->get_ElementInfo());
615 typeInfo->set_NumberHandling(collectionInfo->get_NumberHandling());
616 typeInfo->set_SerializeHandler(collectionInfo->get_SerializeHandler());
617 typeInfo->set_FastSerializeHandler(collectionInfo->get_FastSerializeHandler(), collectionInfo->get_FastSerializeContext());
618 typeInfo->set_CreateObjectWithArgs(createObjectWithArgs);
619 typeInfo->set_AddMethodDelegate(addFunc);
620 if (collectionInfo->get_FastObjectCreator() !=
nullptr)
622 typeInfo->set_FastCreateObject(collectionInfo->get_FastObjectCreator());
626 typeInfo->SetCreateObjectIfCompatible(collectionInfo->get_ObjectCreator());
628 PopulatePolymorphismMetadata(typeInfo, collectionInfo->get_PolymorphismOptions(), collectionInfo->get_TypeClassifierFactory());
630 typeInfo->MapInterfaceTypesToCallbacks();
631 SetInterfaceCallbacks(typeInfo);
634 converter->ConfigureJsonTypeInfo(typeInfo, options);
635 typeInfo->set_IsCustomized(
false);
643 System::SharedPtr<JsonConverter<T>> converter = (!System::IsNull(objectInfo->get_ObjectWithParameterizedConstructorCreator())) ?
System::MakeObject<Converters::LargeObjectWithParameterizedConstructorConverter<T>>() : System::MakeObject<Converters::ObjectDefaultConverter<T>>();
645 return (!System::IsNull(objectInfo->get_SerializeHandler()) || objectInfo->get_FastSerializeHandler() !=
nullptr) ?
System::MakeObject<Converters::JsonMetadataServicesConverter<T>>(converter) : converter;
648 static ASPOSECPP_SHARED_API
void PopulatePolymorphismMetadata(
656 auto propertyInfo = System::MakeObject<JsonPropertyInfo<T>>(propertyInfoValues->get_DeclaringType(),
nullptr, options);
658 DeterminePropertyName(propertyInfo, propertyInfoValues->get_PropertyName(), propertyInfoValues->get_JsonPropertyName());
660 propertyInfo->set_MemberName(propertyInfoValues->get_PropertyName());
662 propertyInfo->set_SrcGen_IsPublic(propertyInfoValues->get_IsPublic());
663 propertyInfo->set_SrcGen_HasJsonInclude(propertyInfoValues->get_HasJsonInclude());
664 propertyInfo->set_IsExtensionData(propertyInfoValues->get_IsExtensionData());
665 propertyInfo->set_CustomConverter(propertyInfoValues->get_Converter());
669 if (propertyInfoValues->get_FastGetter() !=
nullptr)
671 propertyInfo->set_GetFast(propertyInfoValues->get_FastGetter());
675 propertyInfo->set_Get(propertyInfoValues->get_Getter());
678 if (propertyInfoValues->get_FastSetter() !=
nullptr)
680 propertyInfo->set_SetFast(propertyInfoValues->get_FastSetter());
684 propertyInfo->set_Set(propertyInfoValues->get_Setter());
688 propertyInfo->set_IgnoreCondition(propertyInfoValues->get_IgnoreCondition());
689 propertyInfo->set_JsonTypeInfo(propertyInfoValues->get_PropertyTypeInfo());
690 propertyInfo->set_NumberHandling(propertyInfoValues->get_NumberHandling());
Class that represents an array data structure. Objects of this class should only be allocated using S...
Definition: array.h:296
Forward declaration of Dictionary class.
Definition: dictionary.h:96
Interface of collection of elements. Objects of this class should only be allocated using System::Mak...
Definition: icollection.h:20
Interface for dictionary-alike containers. Objects of this class should only be allocated using Syste...
Definition: idictionary.h:21
Interface of object providing enumerator on contained elements.
Definition: ienumerable.h:26
Interface of indexed container of elements. Objects of this class should only be allocated using Syst...
Definition: ilist.h:20
Interface of collection containing a set of unique elements. Objects of this class should only be all...
Definition: iset.h:18
List forward declaration.
Definition: list.h:129
Queue class forward declaration.
Definition: queue.h:88
Stack class forward declaration.
Definition: stack.h:87
IEnumerable is the base interface for all non-generic collections that can be enumerated.
Definition: ienumerable_ng.h:10
IList Represents a non-generic collection of objects that can be individually accessed by index.
Definition: ilist_ng.h:9
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:118
Function delegate. This type should be allocated on stack and passed to functions by value or by refe...
Definition: func.h:82
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
static String Format(const SharedPtr< IFormatProvider > &fp, const String &format, const Args &... args)
Formats string in C# style.
Definition: string.h:1449
Definition: dictionary_of_t_key_t_value_converter.h:36
Definition: i_collection_of_t_converter.h:32
Definition: i_dictionary_converter.h:39
Definition: i_dictionary_of_t_key_t_value_converter.h:34
Definition: i_enumerable_converter.h:35
Definition: i_enumerable_of_t_converter.h:40
Definition: i_list_converter.h:36
Definition: i_list_of_t_converter.h:32
Definition: i_set_of_t_converter.h:32
Definition: list_of_t_converter.h:35
Definition: queue_of_t_converter.h:40
Definition: stack_of_t_converter.h:40
Definition: stack_or_queue_converter.h:37
Definition: json_collection_info_values_of_t_collection.h:43
Definition: json_metadata_services.h:118
static System::SharedPtr< JsonConverter< uint8_t > > get_ByteConverter()
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateStackInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:225
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateIListInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:189
static System::SharedPtr< JsonPropertyInfoBase > CreatePropertyInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonPropertyInfoValues< T > > propertyInfo)
Definition: json_metadata_services.h:356
static System::SharedPtr< JsonConverter< String > > get_StringConverter()
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateIEnumerableInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:279
static System::SharedPtr< JsonConverter< TimeSpan > > get_TimeSpanConverter()
static System::SharedPtr< JsonTypeInfo< System::SharedPtr< Array< TElement > > > > CreateArrayInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< System::SharedPtr< Array< TElement > > > > collectionInfo)
Definition: json_metadata_services.h:156
static System::SharedPtr< JsonConverter< T > > GetEnumConverter(System::SharedPtr< JsonSerializerOptions > options)
Definition: json_metadata_services.h:294
static System::SharedPtr< JsonConverter< Version > > get_VersionConverter()
static System::SharedPtr< JsonConverter< System::SharedPtr< Nodes::JsonArray > > > get_JsonArrayConverter()
static System::SharedPtr< JsonConverter< DateTime > > get_DateTimeConverter()
static System::SharedPtr< JsonConverter< ReadOnlyMemory< uint8_t > > > get_ReadOnlyMemoryByteConverter()
static System::SharedPtr< JsonTypeInfo< T > > CreateObjectInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonObjectInfoValues< T > > objectInfo)
Definition: json_metadata_services.h:388
static System::SharedPtr< JsonConverter< uint64_t > > get_UInt64Converter()
static System::SharedPtr< JsonTypeInfo< T > > CreateValueInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonConverterBase > converter)
Definition: json_metadata_services.h:403
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateQueueInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:234
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateICollectionInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:216
static System::SharedPtr< JsonConverter< T > > GetTypedConverter(System::SharedPtr< JsonConverterBase > converter)
Definition: json_metadata_services.h:421
static System::SharedPtr< JsonConverter< System::SharedPtr< JsonDocument > > > get_JsonDocumentConverter()
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateQueueInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo, Action< TCollection, System::SharedPtr< Object > > addFunc)
Definition: json_metadata_services.h:270
static System::SharedPtr< JsonConverter< DateTimeOffset > > get_DateTimeOffsetConverter()
static void PopulateProperties(System::SharedPtr< JsonTypeInfoBase > typeInfo, System::SharedPtr< JsonTypeInfoBase::JsonPropertyInfoList > propertyList, Func< System::SharedPtr< JsonSerializerContext >, System::SharedPtr< Array< System::SharedPtr< JsonPropertyInfoBase > > > > propInitFunc)
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateDictionaryInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:171
JsonMetadataServices()=delete
static void PopulateProperties(System::SharedPtr< JsonTypeInfoBase > typeInfo, System::SharedPtr< JsonTypeInfoBase::JsonPropertyInfoList > propertyList, JsonTypeInfoBase::PropertyMetadataInitializerFn propInitFunc, System::SharedPtr< JsonSerializerOptions > options)
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateIListInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:198
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateIDictionaryInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:252
static System::SharedPtr< JsonConverter< Decimal > > get_DecimalConverter()
static System::SharedPtr< JsonConverter< char16_t > > get_CharConverter()
static System::SharedPtr< JsonConverter< System::SharedPtr< Nodes::JsonValueBase > > > get_JsonValueConverter()
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateIDictionaryInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:180
static System::SharedPtr< JsonConverter< float > > get_SingleConverter()
static System::SharedPtr< JsonConverter< System::SharedPtr< Nodes::JsonNode > > > get_JsonNodeConverter()
static System::SharedPtr< JsonConverter< uint32_t > > get_UInt32Converter()
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateISetInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:207
static System::SharedPtr< JsonConverter< int64_t > > get_Int64Converter()
static System::SharedPtr< JsonConverter< bool > > get_BooleanConverter()
static System::SharedPtr< JsonConverter< System::SharedPtr< Nodes::JsonObject > > > get_JsonObjectConverter()
static System::SharedPtr< JsonConverter< T > > GetUnsupportedTypeConverter()
Definition: json_metadata_services.h:288
static std::enable_if< System::Constraints::IsCsPointer< T >::value, System::SharedPtr< JsonConverter< Nullable< T > > > >::type GetNullableConverter(System::SharedPtr< JsonSerializerOptions > options)
Definition: json_metadata_services.h:345
static System::SharedPtr< JsonConverter< int32_t > > get_Int32Converter()
static System::SharedPtr< JsonConverter< Memory< uint8_t > > > get_MemoryByteConverter()
static System::SharedPtr< JsonConverter< JsonElement > > get_JsonElementConverter()
static System::SharedPtr< JsonConverter< Guid > > get_GuidConverter()
static std::enable_if<!System::Constraints::IsCsPointer< T >::value, System::SharedPtr< JsonConverter< Nullable< T > > > >::type GetNullableConverter(System::SharedPtr< JsonSerializerOptions > options)
Definition: json_metadata_services.h:329
static std::enable_if<!System::Constraints::IsCsPointer< T >::value, System::SharedPtr< JsonConverter< Nullable< T > > > >::type GetNullableConverter(System::SharedPtr< JsonTypeInfo< T > > underlyingTypeInfo)
Definition: json_metadata_services.h:301
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateListInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:162
static System::SharedPtr< JsonConverter< System::SharedPtr< Array< uint8_t > > > > get_ByteArrayConverter()
static System::SharedPtr< JsonConverter< System::SharedPtr< Uri > > > get_UriConverter()
static System::SharedPtr< JsonConverter< uint16_t > > get_UInt16Converter()
static System::SharedPtr< JsonConverter< double > > get_DoubleConverter()
static System::SharedPtr< JsonConverter< System::SharedPtr< Object > > > get_ObjectConverter()
static System::SharedPtr< JsonConverter< int8_t > > get_SByteConverter()
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateStackInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo, Action< TCollection, System::SharedPtr< Object > > addFunc)
Definition: json_metadata_services.h:261
static std::enable_if< System::Constraints::IsCsPointer< T >::value, System::SharedPtr< JsonConverter< Nullable< T > > > >::type GetNullableConverter(System::SharedPtr< JsonTypeInfo< T > > underlyingTypeInfo)
Definition: json_metadata_services.h:317
static System::SharedPtr< JsonTypeInfo< TCollection > > CreateIEnumerableInfo(System::SharedPtr< JsonSerializerOptions > options, System::SharedPtr< JsonCollectionInfoValues< TCollection > > collectionInfo)
Definition: json_metadata_services.h:243
static System::SharedPtr< JsonConverter< int16_t > > get_Int16Converter()
Definition: json_object_info_values_of_t.h:45
Definition: json_property_info_values_of_t.h:45
Definition: json_type_info.h:106
System::SharedPtr< Array< System::SharedPtr< JsonPropertyInfoBase > > >(*)(System::SharedPtr< JsonSerializerOptions >) PropertyMetadataInitializerFn
Definition: json_type_info.h:312
Definition: json_type_info_of_t.h:84
Represents a particular type and provides information about it.
Definition: type_info.h:109
@ Text
Defines color adjustment information for text.
@ Property
Specifies that the member is a property.
@ Field
Specifies that the member is a field.
JsonTypeInfoKind
Definition: json_type_info_kind.h:14
Definition: db_command.h:9
MulticastDelegate< void(Args...)> Action
Delegate type that references methods that have no return value.
Definition: action.h:40
std::enable_if<!IsSmartPtr< T >::value, SmartPtr< T > >::type MakeObject(Args &&... args)
Creates object on heap and returns shared pointer to it.
Definition: smart_ptr.h:1496
A template predicate that determines if type Derived is derived from Base.
Definition: constraints.h:16