DEV Community

Discussion on: Help, these objects have the same shape but don't share an interface!

Collapse
 
maximoguerrero profile image
Maximo Guerrero • Edited

Auto mapper is cleaner, you should still create a set of interfaces of just the common data points you need. Also you don’t need to cast to dynamic just to use reflection, but reflection tends to be expensive so you get a performance hit.