c# - System.Threading.Tasks -


i trying use reference. know in c# 4. don't know have.

but basically, when write line:

task.factory.startnew(somemethod); 

it tells me mistake. there way solve ide identify library (task parallel library)?

you need using directive of

using system.threading.tasks; 

you shouldn't need add references - task in mscorlib.

are sure you're targeting .net 4? check in project properties. (the types available don't depend on version of language you're using, version of framework you're using.)


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -