Dynamic Property Access



I need to get/set property values dynamically. In C#, I build an Expression for each property and compile it to Action/Func. What would be the best way to port this to Kotlin (other than reflection)?

Btw, some (old) comments in Kotlin documentation about properties mention getting a Property object, using ‘hash syntax’ - obj#prop, which doesn’t seem to work any more. Did the syntax change, or is that completely gone?


Currently there's no way other than reflection.

As of property objects, this feature is not supported yet.