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

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -