문제

MethodInfo 인스턴스를 만들었습니다.

MethodInfo theMethod = typeof(Reciever).GetMethod("methodName", parameterTypes);

이제 Themethod의 리턴 유형이 무효인지 알고 싶습니다. 어떻게?

도움이 되었습니까?

해결책

쉬운:

theMethod.ReturnType == typeof(void)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top