views:

486

answers:

1

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?

+9  A: 

Easy:

theMethod.ReturnType == typeof(void)
Mehrdad Afshari