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
Post a Comment