I created an instance of MethodInfo:
MethodInfo theMethod = typeof(Reciever).GetMethod("methodName", parameterTypes);
Now I want to know if theMethod's return type is void. How?
Easy:
theMethod.ReturnType == typeof(void)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With