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