title: Proper syntax for using type <T> in function signature
body: <p>Is there a correct way of changing this function signature:</p>
  
  <pre><code> private IEnumerable&lt;ViewPatient&gt; TransformViewPatient(IOrderedQueryable&lt;view_patient&gt; query);
  </code></pre>
  
  <p>to something like?</p>
  
  <pre><code> private IEnumerable&lt;ViewPatient&gt; TransformViewPatient&lt;T&gt;(T query)
  </code></pre>
  
  <p>where T is </p>
  
  <pre><code>IOrderedQueryable&lt;view_patient&gt;
  </code></pre>
  
  <p>Edit: I am trying to achieve something like this:</p>
  
  <pre><code> private IEnumerable&lt;ViewPatient&gt; TransformViewPatient&lt;ObjectResult&lt;view_patient&gt;&gt;(ObjectResult&lt;view_patient&gt; query)
  </code></pre>
  
  <p>and</p>
  
  <pre><code> private IEnumerable&lt;ViewPatient&gt; TransformViewPatient&lt;IOrderedQueryable&lt;view_patient&gt;&gt;(IOrderedQueryable&lt;view_patient&gt; query)
  </code></pre>