Join Slack
Powered by
Hey guys. Does anyone know is it possible to acces...
# getting-started
c
cognio
10/27/2020, 3:55 PM
Hey guys. Does anyone know is it possible to access object property by it's name or KProperty dynamically? Like in JS
Copy code
user["username"]
r
Ryan
10/27/2020, 3:57 PM
https://kotlinlang.org/docs/reference/reflection.html
c
cognio
10/27/2020, 4:01 PM
Oh damn, I really missed that
::x.get()
part. Thanks for link.
3
Views
Open in Slack
Previous
Next