I have a linq query that i'd like to get the query syntax for.
var q = customers.Where(x => x.name == "smith");
Is there something like IQueryable.ToQuerySyntaxString()? that would return something like this:
from cust in customers where cust.name == "smith";
I'm asking because I can construct my query using method syntax, but would like to see the query syntax equivalent to help me learn how to write in the alternate form.