I am trying to do the following Linq query on a Visio Masters collection:
List<string> allMasterNames = (from master in myStencil.Masters select master.NameU).ToList<string>
I get the following error:
Could not find an implementation of the query pattern for source type 'Microsoft.Office.Interop.Visio.Masters'. 'Select' not found. Consider explicitly specifying the type of the range variable 'master'.
From reading around this error seems to occur when the queried object does not implement IEnumerable<T>
or IQueryable<T>
. Is that the case here, or is it something else?