title: How to convert non-nullable type to nullable in C++/CLI?
body: <p>How to convert non-nullable type to nullable in C++/CLI?</p>
  
  <p>I know how to do it in C#:</p>
  
  <pre><code>public Type GetNullableType(Type t)
  {
      return typeof(Nullable&lt;&gt;).MakeGenericType(t);
  }
  </code></pre>
  
  <p>But I can't figure out, how to convert it to C++/CLI.</p>
  
  <p>I have tried this, but when I compile the code, I get internal compiler error as a result.</p>
  
  <pre><code>Type^ nullableType = Nullable&lt;&gt;.GetType();
  return nullableType-&gt;MakeGenericType(t);
  </code></pre>