+ 1
What's the problem here?
4 Respuestas
+ 3
Shweta Mahajan
The object op of MethodInfo is null. You need to take care of it like this
double result = 0.0;
if (op != null)
result = (double)op.Invoke(pol, new object[] {});
+ 8
Ig the issue starts from the line 66!
Coz there might be a misconception in "ecomy times" ..
Is it Shweta Mahajan ?
+ 2
AJ #Learn With Me 👨💻
Appreciate your help ! 😄
It's working now.
+ 1
Piyush[21 Dec❤️]
Solved it!
MethodInfo was the problem here, I intentionally added new Type[] so that I can access other methods also (for separate program), the main method was forcing to get other method which is not present in the namespace.