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