Thursday, December 27, 2012

Consider explicitly specifying the type of the range variable

Source

from x in list

Compilation Error:

Could not find an implementation of the query pattern for source type 'System.Collections.IEnumerable'.  'Select' not found.  Consider explicitly specifying the type of the range variable 'x'.

Fix:

Add the desired data type in front of the range variable x like

from Employee x in list

No comments:

Post a Comment