<Kotlin and Reflection> <@Dittert> wrote: ...
# forum
u
Kotlin and Reflection @Dittert wrote: I'm wondering about reflection in Kotlin. Suppose that I have the following sample code: class ReflectionQuestion { private lateinit var name: String override fun toString(): String = "Hello $name!" } fun main(args: Array) { val l = ReflectionQuestion() val result = ReflectionQuestion::class.memberProperties.find { it.name == "name" } if (result is KMutableProperty1) {...