title: How set property name/value dynamically?
body: <p>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):</p>
  
  <pre><code>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];
  
  }
  </code></pre>
  
  <p>Hopefully that makes sense, please let me know if not.</p>
  
  <p>Thank you.</p>