getFieldWithReflection

inline fun <U> Any.getFieldWithReflection(fieldName: String): U

Easy way to retrieve the value of a field via reflection.

Parameters

fieldName

Name of the field on this class

U

The type of the field..