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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -