I have a rather confusing issue.
I've recently picked up some code I wrote 8 months ago in VS Web Developer 2008. Ive now moved on to 2010, so I upgraded the project, but otherwise it's the same. It now won't build because of code like below:
IMSDataSet.vwPartDataTable table = new IMSDataSet.vwPartDataTable();
da.Fill(table);
//Convert to Parts
return table.Select<IMSDataSet.vwPartRow, Part>((row) => { return new Part(row); }).ToArray();
Where vwPartDataTable is created using the Data Set designer in Visual Studio. Now having a look around on SO it appears that this is incorrect code, and I need a AsEnumerable() in there. However the thing is. I deployed this code. There's load of these lines, I used them everywhere, so it must have worked.
The project upgrade moved everything to .NET 4.0, but putting it back to 3.5 had no effect.
Can anyone shed any light. I'd prefer to keep the code exactly as it was because that is what the customer has.
Thanks.