I am loading a dll using reflection and trying to invoke a method that returns a List<customType>
. How do I invoke a method and get the return values. I tried this but says entry point not found exception
.
MethodInfo[] info= classType.GetMethods();
MethodInfo method = mInfo.FirstOrDefault(c => c.Name == "GetDetails");
object values = method.Invoke(classInstance, new object[] { param1});
values has the exception entry point not found
.
A few alterations might be required depending on if your class is static or not and if your constructor takes any parameters.