The query var q = from elem in collection 开发者_JS百科where someCondition(elem) select elem; translates to
I\'m adding a LINQ interface to some custom objects, but the C# compiler fails on type inference. However, I can write the equivalent query using the raw extension methods and type inference succeeds,