If you want to pass state
parameter to your Task , then your delegate (first argument) should accept this state parameter as its input:
int index = 0;
Task<int> task = new Task<int>((state) => { return 1; }, index);
//Task<int> task = new Task<int>(state => 1, index); // a bit shorter alternative
task.Start();