Code:
Assembly assembly = Assembly.LoadFrom(@"D:\Work\ex\project5stepwrapper.dll");
foreach (Type Cls in assembly.GetTypes())
{
if (Cls.IsInterface)
continue;
object instance = Activator.CreateInstance(Cls);
foreach (MethodInfo Method in Cls.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly))
foreach (ParameterInfo pi1 in ((MethodInfo)Method).GetParameters())
string returnValue = (string)Method.Invoke(instance, new object[] { pi1 });
}
error message is comming :
Object of type 'System.Reflect ion.RuntimePara meterInfo' cannot be converted to type 'System.String& '.
any such solution to be appreciated and i shall be greatfull...... ..
Comment