So here's what I'm doing:
var resultObj = GetFirstResultAsync()
.ContinueWith(t => GetSecondResultAsync(resultObj))
.Wait();
Essentially telling me that I can't use the variable before it's even declared, which I get hence the question I posted. How do I do this?
Here's my goal, I have a list resultObj then on that list I will loop through the Id's to get an array of my another list that I want GetSecondResultAsync kinda drilling down on the list, I wanted to use async since it will be using HttpClient to get the data.