I have 2 simple methods and I want process to not continue until they are finished completely. Because of this I used await Task.WaitAll(tasks);
but compiler is giving me error in this line: 

```
Severity    Code    Description Project File    Line    Suppression State
Error   CS1503  Argument 1: cannot convert from ' 
'System.Collections.Generic.List<System.Threading.Tasks.Task>' to 
'System.Threading.Tasks.Task'   

```

Why should I convert this manually by myself? I thought this would be done by the compiler...

```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

internal class Program
{
    public static void Count1()
    {
        for (int i = 0; i < 10; i++)
        {
            Console.WriteLine("Count 1 " + i);
            Thread.Sleep(100);
        }
    }

    public static void Count2()
    {
        for (int i = 0; i < 20; i++)
        {
            Console.WriteLine("Count 2 " + i);
            Thread.Sleep(100);
        }
    }

    public static async Task Run()
    {
        List<Task> tasks = new List<Task>();

        Task t1 = Task.Run(()=>Count1());
        Task t2 = Task.Run(() => Count2());

        tasks.Add(t1);
        tasks.Add(t2);

        await Task.WaitAll(tasks);  //ERROR IS THROWN HERE
    }

    private static void Main(string[] args)
    {
        Run();

        Console.ReadKey();
    }
}

```