c# - Object to Object Mapping -


I have a lush service that returns to JSON which I'm deserializing in class in C # me deserialized object Some properties need to be mapped to properties in a different class.

However, I would like to do this through the (xml?) Config file which can specify the name of the property from / , So that the mapping code can be changed without recompiling.

For example:

objectA.Name.FirstName = objectB.FirstName

objectA.Name.ListName = ObjectB.ListName

What is the best way to do this?

You can do something like mapping for you.

It has source code and configuration options.


Comments

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

Django Celery - running scheduled tasks -

perl - 'Unquoted string ".." may clash with future reserved word' but only when package is used -