1 write to IsRequired
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
403
propertyInfo.
IsRequired
=
7 references to IsRequired
System.Text.Json (7)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
257
if (property is {
IsRequired
: true } or { AssociatedParameter.IsRequiredParameter: true })
System\Text\Json\Serialization\Attributes\JsonRequiredAttribute.cs (1)
14
/// this attribute will be mapped to <see cref="JsonPropertyInfo.
IsRequired
"/>.
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (3)
449
if (
IsRequired
)
509
IgnoreNullTokensOnRead = !_isUserSpecifiedSetter && !
IsRequired
;
1060
Debug.Assert(
IsRequired
);
System\Text\Json\Serialization\ReadStackFrame.cs (1)
133
if (propertyInfo.
IsRequired
)
System\Text\Json\ThrowHelper.Serialization.cs (1)
301
if (!property.
IsRequired
|| requiredPropertiesSet[property.RequiredPropertyIndex])