dddlib / dddlib

A domain driven design library for .NET
http://dddlib.net
18 stars 8 forks source link

Change the default value object serializer to intelligently invoke a constructor #61

Open cameronfletcher opened 9 years ago

cameronfletcher commented 9 years ago

This also bombs out with an InvalidOperationException "Sequence contains more than one matching element" when there are two constructors taking the same number of parameters matching the serialized count.

cameronfletcher commented 8 years ago

I've addressed the InvalidOperationException but now need to introduce some more thourough testing and caching.
I think if this is to be performant it will need to register deserialization as a delegate taking the serialized dictionary as an argument.