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.
public List<object> AllElements;
public object GetAll<T>(SomeLINQQuery) {
//get some elements from AllElements where the argument is added to the query, as shown below.
}
And now, to give this some meaning, what I was thinking of accomplishing would be this:
public void test() {
GetAll<object>(where object.ToString() == "lala");
}
It's kind of hard to explain. I hope this example does it well.