title: Passing some of a LINQ query into an argument of a function?
body: <p>I have the following code sample in C# demonstrating how I would like to parse some of a LINQ query into a function's argument.</p>
  
  <pre><code>public List&lt;object&gt; AllElements;
  
  public object GetAll&lt;T&gt;(SomeLINQQuery) {
  
      //get some elements from AllElements where the argument is added to the query, as shown below.
  
  }
  </code></pre>
  
  <p>And now, to give this some meaning, what I was thinking of accomplishing would be this:</p>
  
  <pre><code>public void test() {
      GetAll&lt;object&gt;(where object.ToString() == "lala");
  }
  </code></pre>
  
  <p>It's kind of hard to explain. I hope this example does it well.</p>