Gets or sets a generic property value using the string value of the property name.
- propertyName (String)
- The String name of the property.
When setting a property value, an ArgumentException will be thrown if the argument type is not supported, or if the property name exists but is of a different type than that of the argument.
When getting a property value, the property with the specified name is retrieved.
You must cast the returned object to the appropriate property type.
If the returned object is to be casted into a value type, you must verify that the returned object is not null before the casting.