UPDATE: this stuff has evolved into a nice project, see it at http://valueinjecter.codeplex.com
Just use AutoMapper. This is fine, but it'll grow into a mini project.
Just some things AM (the real one) does is:
But it's certainly an interesting space to mess about in, and the idea of auto mapping is certainly useful.
A bit like DI in 15 or 33 lines vs NInject or its friends - cool, but why?.
I take it you've read the article and comments regarding 2 way mapping on Jimmy's blog ?
Just a thought:
One might wonder what the point of an abstraction is if the abstraction is so easily mapped to that being abstracted.
you can add exceptions (ifs, switch) for each type you may need
You're not going to do this. Seriously. Case statements acting on object types are bad OOP style. I mean, really bad. Like driving with a drink of Vodka inside your stomach. It may work for some time, but eventually you get into trouble.
OK Jimmy told you not to use AutoMapper... but I bet he meant something else. Now, have you invented something different - something that make Jimmy happy? ;-) No, you just made your own half-rolled AutoMapper. And Jimmy told you not to use it! ;-)
So here's my suggestion: ignore what Jimmy says, just think yourself.. and use AutoMapper ;-)
One thing you might want to add is to cache the reflection bits. If you map an object twice, you probably don't want to look up all the reflection stuff again. Also, things like GetValue and SetValue are quite slow, I switched to late-bound delegates + Reflection.Emit to speed things up.