我创建了一个MethodInfo实例:
MethodInfo theMethod = typeof(Reciever).GetMethod("methodName", parameterTypes);
现在我想知道该方法的返回类型是否为void。多么?
发布于 2009-06-18 15:41:33
简单:
theMethod.ReturnType == typeof(void)
https://stackoverflow.com/questions/1013443
相似问题