klyn.reflection.Property.setValue
method
public native setValue(target as Object, value as Object) as Void
Description

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.

Parameters
ParameterDescription
targetInstance owning the reflected property.
valueNew boxed value.
Example
prop = type(user).getProperty("login")
prop.setValue(user, "admin")