views:

21

answers:

0

Hi, I inherited a VS2003 solution which works fine but on conversion to 2005 this particular line does not give values. I am trying to get the field names of opp object.

protected FieldInfo[] oppFields; 
 oppFields = opp.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public);

Read from a few posts in 2005 one needs to use propertyinfo rather than fieldinfo. I am not sure how this needs to be done.

Thanks in advance