Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Code review feedback.
  • Loading branch information
CodeBlanch committed Feb 10, 2020
commit 947159d9d398c03900ae65a0690d7768f8b77280
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ internal bool HasConverter(Type typeToConvert)
if (!converter.CanConvert(typeToConvert))
{
if (Nullable.GetUnderlyingType(typeToConvert) != null)
{
// Allow nullable handling to forward to the underlying type's converter.
return null;
}

ThrowHelper.ThrowInvalidOperationException_SerializationConverterOnAttributeNotCompatible(classTypeAttributeIsOn, propertyInfo, typeToConvert);
}

Expand Down