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
Post a Comment