41 references to JsonObjectCreationHandling
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
298
options.PreferredObjectCreationHandling =
JsonObjectCreationHandling
.Replace;
dotnet-aot (6)
Generated\361d1da7f942c932\RunFileBuildCacheJsonSerializerContext.RunFileBuildCacheEntry.g.cs (3)
72
properties[0].ObjectCreationHandling = global::System.Text.Json.Serialization.
JsonObjectCreationHandling
.Populate;
94
properties[1].ObjectCreationHandling = global::System.Text.Json.Serialization.
JsonObjectCreationHandling
.Populate;
136
properties[3].ObjectCreationHandling = global::System.Text.Json.Serialization.
JsonObjectCreationHandling
.Populate;
parent\dotnet\Commands\Run\RunFileBuildCacheEntry.cs (3)
25
[JsonObjectCreationHandling(
JsonObjectCreationHandling
.Populate)]
29
[JsonObjectCreationHandling(
JsonObjectCreationHandling
.Populate)]
41
[JsonObjectCreationHandling(
JsonObjectCreationHandling
.Populate)]
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\MessageTypeInfoResolver.cs (1)
136
propertyInfo.ObjectCreationHandling =
JsonObjectCreationHandling
.Populate;
System.Text.Json (33)
parent\Common\JsonSourceGenerationOptionsAttribute.cs (1)
108
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)
66
/// 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)
87
private
JsonObjectCreationHandling
_preferredObjectCreationHandling;
475
/// When set to <see cref="
JsonObjectCreationHandling
.Populate"/> all properties which
484
public
JsonObjectCreationHandling
PreferredObjectCreationHandling
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
739
private static
JsonObjectCreationHandling
? GetObjectCreationHandlingForType(Type type)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (15)
200
public
JsonObjectCreationHandling
? ObjectCreationHandling
219
internal
JsonObjectCreationHandling
EffectiveObjectCreationHandling { get; private set; }
533
CanDeserializeOrPopulate = CanDeserialize || EffectiveObjectCreationHandling ==
JsonObjectCreationHandling
.Populate;
555
CanDeserializeOrPopulate = CanDeserialize || EffectiveObjectCreationHandling ==
JsonObjectCreationHandling
.Populate;
619
JsonObjectCreationHandling
effectiveObjectCreationHandling =
JsonObjectCreationHandling
.Replace;
624
JsonObjectCreationHandling
preferredCreationHandling =
627
?
JsonObjectCreationHandling
.Replace
631
preferredCreationHandling ==
JsonObjectCreationHandling
.Populate &&
638
effectiveObjectCreationHandling = canPopulate ?
JsonObjectCreationHandling
.Populate :
JsonObjectCreationHandling
.Replace;
640
else if (ObjectCreationHandling ==
JsonObjectCreationHandling
.Populate)
669
effectiveObjectCreationHandling =
JsonObjectCreationHandling
.Populate;
672
if (effectiveObjectCreationHandling is
JsonObjectCreationHandling
.Populate)
956
if (EffectiveObjectCreationHandling !=
JsonObjectCreationHandling
.Populate)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
287
Debug.Assert(CanDeserialize || EffectiveObjectCreationHandling ==
JsonObjectCreationHandling
.Populate);
312
Debug.Assert(EffectiveObjectCreationHandling !=
JsonObjectCreationHandling
.Populate, "Populating should not be possible for simple types");
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (3)
802
/// Gets or sets the preferred <see cref="
JsonObjectCreationHandling
"/> value for properties contained in the type.
812
/// Specified an invalid <see cref="
JsonObjectCreationHandling
"/> value.
818
public
JsonObjectCreationHandling
? PreferredPropertyObjectCreationHandling