HI ,I am trying to call funtion dynamically here and passing argument , dont know why it throws error there.
Assembly objAssembly;
objAssembly = Assembly.GetExecutingAssembly();
//get the class type information in which late bindig applied
Type classType = objAssembly.GetType("Project." +strClassname);
//create the instance of class using System.Activator class
object obj = Activator.CreateInstance(classType);
//fixed object objValue[5];/* = new object[5];
object[] _objval = new object[3];
MethodInfo mi = classType.GetMethod("perFormAction");
mi.Invoke(obj, **_objval**); // Error here ..
I dont know why it throws parameter count mismatch here . Is anyone can help me . Thanks