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)
472
if (!propertyInfo.
PropertyTypeCanBeNull
)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (5)
253
if (value && !
PropertyTypeCanBeNull
)
292
if (value && !
PropertyTypeCanBeNull
)
383
_isGetNullable = _isSetNullable =
PropertyTypeCanBeNull
;
507
if (
PropertyTypeCanBeNull
)
515
if (
PropertyTypeCanBeNull
)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
369
internal bool CanBeNull => PropertyInfoForTypeInfo.
PropertyTypeCanBeNull
;