Hi all. How can I get value of const property of o...
# getting-started
i
Hi all. How can I get value of const property of object with reflection?
Copy code
object Consts {
    const val KOTLIN = "kotlin"
}
Consts::class.memberProperties.forEach { println(it.get(???)) }
What should I pass as a receiver?
I've found it:
Copy code
println(it.getter.call())
😃