Click here to Skip to main content
15,904,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: remainder Pin
R. Thomas26-Oct-03 0:53
R. Thomas26-Oct-03 0:53 
GeneralRe: remainder Pin
Rakesh Rajan26-Oct-03 1:08
Rakesh Rajan26-Oct-03 1:08 
GeneralRe: remainder Pin
Daniel M. Edwards26-Oct-03 1:11
Daniel M. Edwards26-Oct-03 1:11 
GeneralRe: remainder Pin
R. Thomas26-Oct-03 1:16
R. Thomas26-Oct-03 1:16 
GeneralRe: remainder Pin
Daniel M. Edwards26-Oct-03 1:17
Daniel M. Edwards26-Oct-03 1:17 
GeneralType.GetMembers() Pin
Arun Bhalla25-Oct-03 15:02
Arun Bhalla25-Oct-03 15:02 
GeneralRe: Type.GetMembers() Pin
Heath Stewart26-Oct-03 6:06
protectorHeath Stewart26-Oct-03 6:06 
GeneralRe: Type.GetMembers() Pin
Arun Bhalla26-Oct-03 8:40
Arun Bhalla26-Oct-03 8:40 
Right. I'm definitely not using BindingFlags.DeclaredOnly. I know that inherited members aren't being returned because they're not being serialized (the output is XML), and I can even check by stepping through with a debugger.

I'm not at work right now, but the code is basically:
<br />
  MemberInfo[] members = obj.GetType().GetMembers(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);<br />
<br />
foreach (Member member in members)<br />
{<br />
   if (member is FieldInfo)<br />
   {<br />
      ...<br />
   }<br />
   else if (member is PropertyInfo)<br />
   {<br />
      ...<br />
   }<br />
}<br />


Inside each block, I store the member if the conditions are proper. But even if I remove those conditions, I'm still only getting the non-inherited types.

I'm a little concerned that a previous version of my assembly is being used. I'll check for that on Monday, but again, I doubt that's the case since I was even stepping through with VS.
GeneralRe: Type.GetMembers() Pin
Arun Bhalla27-Oct-03 12:01
Arun Bhalla27-Oct-03 12:01 
Generalint value of all WM_... messages Pin
oOomen25-Oct-03 10:25
oOomen25-Oct-03 10:25 
GeneralRe: int value of all WM_... messages Pin
Nick Parker25-Oct-03 11:23
protectorNick Parker25-Oct-03 11:23 
GeneralRe: int value of all WM_... messages Pin
J. Dunlap25-Oct-03 11:39
J. Dunlap25-Oct-03 11:39 
GeneralRe: int value of all WM_... messages Pin
Nick Parker25-Oct-03 11:56
protectorNick Parker25-Oct-03 11:56 
QuestionDayOfWeek in other languages? Pin
mistery2225-Oct-03 2:34
mistery2225-Oct-03 2:34 
AnswerRe: DayOfWeek in other languages? Pin
mistery2225-Oct-03 3:51
mistery2225-Oct-03 3:51 
GeneralNew #dev....again [edit] Pin
leppie25-Oct-03 1:57
leppie25-Oct-03 1:57 
GeneralRe: New #dev....again Pin
Rocky Moore25-Oct-03 2:53
Rocky Moore25-Oct-03 2:53 
GeneralRe: New #dev....again Pin
J. Dunlap25-Oct-03 9:12
J. Dunlap25-Oct-03 9:12 
GeneralRe: New #dev....again [edit] Pin
mistery2225-Oct-03 3:23
mistery2225-Oct-03 3:23 
GeneralRe: New #dev....again [edit] Pin
Rocky Moore25-Oct-03 4:03
Rocky Moore25-Oct-03 4:03 
GeneralRe: New #dev....again [edit] Pin
J. Dunlap25-Oct-03 9:09
J. Dunlap25-Oct-03 9:09 
GeneralRe: New #dev....again [edit] Pin
leppie25-Oct-03 9:22
leppie25-Oct-03 9:22 
GeneralRe: New #dev....again [edit] Pin
J. Dunlap25-Oct-03 9:30
J. Dunlap25-Oct-03 9:30 
GeneralRe: New #dev....again [edit] Pin
leppie25-Oct-03 9:37
leppie25-Oct-03 9:37 
GeneralRe: New #dev....again [edit] Pin
J. Dunlap25-Oct-03 9:51
J. Dunlap25-Oct-03 9:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.