G
Gugale at Lincoln
I am using a function to get properies and property values of an object
private string[] ObjPropVals(Object o)
{
Type t = o.GetType();
PropertyInfo[] pia = t.GetProperties();
string[] stra = new string[pia.Length];
for(int i=0; i<pia.Length; i++)
{
stra = pia.Name + " " + pia.GetValue(o, null);
}
return stra;
}
I would like to use something similar to get static properties of a sealed
class. Any suggestions?
Thanks
SG
private string[] ObjPropVals(Object o)
{
Type t = o.GetType();
PropertyInfo[] pia = t.GetProperties();
string[] stra = new string[pia.Length];
for(int i=0; i<pia.Length; i++)
{
stra = pia.Name + " " + pia.GetValue(o, null);
}
return stra;
}
I would like to use something similar to get static properties of a sealed
class. Any suggestions?
Thanks
SG