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