title: Type parameter 'T' has the same name as the type parameter from outer type '…
body: <p>I'm really confused here. Can you please help me? See the codes;</p>
  
  <p>I'm trying to build a structure for my solution which is use only one repository. To query specific queries i use IQueryBuilder. Actually i was looking for a good smaple for Object Querying and i found this one <a href="http://social.technet.microsoft.com/wiki/contents/articles/23404.creating-a-repository-with-a-fluent-interface.aspx" rel="nofollow">here</a></p>
  
  <pre><code>public interface IQueryBuilder&lt;T&gt; where T : class
  {
      IQueryBuilder&lt;T&gt; Where(Expression&lt;Func&lt;T, bool&gt;&gt; predicate);
      IQueryBuilder&lt;T&gt; Include(Expression&lt;Func&lt;T, object&gt;&gt; path);
      IQueryBuilder&lt;T&gt; OrderBy(Expression&lt;Func&lt;T, object&gt;&gt; path);
      IQueryBuilder&lt;T&gt; OrderByDescending(Expression&lt;Func&lt;T, object&gt;&gt; path);
      IQueryBuilder&lt;T&gt; Page(int page, int pageSize);
  
      T FirstOrDefault();
      Task&lt;T&gt; FirstOrDefaultAsync();
  
      List&lt;T&gt; ToList();
      Task&lt;List&lt;T&gt;&gt; ToListAsync();
  
      int Count();
      Task&lt;int&gt; CountAsync();
  }
  </code></pre>
  
  <p>The Repository codes here.</p>
  
  <pre><code>public interface IRepository&lt;T&gt; : IDisposable
  {
      IQueryBuilder&lt;T&gt; Query&lt;T&gt;() where T : class;
  }
  </code></pre>
  
  <p>So far so good for me. I was very very happy until pressing F6 and i get below error because of Query in repository interface.</p>
  
  <p>Warning 1   Type parameter 'T' has the same name as the type parameter from outer type 'IRepository' IRepository.cs  13  32  VideoK2.Repository</p>
  
  <p>By the way there are a few questions about this topic. But i couldnt understood them. Couldnt figure out about my topic. So, sorry for asking again.</p>