ie kann ich in C # feststellen, ob eine Eigenschaft statisch ist? (.Net CF 2.0)

FieldInfo hat ein IsStatic-Mitglied, PropertyInfo jedoch nicht. Ich gehe davon aus, dass ich nur übersehen habe, was ich brauche.

Type type = someObject.GetType();

foreach (PropertyInfo pi in type.GetProperties())
{
   // umm... Not sure how to tell if this property is static
}

Antworten auf die Frage(8)

Ihre Antwort auf die Frage