Project Name File Name Usage Source Code Link
snippets TaskParallelism.cs new Task((obj) => { var mydata = (CustomData) obj; mydata.ThreadNum = Thread.CurrentThread.ManagedThreadId; output(string.Format( "Hello from Task #{0} created at {1} running on thread #{2}.", mydata.Name, mydata.CreationTime, mydata.ThreadNum)); }, new CustomData {Name = i, CreationTime = DateTime.Now.Ticks} ) Link To Source File