title: How to not specify the type argument in a generic method when the required argument is null?
body: <p>I have a method:</p>
  
  <pre><code>public HttpRequestMessage CreateRequest&lt;T&gt;(T genericObject = default(T))
  {
      ...
      if (!Equals(genericObject, default(T)))
      ...
  }
  </code></pre>
  
  <p>I can call it:</p>
  
  <pre><code>var request = CreateRequest&lt;int&gt;();
  </code></pre>
  
  <p>Seeing as I don't actually use the default type (I would like it to set to null by default), how can I stop defining the generic type as an int(or any other type for that matter) when I call the method?</p>
  
  <p><strong>Edit</strong>
  The point is, I usually do need to specify a type and use the argument. However sometimes I do not need to use the argument and I want it to be set to Null or Zero instead of writing a random type like 'int' in the example above</p>