1 write to IsRequired
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
403propertyInfo.IsRequired =
7 references to IsRequired
System.Text.Json (7)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
257if (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)
449if (IsRequired) 509IgnoreNullTokensOnRead = !_isUserSpecifiedSetter && !IsRequired; 1060Debug.Assert(IsRequired);
System\Text\Json\Serialization\ReadStackFrame.cs (1)
133if (propertyInfo.IsRequired)
System\Text\Json\ThrowHelper.Serialization.cs (1)
301if (!property.IsRequired || requiredPropertiesSet[property.RequiredPropertyIndex])