MethodInfo.Invoke urgent help please
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, when i am executing the following code the, if the function invoked returning other than null, it is working fine. if it returns null, then it throws the object reference not found exception. please help. string functionName ="GetMRN"; System.Reflection.MethodInfo methodinfo; methodinfo = this.GetType().GetMethod(functionName); objParamArr[0] = Param2; objParamArr[1]=param2; string strResult = methodinfo.Invoke(Invoke(this,objParamArr).ToString(); Contact him at: hasansheik@hotmail.com hasansheik@yahoo.co.in hasansheik@lycos.com