SlapperAutoMapper / Slapper.AutoMapper

Slapper.AutoMapper maps dynamic data to static types. Slap your data into submission!
MIT License
287 stars 76 forks source link

Mapping non List nested collections fix (lile HashSet etc), Tests. #41

Closed sharpcoder7 closed 7 years ago

sharpcoder7 commented 8 years ago

Automapper raises an exception if collection type was not a List due calling Add method using reflection. This was because we explicitly set baseListType as List<> but if instance is not null it may not be a List<>.

geirsagberg commented 8 years ago

@sharpcoder7 Had this same issue today, your PR did the trick :) Thanks a lot!