title: Can I return null value for one of the items in a Tuple?
body: <p>I have a method which returns two values (HttpResponse and Generic object). Below is the code snippet.</p>
  
  <p>In some condition I have to return one of the items as null. I tried the following condition but it didn't work. </p>
  
  <pre><code>internal sealed class OnlineHelper&lt;T&gt;
  {
     internal static Tuple&lt;T, HttpStatusCode&gt; GetRequest(arg1, arg2...)
     {
        ....
        if (webResponse.StatusCode == HttpStatusCode.OK)
        {
            return Tuple.Create(serializer.Deserialize&lt;T&gt;(response),
                       webResponse.StatusCode);
        }
  
  
        return Tuple.Create(null, webResponse.StatusCode); // Compiler error
        return Tuple.Create(default(T), webResponse.StatusCode);
        // ^- Throwing null reference exception.
  
     }
  }
  </code></pre>