title: return list with anonymous type in entity framework
body: <p>How i can return list with anonymous type, because with this code i get</p>
  
  <p>"The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?)"</p>
  
  <p>i need only return IdMember and UserName, thanks</p>
  
  <pre><code>    public static List&lt;T&gt; GetMembersItems(string ProjectGuid)
      {
          using (PMEntities context = new PMEntities("name=PMEntities"))
          {
              var items = context.Knowledge_Project_Members.Include("Knowledge_Project").Include("Profile_Information")
                          .Where(p =&gt; p.Knowledge_Project.Guid == ProjectGuid)
                          .Select(row =&gt; new { IdMember = row.IdMember, UserName = row.Profile_Information.UserName });
  
              return items.ToList();
          }
      }
  </code></pre>