I had an idea for a piece of software using .NET C# as technology.
Basically, in my idea Im thinking of using reflection to do the mapping between a class to another class using interactivity with a user.
About the interactivity right now Im just using console writeline and readline, but in future it can also be something different like signalR.
The final goal is that after the mapping of properties is done, we can run a a conversion between the contents of a list (an input list) and create an output list.
I know that there are libraries that help with mapping like "AutoMapper" but I think they work well if the properties are the same name and it doesn't work at run time.
So what Im trying to do is more generic.
What I have right now in terms of classes is:
public class ObjectAssignementService<TI, TO>
that is responsible to fill some properties that will contain metadata about the 2 classes and how they map between them and if there is a specific conversion that needs to happen like a decimal converted into a string.
Then another class that runs after
public class ConvertService<TI, TO>
This class will be injected with the previous class, and it will do the conversion of the input list to created the output list.
My explanation may need improvement, but this is still a POC. And Im interested in getting feedback if this seems like a good idea? Anyone with experience doing similar pieces of work? Thanks.