Thank you for the tips! It helped me to figure out what can help in my case. I used this approach for the getter:
customObject.GetType().GetField(field.Name).GetValue(customObject);
and this is for the setter:
customObject.GetType().GetField(field.Name).SetValue(customObject, value);