7 references to IsNullableOfT
System.Text.Json (7)
System\ReflectionExtensions.cs (2)
24
public static bool IsNullableType(this Type type) => !type.IsValueType ||
IsNullableOfT
(type);
32
if (
IsNullableOfT
(from) && type.IsInterface)
System\Text\Json\Serialization\Converters\Value\NullableConverterFactory.cs (3)
16
return typeToConvert.
IsNullableOfT
();
21
Debug.Assert(typeToConvert.
IsNullableOfT
());
37
Debug.Assert(valueTypeToConvert.IsValueType && !valueTypeToConvert.
IsNullableOfT
());
System\Text\Json\Serialization\JsonSerializerOptions.Converters.cs (2)
108
(propertyType.
IsNullableOfT
() ^ converter.Type!.
IsNullableOfT
()))