72 references to JsonMetadataServices
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\JsonSerialization\JsonConverterFactoryTypeInfoResolver.cs (1)
40
return
JsonMetadataServices
.CreateValueInfo<T>(options, converterToUse);
System.Text.Json (71)
System\Text\Json\Nodes\JsonValue.CreateOverloads.cs (35)
17
public static JsonValue Create(bool value, JsonNodeOptions? options = null) => new JsonValuePrimitive<bool>(value,
JsonMetadataServices
.BooleanConverter);
25
public static JsonValue? Create(bool? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<bool>(value.Value,
JsonMetadataServices
.BooleanConverter) : null;
33
public static JsonValue Create(byte value, JsonNodeOptions? options = null) => new JsonValuePrimitive<byte>(value,
JsonMetadataServices
.ByteConverter);
41
public static JsonValue? Create(byte? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<byte>(value.Value,
JsonMetadataServices
.ByteConverter) : null;
49
public static JsonValue Create(char value, JsonNodeOptions? options = null) => new JsonValuePrimitive<char>(value,
JsonMetadataServices
.CharConverter);
57
public static JsonValue? Create(char? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<char>(value.Value,
JsonMetadataServices
.CharConverter) : null;
65
public static JsonValue Create(DateTime value, JsonNodeOptions? options = null) => new JsonValuePrimitive<DateTime>(value,
JsonMetadataServices
.DateTimeConverter);
73
public static JsonValue? Create(DateTime? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<DateTime>(value.Value,
JsonMetadataServices
.DateTimeConverter) : null;
81
public static JsonValue Create(DateTimeOffset value, JsonNodeOptions? options = null) => new JsonValuePrimitive<DateTimeOffset>(value,
JsonMetadataServices
.DateTimeOffsetConverter);
89
public static JsonValue? Create(DateTimeOffset? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<DateTimeOffset>(value.Value,
JsonMetadataServices
.DateTimeOffsetConverter) : null;
97
public static JsonValue Create(decimal value, JsonNodeOptions? options = null) => new JsonValuePrimitive<decimal>(value,
JsonMetadataServices
.DecimalConverter);
105
public static JsonValue? Create(decimal? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<decimal>(value.Value,
JsonMetadataServices
.DecimalConverter) : null;
113
public static JsonValue Create(double value, JsonNodeOptions? options = null) => new JsonValuePrimitive<double>(value,
JsonMetadataServices
.DoubleConverter);
121
public static JsonValue? Create(double? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<double>(value.Value,
JsonMetadataServices
.DoubleConverter) : null;
129
public static JsonValue Create(Guid value, JsonNodeOptions? options = null) => new JsonValuePrimitive<Guid>(value,
JsonMetadataServices
.GuidConverter);
137
public static JsonValue? Create(Guid? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<Guid>(value.Value,
JsonMetadataServices
.GuidConverter) : null;
145
public static JsonValue Create(short value, JsonNodeOptions? options = null) => new JsonValuePrimitive<short>(value,
JsonMetadataServices
.Int16Converter);
153
public static JsonValue? Create(short? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<short>(value.Value,
JsonMetadataServices
.Int16Converter) : null;
161
public static JsonValue Create(int value, JsonNodeOptions? options = null) => new JsonValuePrimitive<int>(value,
JsonMetadataServices
.Int32Converter);
169
public static JsonValue? Create(int? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<int>(value.Value,
JsonMetadataServices
.Int32Converter) : null;
177
public static JsonValue Create(long value, JsonNodeOptions? options = null) => new JsonValuePrimitive<long>(value,
JsonMetadataServices
.Int64Converter);
185
public static JsonValue? Create(long? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<long>(value.Value,
JsonMetadataServices
.Int64Converter) : null;
194
public static JsonValue Create(sbyte value, JsonNodeOptions? options = null) => new JsonValuePrimitive<sbyte>(value,
JsonMetadataServices
.SByteConverter);
203
public static JsonValue? Create(sbyte? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<sbyte>(value.Value,
JsonMetadataServices
.SByteConverter) : null;
211
public static JsonValue Create(float value, JsonNodeOptions? options = null) => new JsonValuePrimitive<float>(value,
JsonMetadataServices
.SingleConverter);
219
public static JsonValue? Create(float? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<float>(value.Value,
JsonMetadataServices
.SingleConverter) : null;
228
public static JsonValue? Create(string? value, JsonNodeOptions? options = null) => value != null ? new JsonValuePrimitive<string?>(value,
JsonMetadataServices
.StringConverter) : null;
237
public static JsonValue Create(ushort value, JsonNodeOptions? options = null) => new JsonValuePrimitive<ushort>(value,
JsonMetadataServices
.UInt16Converter);
246
public static JsonValue? Create(ushort? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<ushort>(value.Value,
JsonMetadataServices
.UInt16Converter) : null;
255
public static JsonValue Create(uint value, JsonNodeOptions? options = null) => new JsonValuePrimitive<uint>(value,
JsonMetadataServices
.UInt32Converter);
264
public static JsonValue? Create(uint? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<uint>(value.Value,
JsonMetadataServices
.UInt32Converter) : null;
273
public static JsonValue Create(ulong value, JsonNodeOptions? options = null) => new JsonValuePrimitive<ulong>(value,
JsonMetadataServices
.UInt64Converter);
282
public static JsonValue? Create(ulong? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<ulong>(value.Value,
JsonMetadataServices
.UInt64Converter) : null;
299
return new JsonValuePrimitive<JsonElement>(value,
JsonMetadataServices
.JsonElementConverter);
323
return new JsonValuePrimitive<JsonElement>(element,
JsonMetadataServices
.JsonElementConverter);
System\Text\Json\Nodes\JsonValue.cs (1)
49
return new JsonValuePrimitive<JsonElement>(element,
JsonMetadataServices
.JsonElementConverter, options);
System\Text\Json\Nodes\JsonValueOfTPrimitive.cs (1)
51
? new JsonValuePrimitive<JsonElement>(element.Clone(),
JsonMetadataServices
.JsonElementConverter, Options)
System\Text\Json\Serialization\Converters\Node\JsonNodeConverter.cs (1)
75
node = new JsonValuePrimitive<JsonElement>(element,
JsonMetadataServices
.JsonElementConverter, options);
System\Text\Json\Serialization\Converters\Node\JsonValueConverter.cs (1)
30
JsonValue value = new JsonValuePrimitive<JsonElement>(element,
JsonMetadataServices
.JsonElementConverter, options.GetNodeOptions());
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (31)
48
Add(
JsonMetadataServices
.BooleanConverter);
49
Add(
JsonMetadataServices
.ByteConverter);
50
Add(
JsonMetadataServices
.ByteArrayConverter);
51
Add(
JsonMetadataServices
.CharConverter);
52
Add(
JsonMetadataServices
.DateTimeConverter);
53
Add(
JsonMetadataServices
.DateTimeOffsetConverter);
55
Add(
JsonMetadataServices
.DateOnlyConverter);
56
Add(
JsonMetadataServices
.TimeOnlyConverter);
57
Add(
JsonMetadataServices
.HalfConverter);
59
Add(
JsonMetadataServices
.DoubleConverter);
60
Add(
JsonMetadataServices
.DecimalConverter);
61
Add(
JsonMetadataServices
.GuidConverter);
62
Add(
JsonMetadataServices
.Int16Converter);
63
Add(
JsonMetadataServices
.Int32Converter);
64
Add(
JsonMetadataServices
.Int64Converter);
65
Add(
JsonMetadataServices
.JsonElementConverter);
66
Add(
JsonMetadataServices
.JsonDocumentConverter);
67
Add(
JsonMetadataServices
.MemoryByteConverter);
68
Add(
JsonMetadataServices
.ReadOnlyMemoryByteConverter);
69
Add(
JsonMetadataServices
.ObjectConverter);
70
Add(
JsonMetadataServices
.SByteConverter);
71
Add(
JsonMetadataServices
.SingleConverter);
72
Add(
JsonMetadataServices
.StringConverter);
73
Add(
JsonMetadataServices
.TimeSpanConverter);
74
Add(
JsonMetadataServices
.UInt16Converter);
75
Add(
JsonMetadataServices
.UInt32Converter);
76
Add(
JsonMetadataServices
.UInt64Converter);
78
Add(
JsonMetadataServices
.Int128Converter);
79
Add(
JsonMetadataServices
.UInt128Converter);
81
Add(
JsonMetadataServices
.UriConverter);
82
Add(
JsonMetadataServices
.VersionConverter);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
231
JsonMetadataServices
.PopulateProperties(this, list, propInit);