title: In C#, How do I call a function that is returning a list?
body: <p>In C#, How do I call a function that is returning a list?  </p>
  
  <pre><code>    static void Main(string[] args)  
      {  
          List&lt;string&gt; range = new List&lt;string&gt;();  
          range.ForEach(item =&gt; item.WildcardFiles());  //this is not working             
      }  
  
      List&lt;string&gt; WildcardFiles(string first)  
      {  
          List&lt;string&gt; listRange = new List&lt;string&gt;();  
          listRange.Add("q");  
          listRange.Add("s");  
  
          return listRange;  
      }  
  </code></pre>