1 override of PropertyTypeCanBeNull
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
114
internal override bool
PropertyTypeCanBeNull
=> default(T) is null;
7 references to PropertyTypeCanBeNull
System.Text.Json (7)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
950
if (!propertyInfo.
PropertyTypeCanBeNull
)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (5)
250
if (value && !
PropertyTypeCanBeNull
)
289
if (value && !
PropertyTypeCanBeNull
)
378
_isGetNullable = _isSetNullable =
PropertyTypeCanBeNull
;
502
if (
PropertyTypeCanBeNull
)
510
if (
PropertyTypeCanBeNull
)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
621
internal bool CanBeNull => PropertyInfoForTypeInfo.
PropertyTypeCanBeNull
;