title: How to create generic delegate from a method within an object
body: <p>I'm Trying to create a generic delegate like this:</p>
  
  <pre><code>Func&lt;string, string, IEnumerable&lt;MyPOCO&gt;&gt; del  = 
  WCFServiceInstance.GetLabs(SessionStateService.Var1,SessionStateService.Var2));
  </code></pre>
  
  <p>but it seems because GetLabs is within a WCFServiceInstace the Func delegate just thinks I'm passing it an IEnumerable rather than </p>
  
  <pre><code>Func&lt;string, string, IEnumerable&lt;MyPOCO&gt;&gt; 
  </code></pre>
  
  <p>which is what I'm trying to pass it.</p>