Im bir PropertyInfo[]
değeri almaya çalışırken alın, ama o iş için olsun olamaz:PropertyInfo değeri
foreach (var propertyInfo in foo.GetType().GetProperties())
{
var value = propertyInfo.GetValue(this, null);
}
İstisna: Object does not match target type.
Isnt bu onun nasıl yapılması gerekiyordu?
Bu tür ve bu foo nedir? – BNL
Bu özellik 'propertyInfo' tarafından temsil edilen özelliği içeriyor mu? –