12 references to RespectNullableAnnotations
System.Text.Json (12)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
124
/// Specifies the default value of <see cref="JsonSerializerOptions.
RespectNullableAnnotations
"/> when set.
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.cs (1)
25
if (arg == null && !jsonParameterInfo.IsNullable && jsonParameterInfo.Options.
RespectNullableAnnotations
)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (1)
78
else if (!info.IsNullable && info.Options.
RespectNullableAnnotations
)
System\Text\Json\Serialization\JsonSerializerContext.cs (2)
73
options.
RespectNullableAnnotations
== generatedSerializerOptions.
RespectNullableAnnotations
&&
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (1)
70
/// This property has no effect on deserialization unless the <see cref="JsonSerializerOptions.
RespectNullableAnnotations
"/>
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
243
/// This property has no effect on serialization unless the <see cref="JsonSerializerOptions.
RespectNullableAnnotations
"/>
279
/// This property has no effect on deserialization unless the <see cref="JsonSerializerOptions.
RespectNullableAnnotations
"/>
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (4)
212
if (!IsGetNullable && Options.
RespectNullableAnnotations
)
296
if (!IsSetNullable && Options.
RespectNullableAnnotations
)
319
if (fastValue is null && !IsSetNullable && Options.
RespectNullableAnnotations
)
348
if (value is null && !IsSetNullable && Options.
RespectNullableAnnotations
)