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

Parameter | Description
--- | ---
`target` | Instance owning the reflected property.
`value` | New boxed value.

Example

    prop = type(user).getProperty("login")
    prop.setValue(user, "admin")