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

c# - Reactive Extensions ControlScheduler -

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

c++ - Why does Visual Studio Release build break on non-executing code line -