public SetValue ( object instance, |
||
instance | object | Target object to set property at. |
pi | Property info for the property to set. | |
newvalue | object | Value for the property. |
culture | ||
return | void |
public void SetValue(object instance, PropertyInfo pi, object newvalue, CultureInfo culture)
{
var descriptor = Descriptor.Get(pi.PropertyType, newvalue.ToString());
pi.SetValue(instance, descriptor, null);
}