samedi 12 janvier 2019

Kotlin - Get property type of KProperty1

Given the following code

class Foo(val bar: String)
val p = Foo::bar

How do I obtain the property type String from p?





Aucun commentaire:

Enregistrer un commentaire