SyntaxFix
Write A Post
Hire A Developer
Questions
You can also do:
Type type = target.GetType(); PropertyInfo prop = type.GetProperty("propertyName"); prop.SetValue (target, propertyValue, null);
where target is the object that will have its property set.