getProperty

inline fun getProperty(receiver: T?, name: String, crossinline argumentsBuilder: ArgumentsBuilder = {}): Any?(source)

Gets the value of the single property named name with receiver and argumentsBuilder.

If the property is static, receiver is ignored. receiver must be non-null for non-static properties, or be set in argumentsBuilder.

See also

Throws

if the property getter cannot be invoked.

if no property with that name exists.

if more than one property with that name exist.