I created an instance of MethodInfo:
MethodInfo theMethod = typeof(Reciever).GetMethod("methodName", parameterTypes);
Now I want to know if the type of the returned method is invalid. How?
Easily:
theMethod.ReturnType == typeof(void)
Source: https://habr.com/ru/post/1710781/More articles:Error in XAML - TypeConverter for "Style" does not support conversion from string - stylesКогда вы получите 404, когда страница действительно существует? - c#Multicore - how to combine the local data groups found on each core? - algorithmHow to close a child window if the parent window is closed? - javascriptКак приложение может обращаться к переменной среды, заданной другим приложением? - c#Can I close child windows if the main window is closed in a web application? - web-applicationsWhy is my new Windows Installer (.msi) file installed correctly on top of an older version of .msi? - windows-installerProblem with Delphi 2009 and old-style object type - objectAJAX errors responseXML - javascriptafter logging in, redirecting to the input url? - drupalAll Articles