sna*_*ile 3 .net c# reflection void methodinfo
我创建了一个MethodInfo的实例:
MethodInfo theMethod = typeof(Reciever).GetMethod("methodName", parameterTypes);
现在我想知道theMethod的返回类型是否为void.怎么样?
Meh*_*ari 11
简单:
theMethod.ReturnType == typeof(void)
归档时间:
16 年,10 月 前
查看次数:
1008 次
最近记录: