换句话说,什么方法最有意义的是转换:
string query = @"from element in source where element.Property = ""param"" select element";
成
IEnumerable<Element> = from element in source where element.Property = "param" select element;
假设源指的是IEnumerable< Element>或IQueryable< Element>在当地范围内.