FieldInfo hat ein IsStatic-Mitglied aber PropertyInfo nicht. Ich nehme an, ich übersehe gerade, was ich brauche.In C#, wie kann ich feststellen, ob eine Eigenschaft statisch ist? (.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' arbeitete für mich. –