May 30, 2019 01:05 PM|deepalgorithm|LINK
Your original question seemed like it was a refactoring issue in which you wanted to simplify how you set your class properties. Hence the recommendation to look into AutoMapper. Now it seems you are having serialization issues with the XML serializer.
Does the class you are trying to serialize have the correct attributes applied?