Je veux récupérer un PropertyInfo, Voici le code:Comment obtenir des propriétés imbriquées
string propertyName="Text";
PropertyInfo pi = control.GetType().GetProperty(propertyName);
il fonctionne très bien, mais si je veux récupérer les propriétés imbriquées, il retourne null:
string propertyName="DisplayLayout.Override.RowSelectors";
PropertyInfo pi = control.GetType().GetProperty(propertyName);
Est il n'y a aucun moyen d'obtenir des propriétés imbriquées?
Cordialement,
Florian
Edit: J'ai un nouveau problème maintenant, je veux obtenir une propriété qui est un tableau:
string propertyName="DisplayLayout.Bands[0].Columns";
PropertyInfo pi = control.GetType().GetProperty(propertyName)
Merci
Merci! Je veux savoir comment obtenir une propriété via un indexeur: string propertyName = "DisplayLayout.Bands [0] .Columns"; PropertyInfo pi = control.GetType(). GetProperty (propertyName); – Florian