I have a simple class like that:
class Foo
{
int bar;
}
somewhere else in the code I write
Type t = typeof(Foo);
PropertyInfo[] pi = t.GetProperties(BindingFlags.INstance |
BindingFlags.NonPublic);
unfortunately the pi array I get is of length 0 ?!?!
did I miss something ?

Signature
Lloyd Dupont, Software Architect
Get Your Data Mobile
http://www.ihookdb.com
Jochen Kalmbach - 30 Aug 2004 07:04 GMT
> I have a simple class like that:
>
[quoted text clipped - 10 lines]
> unfortunately the pi array I get is of length 0 ?!?!
> did I miss something ?
No: you have no properties in your class....
(maybe try "GetFields");

Signature
Greetings
Jochen
Lloyd Dupont - 30 Aug 2004 07:13 GMT
woaw, so quick.
yep, that was it!
> > I have a simple class like that:
> >
[quoted text clipped - 14 lines]
>
> (maybe try "GetFields");
Lloyd Dupont - 30 Aug 2004 07:12 GMT
Never mind, => GetFields()
I should sleep more!
> I have a simple class like that:
>
[quoted text clipped - 10 lines]
> unfortunately the pi array I get is of length 0 ?!?!
> did I miss something ?