471,356 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

private field reflection of parent

I need to reflect on a type's fields I also need to get the fields of any
base classes that the type may have. I was under the impression that calling
GetFields on the type would return the fields of parent types as well, but
this is not occuring.

Here is the code I am using:
FieldInfo[] fields =
entityType.GetFields(BindingFlags.NonPublic|Bindin gFlags.Instance);

This returns the fields of the subType but not all the fields down the
hierarchy. Am I missing something?
Aug 19 '05 #1
0 1002

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Dennis | last post: by
reply views Thread by Jesse | last post: by
11 posts views Thread by David Veeneman | last post: by
11 posts views Thread by Yarco | last post: by
reply views Thread by XIAOLAOHU | 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.