Search:
Namespaces
Discussions
.NET v1.1
Feedback
GetProperties() problem
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.framework
.
Post a new message to this list...
Lloyd Dupont
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 ?
--
Lloyd Dupont, Software Architect
Get Your Data Mobile
http://www.ihookdb.com
Reply to this message...
Lloyd Dupont
Never mind, => GetFields()
I should sleep more!
"Lloyd Dupont" <
Click here to reveal e-mail address
> wrote in message
news:%
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
Jochen Kalmbach
Lloyd Dupont wrote:
[Original message clipped]
No: you have no properties in your class....
(maybe try "GetFields");
--
Greetings
Jochen
Reply to this message...
Lloyd Dupont
woaw, so quick.
yep, that was it!
"Jochen Kalmbach" <
Click here to reveal e-mail address
> wrote in message
news:Xns9555526A72EE3JochenKalmbachholzm@127.0.0.1...
[Original message clipped]
Reply to this message...
System.Reflection.BindingFlags
System.Reflection.PropertyInfo
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com