G
Guest
I am sorry, I am not able to get the reply window open and I had the flu.
The error I get is the Object does not match target type
FTE_PathManager.PathClass vbPATH = new FTE_PathManager.PathClass();
Type tt= vbPATH.GetType();
PropertyInfo[] ppInfo = tt.GetProperties() ;
foreach(PropertyInfo p in ppInfo)
{
if (p.GetIndexParameters().Length==0)
{ Console.WriteLine(p.ToString());
// throws an excpetion
object pObj = new object();
property_value = p.GetValue(pObj,null);
// what should I pass into p.GetValue ??
The error I get is the Object does not match target type
FTE_PathManager.PathClass vbPATH = new FTE_PathManager.PathClass();
Type tt= vbPATH.GetType();
PropertyInfo[] ppInfo = tt.GetProperties() ;
foreach(PropertyInfo p in ppInfo)
{
if (p.GetIndexParameters().Length==0)
{ Console.WriteLine(p.ToString());
// throws an excpetion
object pObj = new object();
property_value = p.GetValue(pObj,null);
// what should I pass into p.GetValue ??