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