.net - How do you enable array extensions? -


i can create new vs2013 vb.net project following code, compiles , runs fine:

dim ii(12) integer if ii.contains(5) ... end if 

i have converted vs2008 vb.net project vs2013. when add code array extensions .contains , .tolist, causes compile error "'contains' [or 'tolist'] not member of 'system.array'".

the "imports" , references identical between projects, , don't see relevant difference in project properties. there way enable these array extensions?

you need .net 3.5+, , reference system.linq extension method. (imports not necessary.)

you when compare both projects, don't see differences in "imports" , references.

perhaps, difference working project implicitly importing system.linq, , that's why don't notice difference.

go working project, , go my project. go references section, , have under imported namespaces. you'll find system.linq checked in working project, not in project doesn't work.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -