19 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));
System.Text.Json (17)
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 (6)
165Debug.Assert(jsonPropertyInfo.Set != null); 166jsonPropertyInfo.Set(obj, extensionData); 185Debug.Assert(jsonPropertyInfo.Set != null); 186jsonPropertyInfo.Set(obj, extensionData); 196Debug.Assert(jsonPropertyInfo.Set != null); 197jsonPropertyInfo.Set(obj, extensionData);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (1)
183if (jsonPropertyInfo.Get is null && jsonPropertyInfo.Set is null)
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) 1008internal bool IsIgnored => _ignoreCondition is JsonIgnoreCondition.Always && Get is null && Set is null;