문제

I have a list in my boo script and want to use System.Linq Extension Methods but boo compiler throw this Exception:

BCE0019: Boo.Lang.Compiler.CompilerError: 'ToList' is not a member of 
'System.Linq.IQueryable`1[[...]]'.

("..." is type of my object)

도움이 되었습니까?

해결책 2

I should import System.Linq.Enumerable not System.Linq

thanks Jean and Matthew for your answers.

다른 팁

What version of Boo? Extension Methods have been supported since 0.9.0. If you can't use extension methods with the version you are using, you'll have to use absolute method calls, e.g. Enumerable.Select(...).

As @Jean has said, have you also imported System.Linq?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top