You are developing an application that uses multiple asynchronous tasks to optimize performance. You need to
retrieve the result of an asynchronous task.
Which code segment should you use?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
You are developing an application that uses multiple asynchronous tasks to optimize performance. You need to
retrieve the result of an asynchronous task.
Which code segment should you use?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Correct answer is A
Can you explain why please?
answer C, due to the fact that there isn’t async in GetData method.
It leads to compilation Error