Skip to content

Conversation

@wirmar
Copy link
Contributor

@wirmar wirmar commented May 26, 2020

fixes #234

@wirmar wirmar force-pushed the fix/234_nullableStructSerialization branch from 840cd21 to 99814cc Compare May 26, 2020 10:28

var nullableUnderlyingType = Nullable.GetUnderlyingType(typeToConvert);
if (nullableUnderlyingType != null && nullableUnderlyingType.IsPrimitive)
if (nullableUnderlyingType != null && nullableUnderlyingType.IsValueType)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly do you mean by this review? 😄

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The devil is in the little things.

@rose-a
Copy link
Collaborator

rose-a commented May 29, 2020

Thanks for fixing this...

@rose-a rose-a merged commit a1a3978 into graphql-dotnet:master May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SystemTextJsonSerializer cannot (de)serialize Nullable<...> types

3 participants