1 write to Set
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\MessageTypeInfoResolver.cs (1)
140propertyInfo.Set = GetSetMethod(field, wrapperTypeValueField);
26 references to Set
Aspire.Hosting.RemoteHost (2)
Ats\AtsMarshaller.cs (2)
609if (prop.Set is null) 621prop.Set(target, jsonValue.Deserialize(prop.PropertyType, s_jsonOptions));
Microsoft.AspNetCore.JsonPatch.SystemTextJson (6)
Internal\PocoAdapter.cs (6)
28if (jsonProperty.Set == null) 40jsonProperty.Set(target, convertedValue); 84if (jsonProperty.Set == null) 99jsonProperty.Set(target, value); 118if (jsonProperty.Set == null) 130jsonProperty.Set(target, convertedValue);
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
539propertyInfo.Set is null &&
System.Text.Json (17)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
241if (property is { Get: null, Set: null } or { IsExtensionData: true })
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (2)
227Debug.Assert(jsonPropertyInfo.Set is not null); 231jsonPropertyInfo.Set(obj, propValue);
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (6)
165Debug.Assert(jsonPropertyInfo.Set is not null); 166jsonPropertyInfo.Set(obj, extensionData); 185Debug.Assert(jsonPropertyInfo.Set is not null); 186jsonPropertyInfo.Set(obj, extensionData); 196Debug.Assert(jsonPropertyInfo.Set is not null); 197jsonPropertyInfo.Set(obj, extensionData);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (1)
184if (jsonPropertyInfo.Get is null && jsonPropertyInfo.Set is null)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (7)
540if (Get is null && Set is not null && !_isUserSpecifiedSetter) 549if (Get is not null && Set is null && IgnoreReadOnlyMember && !_isUserSpecifiedShouldSerialize) 634(!PropertyType.IsValueType || Set is not null) && 636!(Set is null && IgnoreReadOnlyMember); 652if (PropertyType.IsValueType && Set is null) 664if (Set is null && IgnoreReadOnlyMember) 999internal bool IsIgnored => _ignoreCondition is JsonIgnoreCondition.Always && Get is null && Set is null;