Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objectType.GetTypeInfo().IsEnum doesn't work in .NET 4.0 #42

Closed
rianjs opened this issue Jul 13, 2016 · 1 comment
Closed

objectType.GetTypeInfo().IsEnum doesn't work in .NET 4.0 #42

rianjs opened this issue Jul 13, 2016 · 1 comment

Comments

@rianjs
Copy link
Collaborator

rianjs commented Jul 13, 2016

From #23 (comment) :

objectType.GetTypeInfo().IsEnum in SerializerFactory works in .NET 4.5+, but not in .NET 4.0. Maybe we need an ifdef. Ugh.

Maybe:
http://stackoverflow.com/questions/3436526/detect-target-framework-version-at-compile-time

rianjs pushed a commit that referenced this issue Jul 13, 2016
rianjs added a commit that referenced this issue Jul 13, 2016
ifdef for .NET 4.0 for enum reflection #42
@rianjs
Copy link
Collaborator Author

rianjs commented Jul 13, 2016

7148bd2

@rianjs rianjs closed this as completed Jul 13, 2016
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

No branches or pull requests

1 participant