Compiler Error CS1943
All range variables must represent queryable types.
To correct this error
Make sure that the type is a queryable type that implements IEnumerable, IEnumerable<T> or a derived interface, or any other type which has a query pattern defined for it.
If the type is a non-generic IEnumerable, provide an explicit type on the range variable.