You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @michal-novak-pos-digital, thanks for your contribution. I use your implementation for IEnumerable changing the way how get itemType (your way doest work on my unit tests). Can you test this last commit?
Thank you very much for including this enhacement int your project.
But there still is one issue.
When type derived from IEnumerable<>, ICollection<>, or IList<>, etc.. is used deserialization fails.
Please see my pull request.
My solution failed when IEnumerable<> was used directly, but yours failed as described above.
So this would make this problem solved for both cases.
Please add support for deserialization of IEnumerable in similar way as XmlSerializer does.
See remarks about IEnumerable https://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer(v=vs.110).aspx
It would be great to keep compatible behavior.
Anyway this method crashes when target collection is derived from List
You can use attached implemetation.
Deseriaize.txt
The text was updated successfully, but these errors were encountered: