public native setValue(target as Object, value as Object) as Void
Assigns the property value on the given target object.
This is the symmetric operation of getValue(...). It respects the normal dynamic property setter path and therefore performs the same runtime conversions as a compiled assignment.
| Parameter | Description |
|---|---|
target | Instance owning the reflected property. |
value | New boxed value. |
prop = type(user).getProperty("login")
prop.setValue(user, "admin")