handle multiple threads csharp

Code Example - handle multiple threads csharp

                
                        task.Start();
Console.WriteLine("This is the main thread.");
int sum = task.Result;
Console.WriteLine("The result from the task is {0}.", sum);