This may seem like a dumb question but I have reasons to want to copy a bunch of properties in one object A into another B, where A is a subset of B. This means when writing out the code in C#, it's difficult to be sure I have actually copied everything off A.
A.
<=Intellisense gives me everything in A, which I don't care about.
B.
<=great but I cannot finish typing in such a way that it will end up like this:
A.prop = B.similarProp
So it's a picky thing, I just want to know how to write an extension method that will do this (I have literally no idea.)
B.something.GiveTo(A.somethingelse)
I DONT WANT TO USE AUTOMAPPER because it will error since B is a SUPERSET of A in this case.
I'm not trying to ask how to map properties of an object. I'm asking how to write something that will let me type A.propa.ExtensionMethodGiveTo(b.propa)