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)
25if (arg == null && !jsonParameterInfo.IsNullable && jsonParameterInfo.Options.RespectNullableAnnotations)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (1)
78else if (!info.IsNullable && info.Options.RespectNullableAnnotations)
System\Text\Json\Serialization\JsonSerializerContext.cs (2)
73options.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)
212if (!IsGetNullable && Options.RespectNullableAnnotations) 296if (!IsSetNullable && Options.RespectNullableAnnotations) 319if (fastValue is null && !IsSetNullable && Options.RespectNullableAnnotations) 348if (value is null && !IsSetNullable && Options.RespectNullableAnnotations)