Hi I'm not sure if I'm describing it properly, but based on a list of strings, I want to set the values of properties that belong to an object (all properties, which are objects, that match the string names):
var _parentObject = _parentObjectService.GetParentObject(viewModel.Id);
var _listOfPropertyNames = GetPropertyNames();
foreach (var item in _listOfPropertyNames)
{
// Pseudo code, I know it's gibberish:
_parentObject.Tests.[item] = viewModel.Tests.[item];
}
Hopefully that makes sense, please let me know if not.
Thank you.