36 references to JsonObjectCreationHandling
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\MessageTypeInfoResolver.cs (1)
114
propertyInfo.ObjectCreationHandling =
JsonObjectCreationHandling
.Populate;
System.Text.Json (35)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
101
public
JsonObjectCreationHandling
PreferredObjectCreationHandling { get; set; }
System\Text\Json\Serialization\Attributes\JsonObjectCreationHandlingAttribute.cs (4)
16
/// When placed on a type with <see cref="
JsonObjectCreationHandling
.Populate"/> indicates that all members
20
/// For example when <see cref="JsonObjectCreationHandlingAttribute"/> with <see cref="
JsonObjectCreationHandling
.Populate"/> is placed on a class
37
public
JsonObjectCreationHandling
Handling { get; }
43
public JsonObjectCreationHandlingAttribute(
JsonObjectCreationHandling
handling)
System\Text\Json\Serialization\JsonConverter.cs (1)
67
/// Indicates that the converter is compatible with <see cref="
JsonObjectCreationHandling
.Populate"/>.
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (3)
92
internal static bool IsValidCreationHandlingValue(
JsonObjectCreationHandling
handling) =>
93
handling is
JsonObjectCreationHandling
.Replace or
JsonObjectCreationHandling
.Populate;
System\Text\Json\Serialization\JsonSerializerOptions.cs (3)
80
private
JsonObjectCreationHandling
_preferredObjectCreationHandling;
455
/// When set to <see cref="
JsonObjectCreationHandling
.Populate"/> all properties which
464
public
JsonObjectCreationHandling
PreferredObjectCreationHandling
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
272
private static
JsonObjectCreationHandling
? GetObjectCreationHandlingForType(Type type)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (16)
209
public
JsonObjectCreationHandling
? ObjectCreationHandling
228
private
JsonObjectCreationHandling
? _objectCreationHandling;
229
internal
JsonObjectCreationHandling
EffectiveObjectCreationHandling { get; private set; }
438
CanDeserializeOrPopulate = CanDeserialize || EffectiveObjectCreationHandling ==
JsonObjectCreationHandling
.Populate;
460
CanDeserializeOrPopulate = CanDeserialize || EffectiveObjectCreationHandling ==
JsonObjectCreationHandling
.Populate;
524
JsonObjectCreationHandling
effectiveObjectCreationHandling =
JsonObjectCreationHandling
.Replace;
529
JsonObjectCreationHandling
preferredCreationHandling =
532
?
JsonObjectCreationHandling
.Replace
536
preferredCreationHandling ==
JsonObjectCreationHandling
.Populate &&
543
effectiveObjectCreationHandling = canPopulate ?
JsonObjectCreationHandling
.Populate :
JsonObjectCreationHandling
.Replace;
545
else if (ObjectCreationHandling ==
JsonObjectCreationHandling
.Populate)
574
effectiveObjectCreationHandling =
JsonObjectCreationHandling
.Populate;
577
if (effectiveObjectCreationHandling is
JsonObjectCreationHandling
.Populate)
861
if (EffectiveObjectCreationHandling !=
JsonObjectCreationHandling
.Populate)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
269
Debug.Assert(CanDeserialize || EffectiveObjectCreationHandling ==
JsonObjectCreationHandling
.Populate);
289
Debug.Assert(EffectiveObjectCreationHandling !=
JsonObjectCreationHandling
.Populate, "Populating should not be possible for simple types");
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (4)
530
private
JsonObjectCreationHandling
? _preferredPropertyObjectCreationHandling;
533
/// Gets or sets the preferred <see cref="
JsonObjectCreationHandling
"/> value for properties contained in the type.
543
/// Specified an invalid <see cref="
JsonObjectCreationHandling
"/> value.
549
public
JsonObjectCreationHandling
? PreferredPropertyObjectCreationHandling