Bir PropertyInfo, İşte kodunu almak istiyorum:nasıl iç içe almak için özellikler
string propertyName="Text";
PropertyInfo pi = control.GetType().GetProperty(propertyName);
iyi çalışıyor ama iç içe özelliklerini almak istiyorsanız, boş döndürür:
string propertyName="DisplayLayout.Override.RowSelectors";
PropertyInfo pi = control.GetType().GetProperty(propertyName);
mi iç içe geçmiş özellikleri almak için herhangi bir yolu var mı?
Saygılarımızla,
Florian
Düzenleme:
string propertyName="DisplayLayout.Bands[0].Columns";
PropertyInfo pi = control.GetType().GetProperty(propertyName)
size
Teşekkür ederiz! Bir endeks aracılığıyla bir özellik nasıl elde edeceğinizi öğrenmek istiyorum: string propertyName = "DisplayLayout.Bands [0] .Columns"; PropertyInfo pi = control.GetType() GetProperty (propertyName); – Florian