Hi, looks like i found a bug with call stacks in WPA. If you profile simple program
static void Main()
{
Task task = new Task(() => { Thread.Sleep(1000);});
task.Start();
task.Wait();
Thread.Sleep(1000);
}WPA shows that the parent node of Task.Wait method is not Main, but one level above it . The same thing is happened to List`1 methods: Add, AddRange, IndexOf and may be many more.
OS Win 8.1 x64. Tested on .NET 4.5, 4.5.1, 4.6
(Can't attach screenshot, because my account is not verified)