Map two different class structres

Posted by Toashish80 under C# on 12/23/2011 | Points: 10 | Views : 1006 | Status : [Member] | Replies : 1
I have two set of classes each with different structures. I want to write a mapper class through which I can map the source structure to a target structure. During the execution, I would instantiate the mapper class and specify the source and target objects.

Can any one provide any ideas on that?


Posted by: Rajnilari2015 on: 10/10/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 25

Hi , the answer is AutoMapper. We have written an article on the same that address the same problem of yours. Kindly let us know if that helps.


Thanks & Regards,
RNA Team

Toashish80, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response