vendredi 26 mai 2017

How to delegate a property by reflection in kotlin

for example

class A {
  val name:String? = "" 
}

now i want to delegate A's property to DelegateClass in main func:

fun main(args: Array<String>) {
A().javaclass.declaredFields....(how to do this)
}

thank u !





Aucun commentaire:

Enregistrer un commentaire