Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#ConfigureAwait falseSingle-choice MCQ

In a WinForms/WPF app, what happens when this code runs on the UI thread (`GetDataAsync` awaits an HTTP call internally)?

private void Button_Click(object sender, EventArgs e) { var data = GetDataAsync().Result; label.Text = data; }