3 writes to Set
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\MessageTypeInfoResolver.cs (1)
118propertyInfo.Set = GetSetMethod(field);
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (2)
TestObjectModels\HeterogenousCollection.cs (2)
52property.Set = (obj, value) => ((Rectangle)obj).ShapeProperty = (string)value; 57property.Set = (obj, value) => ((Rectangle)obj).RectangleProperty = (string)value;
22 references to Set
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.Extensions.AI.Abstractions (2)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (2)
267if (property is { Get: null, Set: null } or { IsExtensionData: true }) 285(property.Set is null || nullabilityInfo.WriteState is NullabilityState.NotNull);
Shared (2)
JsonSchemaExporter\JsonSchemaExporter.cs (2)
267if (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)
220if (property is { Get: null, Set: null } or { IsExtensionData: true })
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (2)
227Debug.Assert(jsonPropertyInfo.Set != null); 231jsonPropertyInfo.Set(obj, propValue);
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (2)
146Debug.Assert(jsonPropertyInfo.Set != null); 147jsonPropertyInfo.Set(obj, extensionData);
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (7)
545if (Get == null && Set != null && !_isUserSpecifiedSetter) 554if (Get != null && Set == null && IgnoreReadOnlyMember && !_isUserSpecifiedShouldSerialize) 639(!PropertyType.IsValueType || Set != null) && 641!(Set == null && IgnoreReadOnlyMember); 657if (PropertyType.IsValueType && Set == null) 669if (Set == null && IgnoreReadOnlyMember) 984internal bool IsIgnored => _ignoreCondition is JsonIgnoreCondition.Always && Get is null && Set is null;