Skip to content

Conversation

Arkatufus
Copy link
Contributor

DictionarySerializerFactory.BuildSerializer() does not play nicely with classes that uses private or protected default constructor. Modified the Activator.CreateInstance() call so that it tries to instantiate using a non-public constructor first, then tries to use the public constructor if the first attempt throws.

@Aaronontheweb
Copy link
Member

@Arkatufus can we get a regression test added for this?

@Arkatufus
Copy link
Contributor Author

sure can do

@Aaronontheweb
Copy link
Member

LGTM

@Aaronontheweb Aaronontheweb merged commit 61e1469 into akkadotnet:dev Feb 13, 2020
@Aaronontheweb Aaronontheweb mentioned this pull request Feb 13, 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.

2 participants