471,306 Members | 1,237 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

Retrieve private fields

Hello.

How can I retrieve private fields from instance of my class with GetFields
method?

Thank you.
Feb 14 '06 #1
1 1418
David,

Use overloads where you can specify BindingFlags and specify
BindingFalgs.NonPublic. By default GetFields returns public fields only.
--
HTH
Stoitcho Goutsev (100)

"David Dvali" <da*********@hotmail.com> wrote in message
news:O%****************@TK2MSFTNGP15.phx.gbl...
Hello.

How can I retrieve private fields from instance of my class with GetFields
method?

Thank you.

Feb 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by indhu | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.