DRAG DROP
You have two methods named F1 and F2.
F2 takes a sting as a parameter.
You need to create a method named F3. F3 must retrieve a string value asynchronously. The string must call F2. During the asynchronous load of the string, F1 must run.
Which five code blocks should you use? Develop the solution by selecting and arranging the required code blocks in the correct order.
NOTE: You will not need all of the code blocks.
Select and Place:
async Task F3()
{
HttpClient client = new HttpClient();
Task myTaskString =
client.GetStringAsync(“http://msdn.microsoft.com”);
F1();
string urlContents = await myTaskString;
return F2(urlContents);
}
Sorry,
async Task F3()
{
HttpClient client = new HttpClient();
Task myTaskString =
client.GetStringAsync(“http://msdn.microsoft.com”);
F1();
string urlContents = await myTaskString;
return F2(urlContents);
}
should be , but it is disappearing all the time
Agree 2,6,1,4,5 is the right choice
I also think 2,6,1,4,5 is the solution
i think it’s:
2, 6, 4, 5, 1
Right Order:
2,6,1,4,5