c# methodinfo getreturntype
-
06-07-2019 - |
문제
MethodInfo 인스턴스를 만들었습니다.
MethodInfo theMethod = typeof(Reciever).GetMethod("methodName", parameterTypes);
이제 Themethod의 리턴 유형이 무효인지 알고 싶습니다. 어떻게?
해결책
쉬운:
theMethod.ReturnType == typeof(void)
제휴하지 않습니다 StackOverflow