FieldInfo ha un membro IsStatic, ma PropertyInfo no. Presumo che sto solo trascurando ciò di cui ho bisogno.In C#, come posso sapere se una proprietà è statica? (.Net CF 2.0)
Type type = someObject.GetType();
foreach (PropertyInfo pi in type.GetProperties())
{
// umm... Not sure how to tell if this property is static
}
'BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy' ha funzionato per me. –