This might be cockpit error on my part, but I'm encountering errors when running C# or VB query expressions that I understand the language compiler should translate to the SelectMany standard query operator. In the following code examples, the CustomerList source collection contains an Orders field of a List(Of Order) type (per the customers collection of the "Standard Query Operators" white paper (June 2006), and txtResult is a multi-line text box.
[Minor edit and removal of incorrect error message 7/24/2007 0630 PDT]
The commented query expression of the following C# snippet won't compile with conflicting query above commented. The error occurs in the iterator (can't find the property values):
var query6 = CustomerList.Where(c => c.Country == "USA")
In both cases, IntelliSense includes Orders as a valid property of o or c. However, the two query expressions return List<Order> and List(Of Order) rather than the expected IEnumerable<Order>/IEnumerable(Of Order) expected from a transalation of the Select to SelectMany operator.
Both method call syntax queries behave as expected and return identical results.
If this is a known problem with Orcas June 2007 CTP, will it be fixed in Beta 2? If it's my cockpit error, I'd appreciate learning what's wrong with the code.