get value from parallel for loop using Task.WhenAll - C#