vendredi 21 mai 2021

Resolving string path through reflection, like WPF binding

I need to be able to resolve a (string) path to a property of a class, like WPF binding does. So something like "MyProperty.MySubProperty.MyList[2].FinalProperty". I do not need to subscribe to changes, I just need to resolve it once to get the value.

Is there any code I can reuse of the WPF framework, or anything else that already exists?





Aucun commentaire:

Enregistrer un commentaire