I want to do something like this:
for (var i =0; i < obj.ValueList.Count; i++)
{
var runCode = $"oldObj.Mod{i+1} = obj.ValueList[{i}].Value;";
// Execute runCode; then 'oldObj.Mod1 = obj.ValueList[0].Value'
}
...
I just think it will ultimately be better than 5 or 10 or 100 explicit repetitions of oldObj.Mod1 = obj.ValueList[0].Value
.
It has to have been done before.
Thoughts? Help? Direction?