36 references to JsonObjectCreationHandling
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\MessageTypeInfoResolver.cs (1)
114propertyInfo.ObjectCreationHandling = JsonObjectCreationHandling.Populate;
System.Text.Json (35)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
101public 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 37public JsonObjectCreationHandling Handling { get; } 43public JsonObjectCreationHandlingAttribute(JsonObjectCreationHandling handling)
System\Text\Json\Serialization\JsonConverter.cs (1)
68/// Indicates that the converter is compatible with <see cref="JsonObjectCreationHandling.Populate"/>.
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (3)
90internal static bool IsValidCreationHandlingValue(JsonObjectCreationHandling handling) => 91handling is JsonObjectCreationHandling.Replace or JsonObjectCreationHandling.Populate;
System\Text\Json\Serialization\JsonSerializerOptions.cs (3)
86private JsonObjectCreationHandling _preferredObjectCreationHandling; 471/// When set to <see cref="JsonObjectCreationHandling.Populate"/> all properties which 480public JsonObjectCreationHandling PreferredObjectCreationHandling
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
264private static JsonObjectCreationHandling? GetObjectCreationHandlingForType(Type type)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (16)
202public JsonObjectCreationHandling? ObjectCreationHandling 221private JsonObjectCreationHandling? _objectCreationHandling; 222internal JsonObjectCreationHandling EffectiveObjectCreationHandling { get; private set; } 538CanDeserializeOrPopulate = CanDeserialize || EffectiveObjectCreationHandling == JsonObjectCreationHandling.Populate; 560CanDeserializeOrPopulate = CanDeserialize || EffectiveObjectCreationHandling == JsonObjectCreationHandling.Populate; 624JsonObjectCreationHandling effectiveObjectCreationHandling = JsonObjectCreationHandling.Replace; 629JsonObjectCreationHandling preferredCreationHandling = 632? JsonObjectCreationHandling.Replace 636preferredCreationHandling == JsonObjectCreationHandling.Populate && 643effectiveObjectCreationHandling = canPopulate ? JsonObjectCreationHandling.Populate : JsonObjectCreationHandling.Replace; 645else if (ObjectCreationHandling == JsonObjectCreationHandling.Populate) 674effectiveObjectCreationHandling = JsonObjectCreationHandling.Populate; 677if (effectiveObjectCreationHandling is JsonObjectCreationHandling.Populate) 965if (EffectiveObjectCreationHandling != JsonObjectCreationHandling.Populate)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
287Debug.Assert(CanDeserialize || EffectiveObjectCreationHandling == JsonObjectCreationHandling.Populate); 312Debug.Assert(EffectiveObjectCreationHandling != JsonObjectCreationHandling.Populate, "Populating should not be possible for simple types");
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (4)
561private JsonObjectCreationHandling? _preferredPropertyObjectCreationHandling; 564/// Gets or sets the preferred <see cref="JsonObjectCreationHandling"/> value for properties contained in the type. 574/// Specified an invalid <see cref="JsonObjectCreationHandling"/> value. 580public JsonObjectCreationHandling? PreferredPropertyObjectCreationHandling