I haven't found any mention of this anywhere, but I'd like to have access to the property name inside the @propertyWrapper. I'm guessing this is not possible, or is it? I really don't want to write code like this as a workaround:
@Property(name: "title") var title: String
My goal is to use the property name inside the wrapper to reference a key in a dictionary. But first I need to ensure that the property name is valid against a database schema definition I've created (represented as an object graph).
The other issue I can't figure out, is how to access a property if you have a String containing it's name and this value is only known at runtime. I've looked into dynamic member lookup, but it seems that you have to state at compile time what member you're going to attempt to lookup at runtime. Or am I missing something? How can I specify only at runtime what dynamic member I wan't to look up?