lundi 20 avril 2015

I have a class called MyClass which has a bunch of properties (strings, bools, ints, etc).

I also have a IEnumerable<SomeOtherClass> collection which has key/value items.

I want to map this list of key/value items to the various properties in MyClass

Is there a way to do this with AutoMapper or another way with reflection?

Thanks!





Aucun commentaire:

Enregistrer un commentaire