1 write to Set
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\MessageTypeInfoResolver.cs (1)
118
propertyInfo.
Set
= GetSetMethod(field);
14 references to Set
Shared (2)
JsonSchemaExporter\JsonSchemaExporter.cs (2)
267
if (property is { Get: null,
Set
: null } or { IsExtensionData: true })
285
(property.
Set
is null || nullabilityInfo.WriteState is NullabilityState.NotNull);
System.Text.Json (12)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
230
if (property is { Get: null,
Set
: null } or { IsExtensionData: true })
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (2)
227
Debug.Assert(jsonPropertyInfo.
Set
!= null);
231
jsonPropertyInfo.
Set
(obj, propValue);
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (2)
146
Debug.Assert(jsonPropertyInfo.
Set
!= null);
147
jsonPropertyInfo.
Set
(obj, extensionData);
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (7)
545
if (Get == null &&
Set
!= null && !_isUserSpecifiedSetter)
554
if (Get != null &&
Set
== null && IgnoreReadOnlyMember && !_isUserSpecifiedShouldSerialize)
639
(!PropertyType.IsValueType ||
Set
!= null) &&
641
!(
Set
== null && IgnoreReadOnlyMember);
657
if (PropertyType.IsValueType &&
Set
== null)
669
if (
Set
== null && IgnoreReadOnlyMember)
987
internal bool IsIgnored => _ignoreCondition is JsonIgnoreCondition.Always && Get is null &&
Set
is null;