Last post Aug 06, 2013 06:05 PM by Paul Linton
Aug 06, 2013 04:09 AM|Gelpack|LINK
Does anyone know of a libary , extension etc which would enable me to instantiate one object from another without going through the pain of manually assigning each property. With todays seperation this seems like an all too frequent excercise.
So something like where you pass in the type you want instantiated and another object containing the same fieldname and have a newly instaniated object returned of type T
Return T Inject( T, TDataObject )
Aug 06, 2013 04:18 AM|AidyF|LINK
If you google for "c# object mapping" or object mapping framework, there are quite a few out there.
Aug 06, 2013 06:05 PM|Paul Linton|LINK
Use AutoMapper http://automapper.org/