V
vinoth
Hi,
I have a object which is created by using the Assembly.CreateInstance
method.
Assembly testAss = Assembly.LoadWithPartialName("Test");
object obj = testAss.CreateInstance("Sample1.SampleTest");
//This obj is the instance of SampleTest Class
Upto this the cod is working fine.
When i try to invoke one method of the SampleTest Class with obj its
giving the result object Undefined Value.
This is my code.
object[] Parameters = new object[2];
Parameters[0] = methodName;//It is string
Parameters[1] = clientReqAL;//clientReqAL is the ArrayList Containing
Two Values(string).
if(wrapperInst!=null)
{
object result = obj.GetType().InvokeMember("TestMethod",
BindingFlags.InvokeMethod,null,obj,Parameters);
}
How can i solve this problem .If anybody knows the solution let me
know.
Thanks,
Vinoth
I have a object which is created by using the Assembly.CreateInstance
method.
Assembly testAss = Assembly.LoadWithPartialName("Test");
object obj = testAss.CreateInstance("Sample1.SampleTest");
//This obj is the instance of SampleTest Class
Upto this the cod is working fine.
When i try to invoke one method of the SampleTest Class with obj its
giving the result object Undefined Value.
This is my code.
object[] Parameters = new object[2];
Parameters[0] = methodName;//It is string
Parameters[1] = clientReqAL;//clientReqAL is the ArrayList Containing
Two Values(string).
if(wrapperInst!=null)
{
object result = obj.GetType().InvokeMember("TestMethod",
BindingFlags.InvokeMethod,null,obj,Parameters);
}
How can i solve this problem .If anybody knows the solution let me
know.
Thanks,
Vinoth