I have 2 classes with properties mostly of the same name. I have a List<Type1> and need to use a for loop to populate a List<Type2>. There are 50+ properties to set so to avoid having a lot of code to say:
foreach (var b in List1)
var c = new Type2
Is there a way to set properties where the property name is the same?
There a re a couple of additional properties in Type2 but I can set these manually.