title: How to test if MethodInfo.ReturnType is type of System.Void?
body: <p>Using reflection to obtain a MethodInfo, I want to test if the type returned is typeof System.Void.</p>
  
  <p>Testing if it is System.Int32 works fine</p>
  
  <pre><code> myMethodInfo.ReturnType == typeof(System.Int32)
  </code></pre>
  
  <p>but</p>
  
  <pre><code> myMethodInfo.ReturnType == typeof(System.Void)
  </code></pre>
  
  <p>does not compile? At present Im testing if the string representation of the name is "System.Void" which seems very wrong.</p>